update docker run readme

This commit is contained in:
jinli.yl 2024-07-18 17:43:47 +08:00
commit 922eb1b035
2 changed files with 50 additions and 2 deletions

View file

@ -17,4 +17,4 @@ COPY . .
RUN pip install -r requirements.txt
# 启动(必要)
CMD ["python3", "memory_scope/cli.py", "config/demo_config.yaml"]
CMD ["python3", "memory_scope/cli.py", "config/demo_config_cn.yaml"]

View file

@ -1,3 +1,51 @@
English | [**中文**](./README_ZH.md)
# ModelScope
# MemoryScope
# Installation
## (1) Docker-Compose (Recommanded)
1. Clone the project and edit the config.
```
git clone https://...
nano config/demo_config_cn.yaml
```
2. Edit `docker-compose.yml` to change environment variable.
```
DASHSCOPE_API_KEY: "sk-0000000000"
```
3. Run `docker-compose up` to build and launch the memory-scope cli interface.
## (2) Docker
1. Clone the project and edit the config.
```
git clone https://...
nano config/demo_config_cn.yaml
```
2. Build the `Dockerfile` with command:
```
sudo docker build --network=host -t memoryscope .
```
3. Run `ElasticSearch` Container with command:
```
docker run -p 9200:9200 \
-e "discovery.type=single-node" \
-e "xpack.security.enabled=false" \
-e "xpack.license.self_generated.type=trial" \
docker.elastic.co/elasticsearch/elasticsearch:8.13.2
```
4. Launch the built image with command:
```
sudo docker run -it --rm --net=host memoryscope
```