tomcat image integrated with awscli. can be helpful to automate deployment using s3.
10K+
This image consists of java , apache tomcat and aws-cli.
Usage:
This image is designed in such a way to use s3 as the build and configs store and automate the deployment for the docker images.
AWS S3 URL needs to be in a specific convention which we followed as per our usage:
s3://${bucket_name}/${product_name}/${project}/${env}/${app_name}/${version}/init
We are using an init file placed at the version root level of the app folder inside the bucket which will in turn pull the required objects such as the build and the config files while running this docker.
We need to pass few env variables as arguments while running the docker given as follows:
1.) bucket_name={sample-bucket} 2.) product_name={sample-product} 3.) project={ABC_Project} 4.) env={Stage}/{QA}/{production} 5.) app_name={sample-app} 6.) version={v1.0} 7.) AWS_ACCESS_KEY_ID={XXXXXXXXXXXXXXXXXX} 8.) AWS_SECRET_ACCESS_KEY={XXXXXX-XXXXXXXXXXXX/XXXXXXXXXXXX} 9.) AWS_DEFAULT_REGION ={xx-xxxx-xx}
Compatible with docker orchestration mechanisms like Rancher Labs, Kubernetes.
Example Command:
sudo docker run -d -t -i -e bucket_name='sample-bucket' \ -e product_name='sample-product' -e project='ABC_Project' -e env='Stage' -e app_name='sample-app' -e version='v1.0' -e AWS_ACCESS_KEY_ID='XXXXXXXXXXXXXXXXXX' -e AWS_SECRET_ACCESS_KEY='XXXXXX-XXXXXXXXXXXX/XXXXXXXXXXXX' -e AWS_DEFAULT_REGION ='xx-xxxx-xx' -p 8080:8080 --name container_name akshatpd08/tomcat_awscli:latest
Content type
Image
Digest
sha256:4c54ca50b…
Size
580.8 MB
Last updated
about 1 year ago
docker pull aujascs/tomcat_awscli:java21