[REST API] Change docker image name and update docs (#901)

This commit is contained in:
Deshraj Yadav
2023-11-03 01:08:27 -07:00
committed by GitHub
parent fa3ca1d08a
commit 4b8cada873
5 changed files with 12 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
## Single command to rule them all,
```bash
docker run -d --name embedchain -p 8080:8080 embedchain/app:rest-api-latest
docker run -d --name embedchain -p 8080:8080 embedchain/rest-api:latest
```
### To run the app locally,
@@ -14,8 +14,8 @@ DEVELOPMENT=True && python -m main
Using docker (locally),
```bash
docker build -t embedchain/app:rest-api-latest .
docker run -d --name embedchain -p 8080:8080 embedchain/app:rest-api-latest
docker image push embedchain/app:rest-api-latest
docker build -t embedchain/rest-api:latest .
docker run -d --name embedchain -p 8080:8080 embedchain/rest-api:latest
docker image push embedchain/rest-api:latest
```

View File

@@ -15,7 +15,7 @@ def generate_error_message_for_api_keys(error: ValueError) -> str:
if missing_keys:
missing_keys_str = ", ".join(missing_keys)
return f"""Please set the {missing_keys_str} environment variable(s) when running the Docker container.
Example: `docker run -e {missing_keys[0]}=xxx embedchain/app:rest-api-latest`
Example: `docker run -e {missing_keys[0]}=xxx embedchain/rest-api:latest`
"""
else:
return "Unknown error occurred."