cryptgeon icon indicating copy to clipboard operation
cryptgeon copied to clipboard

AWS ECR

Open mengelsen opened this issue 2 years ago • 2 comments

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:

  1. I cloned this GIT repo.
  2. cd to the local repo (from step 1)
  3. sudo docker build -t cryptgeon .
  4. 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
  5. docker push IDGoesHere.dkr.ecr.us-east-1.amazonaws.com/cryptgeon:latest
  6. Created new ECS "task definition" (using IDGoesHere.dkr.ecr.us-east-1.amazonaws.com/cryptgeon:latest as the "Image URI")
  7. Created new ECS Cluster
  8. Created a new task within the cluster
  9. The task errored out: Error 101 thread 'main' panicked at 'canont reach redis', src/main.rs:28:9 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace [2023-08-25T13:46:52Z ERROR cryptgeon] cannot reach redis

mengelsen avatar Aug 25 '23 13:08 mengelsen

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).

mengelsen avatar Aug 25 '23 15:08 mengelsen

This sounds quite interesting.

The process of uploading to ECR is a bit unecessary complex, but probably worthwhile

cupcakearmy avatar Aug 29 '23 15:08 cupcakearmy