Skip to content
Snippets Groups Projects
Commit 32ae5dcc authored by jaannigu's avatar jaannigu
Browse files

Update file setup.md

parent 170d9aed
No related branches found
No related tags found
No related merge requests found
Documentation for setup of the AWS system for Atlas
\ No newline at end of file
Documentation for setup of the AWS system for Atlas
# Adding a new dashboard to AWS
## Preparing files
- Define the whole dashboard script as a function named run_dashboard(token, container_ip). It is called in the main file app.py later.
- Add files verification.py, setup_callbacks.py, environment.yml and the dashboard source file (dashboard.py) to the same directory app.py is located.
## Building and publishing the image to repository
- Inside terminal, run:
* docker build -t <tag_name> .
- Using Docker Hub to store the image:
* docker login
* docker tag mypanelapp:latest myuser/mypanel:latest
* docker tag push myuser/mypanel:latest
- In case of using public AWS ECR, the user needs to be logged in before pushing any images.
* aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/a3o6k3z1
* When using WSL 2, "Error saving credentials" may occur. To fix this, ~/.docker/config.json needs to be modified so that "credsStore": "".
* docker tag <tag_name> public.ecr.aws/a3o6k3z1/atlas:<tag_name>
* docker push public.ecr.aws/a3o6k3z1/atlas:<tag_name>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment