Now it’s time to compile and package your code. Copy and paste the below code into Cloud9’s terminal window
cd ~/environment/modernization-workshop/java-app
docker build -t modernization-workshop .
docker tag modernization-workshop:latest $(aws ecr describe-repositories --repository-name modernization-workshop --query=repositories[0].repositoryUri --output=text):latest
eval $(aws ecr get-login --no-include-email)
docker push $(aws ecr describe-repositories --repository-name modernization-workshop --query=repositories[0].repositoryUri --output=text):latest
If you watch the screen you should see the docker image build process animating the terminal
If successful, you should see the message as below.