Skip to content

Commit

Permalink
Added instructions for creating ECR images from images in Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaddis committed Jul 29, 2024
1 parent 37eaf43 commit 37c9686
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,24 @@ If all three of these review stages are satisfactory then the approval will be g
All Docker images are published on Docker Hub under the RTI BioCloud organization. You can find the repository at https://hub.docker.com/u/rtibiocloud. Each image is tagged using the following format: `<tool-version>_<first-7-characters-of-commit-hash>`.

When adding new Dockerfiles, the GitHub action will automatically build and push the Docker images to Docker Hub. If the corresponding repository does not exist, the push command will create it.
# ECR

To create AWS ECR images from Docker images in Docker Hub, run the following code:
``` shell
# Pull image to be transferred to local system
docker pull <IMAGE_ID or REPOSITORY:TAG>

# Authenticate your Docker client to the Amazon ECR registry
aws ecr get-login-password --region region | docker login --username AWS --password-stdin <AWS_ACCOUNT_ID>.dkr.ecr.region.amazonaws.com

# Create repository in ECR for image

# Tag image
docker tag <IMAGE_ID> <AWS_ACCOUNT_ID>.dkr.ecr.us-west-2.amazonaws.com/<REPO>:<TAG>

# Push image
docker push <AWS_ACCOUNT_ID>.dkr.ecr.us-west-2.amazonaws.com/<REPO>:<TAG>
```
<br><br>

# Contact Us
Expand Down

0 comments on commit 37c9686

Please sign in to comment.