Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS ECR #98

Open
mengelsen opened this issue Aug 25, 2023 · 2 comments
Open

AWS ECR #98

mengelsen opened this issue Aug 25, 2023 · 2 comments

Comments

@mengelsen
Copy link

mengelsen commented Aug 25, 2023

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
Copy link
Author

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

@cupcakearmy
Copy link
Owner

This sounds quite interesting.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants