uvicorn app.main:app --host 0.0.0.0 --port 80 --reload
The Swagger UI is available at http://localhost/docs or http://localhost/redoc
0.0.0.0 or 127.0.0.1 can be used instead of localhost
hostname
docker build -t nmdc-utils-image:latest .
docker run --name nmdc-utils-container -p 80:80 nmdc-utils-image:latest
docker save usage_diff_image -o usage_diff_image.tar
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/c1r1e2u3
requires some setup within AWS ECR ans ECS
docker build -t nmdc-utils-image:latest .
docker tag nmdc-utils-image:latest public.ecr.aws/c1r1e2u3/nmdc-utils-repository:latest
docker push public.ecr.aws/c1r1e2u3/nmdc-utils-repository:latest
this will change the endpoint's IP address, so clients will need to be updated
aws ecs update-service --cluster nmdc-utils-cluster --service nmdc-utils-service --force-new-deployment