Skip to content

jku-vds-lab/save-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Dump python server that stores data as JSON files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published