Skip to content

Instantly share code, notes, and snippets.

@jonmosco
Last active February 14, 2017 22:27
Show Gist options
  • Save jonmosco/bb8248ba699d0f00f3787686bd6cbbcc to your computer and use it in GitHub Desktop.
Save jonmosco/bb8248ba699d0f00f3787686bd6cbbcc to your computer and use it in GitHub Desktop.
Complete!
---> 123e798790ed
Removing intermediate container da8367e38814
Step 6 : ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre
---> Running in 635dd9307fcd
---> 8b005354646f
Removing intermediate container 635dd9307fcd
Step 7 : RUN mkdir -p /opt/tomcat/instances
---> Running in ab41a786a1ec
---> 243ccce0f52b
Removing intermediate container ab41a786a1ec
Step 8 : COPY pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz
---> 251670be7bc2
Removing intermediate container cd1bdb742351
Step 9 : RUN tar xzf /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz -C /opt/tomcat/
---> Running in 551e2857e08c
---> b837ac643c52
Removing intermediate container 551e2857e08c
Step 10 : ARG INSTANCE_NAME=app01
---> Running in 77839e10f72a
---> d02e63e9ed3f
Removing intermediate container 77839e10f72a
Step 11 : ENV INSTANCE_NAME ${INSTANCE_NAME}
---> Running in 094c18e3e4d0
---> 52ce5b1137fb
Removing intermediate container 094c18e3e4d0
Step 12 : RUN /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE/tcruntime-instance.sh create ${INSTANCE_NAME} --template bio --template ajp --templatecl
uster-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/instan
ces
---> Running in 1ce21a9079ed
Creating instance 'test01' ...
Using separate layout
Creating bin/setenv.sh
Applying template 'base'
Copying template's contents
Applying fragment 'context-fragment.xml' to 'conf/context.xml'
Applying fragment 'server-fragment.xml' to 'conf/server.xml'
Applying fragment 'web-fragment.xml' to 'conf/web.xml'
Applying fragment 'tomcat-users-fragment.xml' to 'conf/tomcat-users.xml'
Connector summary
Port: 8009 Type: Apache JServ Secure: false
Port: 8080 Type: Blocking IO Secure: false
---> a47e62ae2c4e
Removing intermediate container 1ce21a9079ed
Step 13 : VOLUME /opt/tomcat/instances/${INSTANCE_NAME}/webapps
---> Running in d21c5d312423
---> ab14e5b3da77
Removing intermediate container d21c5d312423
Step 14 : EXPOSE 8080
---> Running in 9cafdb869a07
---> 9cf3752e1b39
Removing intermediate container 9cafdb869a07
Step 15 : CMD rm -f /opt/tomcat/instances/${INSTANCE_NAME}/logs/tcserver.pid
---> Running in 61b6851b0444
---> b214f2264301
Removing intermediate container 61b6851b0444
Step 16 : CMD /opt/tomcat/instances/${INSTANCE_NAME}/bin/tcruntime-ctl.sh run
---> Running in 23f9459ccf2d
---> 3e454179d9f6
Removing intermediate container 23f9459ccf2d
Successfully built 3e454179d9f6
# Instance name
ARG INSTANCE_NAME=app01
ENV INSTANCE_NAME ${INSTANCE_NAME}
# Create our instance
# TODO: be able to pass in instance name parameter
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" ]
==========================================================================================
Step 7 : RUN mkdir -p /opt/tomcat/instances
---> Using cache
---> ad7a3d9084fc
Step 8 : COPY pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz
---> Using cache
---> 1141170fde4e
Step 9 : RUN tar xzf /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE.tar.gz -C /opt/tomcat/
---> Using cache
---> 05d6023b3dae
Step 10 : ARG INSTANCE_NAME=app01
---> Using cache
---> 868b1852b471
Step 11 : ENV INSTANCE_NAME ${INSTANCE_NAME}
---> Using cache
---> a57c24477cad
Step 12 : RUN /opt/tomcat/pivotal-tc-server-standard-3.1.0.RELEASE/tcruntime-instance.sh create ${INSTANCE_NAME} --template bio --template ajp --templatecluster-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
---> Using cache
---> 9e3d4291379e
Step 13 : VOLUME /opt/tomcat/instances/${INSTANCE_NAME}/webapps
---> Using cache
---> ed04e23c28ea
Step 14 : EXPOSE 8080
---> Using cache
---> 968a7dc148c9
Step 15 : CMD rm -f /opt/tomcat/instances/${INSTANCE_NAME}/logs/tcserver.pid
---> Running in 9770b64f9250
---> 5c3c3ed5b534
Removing intermediate container 9770b64f9250
Step 16 : CMD /opt/tomcat/instances/${INSTANCE_NAME}/bin/tcruntime-ctl.sh run
---> Running in cedd7f382c53
---> 834c1e268da2
Removing intermediate container cedd7f382c53
Successfully built 834c1e268da2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment