Last active
February 14, 2017 21:08
-
-
Save jonmosco/4255537fa717aa8c08b59529384e7917 to your computer and use it in GitHub Desktop.
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
Applying fragment 'web-fragment.xml' to 'conf/web.xml' [0/4762] | |
Applying fragment 'tomcat-users-fragment.xml' to 'conf/tomcat-users.xml' | |
Applying fragment 'logging-fragment.properties' to 'conf/logging.properties' | |
Applying fragment 'catalina-fragment.properties' to 'conf/catalina.properties' | |
Applying template 'base-tomcat-7' | |
Copying template's contents | |
Applying fragment 'server-fragment.xml' to 'conf/server.xml' | |
Applying fragment 'web-fragment.xml' to 'conf/web.xml' | |
Applying fragment 'logging-fragment.properties' to 'conf/logging.properties' | |
Applying fragment 'catalina-fragment.properties' to 'conf/catalina.properties' | |
Applying template 'bio' | |
Copying template's contents | |
Applying fragment 'server-fragment.xml' to 'conf/server.xml' | |
Applying template 'ajp' | |
Copying template's contents | |
Applying fragment 'server-fragment.xml' to 'conf/server.xml' | |
Applying template 'cluster-node-tomcat-7' | |
Copying template's contents | |
Applying fragment 'server-fragment.xml' to 'conf/server.xml' | |
Configuring instance 'INSTANCE_NAME' to use Tomcat version 7.0.59.B.RELEASE | |
Setting permissions | |
Instance created | |
Connector summary | |
Port: 8009 Type: Apache JServ Secure: false | |
Port: 8080 Type: Blocking IO Secure: false | |
---> 931773c12226 | |
Removing intermediate container 678e1a051a3f | |
Step 11 : VOLUME /opt/tomcat/instances/INSTANCE_NAME/webapps | |
---> Running in 243734333ada | |
---> ea012cefa7e1 | |
Removing intermediate container 243734333ada | |
Step 12 : EXPOSE 8080 | |
---> Running in c1070cc22b91 | |
---> ba66997ad5f5 | |
Removing intermediate container c1070cc22b91 | |
Step 13 : CMD rm -f /opt/tomcat/instances/INSTANCE_NAME/logs/tcserver.pid | |
---> Running in c68048c4c51d | |
---> 2ae2c164aec0 | |
Removing intermediate container c68048c4c51d | |
Step 14 : CMD /opt/tomcat/instances/INSTANCE_NAME/bin/tcruntime-ctl.sh run | |
---> Running in 36938cf8fbbd | |
---> 9f45f398f4b2 | |
Removing intermediate container 36938cf8fbbd | |
One or more build-args [INSTANCE_name] were not consumed, failing build. |
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
FROM centos:7 | |
RUN useradd tomcat | |
RUN yum -q makecache | |
RUN yum install -y java-1.8.0-openjdk | |
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre | |
RUN mkdir -p /opt/tomcat/instances | |
COPY pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz | |
RUN tar xzf /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz -C /opt/tomcat/ | |
ARG INSTANCE_NAME=app01 | |
RUN /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE/tcruntime-instance.sh \ | |
create $INSTANCE_NAME \ | |
--template bio \ | |
--template ajp \ | |
--template cluster-node \ | |
--property ajp.http.port=8009 \ | |
--property ajp.https.port=8444 \ | |
--property base.jmx.port=8999 \ | |
--property base.shutdown.port=8005 \ | |
--property bio.http.port=8080 \ | |
--property bio.https.port=8443 \ | |
--property base.runtime.user=tomcat \ | |
--property cluster-node.node.name=INSTANCE_NAME \ | |
-i /opt/tomcat/instances | |
VOLUME [ "/opt/tomcat/instances/$INSTANCE_NAME/webapps" ] | |
EXPOSE 8080 | |
# Remove pid file | |
CMD rm -f /opt/tomcat/instances/$INSTANCE_NAME/logs/tcserver.pid | |
# run causes it to run in the foreground | |
CMD [ "/opt/tomcat/instances/$INSTANCE_NAME/bin/tcruntime-ctl.sh", "run"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment