Public | Automated Build

Last pushed: 2 years ago
Short Description
test image for AWS ECS / sapho on tomcat
Full Description

ops-docker-tomcat-aws

Based off of the official tomcat image 'https://registry.hub.docker.com/_/tomcat/'

Image tags

    sapho/ops-docker-tomcat-aws:latest

How to use this image.

Please refer to the Documentation from which this image is based on.

The only thing we do here is download our sapho server war file and place it into the webapps folder + set JVM memory settings.

#Deploying as a beanstalk application on AWS using EB CLI & the single container per docker instance:
These steps assume you already have AWS and EB CLIs set up and authenticated on your workstation

Upload SSL Cert to IAM.

aws iam upload-server-certificate --server-certificate-name star_sapho_com --certificate-body file://sapho-wildcard-cert-chained.pem --private-key file://star_sapho_com.pem

Clone this repo to your local machine:

git clone git@bitbucket.org:sapho/ops-docker-tomcat-aws.git

Update ARN of SSL cert in .ebextensions/.elb-listners.config

update the "SSLCertificateId" value

Create Application.

eb init sapho-test7 -k bamboo081715 -p '64bit Amazon Linux 2016.03 v2.1.0 running Docker 1.9.1' --region us-west-1

Deploy App / create environment

#!plain

eb create sapho-test7 --vpc.id vpc-e9e5228c --vpc.elbpublic --vpc.elbsubnets subnet-201a0566,subnet-7a05da1f  --vpc.ec2subnets subnet-201a0566,subnet-7a05da1f --vpc.securitygroups sg-6dbec008,sg-ae7bdfcb,sg-448bc421 --region us-west-1  --instance_profile aws-elasticbeanstalk-ec2-role --keyname bamboo081715 --platform '64bit Amazon Linux 2016.03 v2.1.0 running Docker 1.9.1' -db --database.engine mysql --database.username root --database.password p244w0rd --vpc.dbsubnets subnet-201a0566,subnet-7a05da1f --vpc.publicip --instance_type t2.medium --timeout 900

Terminate Application

#!plain

eb terminate
Docker Pull Command
Owner
sapho
Source Repository

Comments (0)