Initial Setup:
Configure your AWS profile:
aws configure --profile sunwave-dev
Pull and run the docker image with the wack-o-mole database:
aws ecr get-login-password --region us-east-1 --profile sunwave-dev | docker login --username AWS --password-stdin 517729021141.dkr.ecr.us-east-1.amazonaws.com
Verify the mysql database container is up and running:
docker logs sunwave-mysql
Update to newest version:
Stop the existing container:
docker stop sunwave-mysql
Remove the container:
docker rm sunwave-mysql
Remove the docker image:
docker rmi 517729021141.dkr.ecr.us-east-1.amazonaws.com/sunwave-mysql:1.0.0-SNAPSHOT
Pull the new image, create the container and run it:
aws ecr get-login-password --region us-east-1 --profile sunwave-dev | docker login --username AWS --password-stdin 517729021141.dkr.ecr.us-east-1.amazonaws.com