This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add subversion/wget to docker, add readme (#1279)
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Updating the Docker for AWS Batch. | ||
|
||
Our current batch job dockers are in 747303060528.dkr.ecr.us-east-1.amazonaws.com/gluon-nlp-1. To | ||
update the docker: | ||
- update the Dockerfile | ||
- Make sure docker and docker-compose, as well as the docker python package are installed. | ||
- Export the AWS account credentials as environment variables | ||
- CD to the same folder as the Dockerfile and execute the following: | ||
|
||
``` | ||
# this executes a command that logs into ECR. | ||
$(aws ecr get-login --no-include-email --region us-east-1) | ||
# builds the Dockerfile as gluon-nlp-1 docker. | ||
docker build -t gluon-nlp-1 . | ||
# tags the recent build as gluon-nlp-1:latest, which AWS batch pulls from. | ||
docker tag gluon-nlp-1:latest 747303060528.dkr.ecr.us-east-1.amazonaws.com/gluon-nlp-1:latest | ||
# pushes the change | ||
docker push 747303060528.dkr.ecr.us-east-1.amazonaws.com/gluon-nlp-1:latest | ||
``` |