Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.44 KB

README.md

File metadata and controls

56 lines (45 loc) · 1.44 KB

save-json

Dump python server that stores data as JSON files in the data/ folder.

Usage:

Local Setup

Docker (no reload on changes)

docker-compose up

Python (reloads on code changes)

Create conda environment:

conda create --name save-json python=3.10
conda activate save-json
conda install --yes --file requirements.txt

Start:

uvicorn save-json.server:app --reload --port 9666

Update Deployment

Just for our internal reference: You will ned the AWS CLI, docker, and an AWS access key.

# build & tag
docker build -t caleydo/save-json:latest .
docker tag caleydo/save-json:latest 478950388974.dkr.ecr.eu-central-1.amazonaws.com/caleydo/save-json:latest
# login to AWS and
aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin 478950388974.dkr.ecr.eu-central-1.amazonaws.com
# push to AWS ECR
docker push 478950388974.dkr.ecr.eu-central-1.amazonaws.com/caleydo/save-json:latest