cryptgeon
cryptgeon copied to clipboard
AWS ECR
Would it be possible for you to include documentation that explains how to upload the docker image to ECR?
Alternatively, could you upload (and maintain) a repo. within the public ECR gallery?
Here's what I attempted:
- I cloned this GIT repo.
- cd to the local repo (from step 1)
sudo docker build -t cryptgeon .- Logged into AWS ECR:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin IDGoesHere.dkr.ecr.us-east-1.amazonaws.com docker push IDGoesHere.dkr.ecr.us-east-1.amazonaws.com/cryptgeon:latest- Created new ECS "task definition" (using
IDGoesHere.dkr.ecr.us-east-1.amazonaws.com/cryptgeon:latestas the "Image URI") - Created new ECS Cluster
- Created a new task within the cluster
- The task errored out: Error 101
thread 'main' panicked at 'canont reach redis', src/main.rs:28:9
note: run with
RUST_BACKTRACE=1environment variable to display a backtrace [2023-08-25T13:46:52Z ERROR cryptgeon] cannot reach redis
I think this is because the docker build command (from Step 3) does not generate the redis-7alpine Docker image.
When I run the docker-compose up command (on my local machine), Docker creates (2) Docker images. (cryptgeon and redis).
This sounds quite interesting.
The process of uploading to ECR is a bit unecessary complex, but probably worthwhile