# 20170502
FROM imageName
MAINTAINER Peter
#create tomcat8 directory
#RUN mkdir -p /var/lib/tomcat8
#create GTS directory
#RUN mkdir -p /data/EDI/LAB/GTS/out
# Add the tomcat8
#ADD tomcat8.tar.gz /var/lib/tomcat8
#ADD tomcat8 /etc/init.d/
# Add tomcat8 command in the service
#RUN chmod 755 /etc/init.d/tomcat8
#RUN update-rc.d tomcat8 defaults
# import the cas certificate
#ADD cas01.icil.net $JRE/lib/security/
#RUN echo "yes" | .$JRE/bin/keytool -import -file $JRE/lib/security/cas01.icil.net -alias cas01.icil.net -keyalg RSA -keystore $JRE/lib/#security/cacerts -keypass changeit -storepass changeit
# configure tomcat
#ADD logback.xml /var/lib/tomcat8/conf/logback/
#add dependence jar
#ADD quartz-2.3.0.jar /var/lib/tomcat8/shared/lib/
# add logback.xml
ADD logback.xml /var/lib/tomcat8/conf/logback/
# Add the Report
ENV WEBSERVICE_PATH /var/lib/tomcat8/webapps/
ADD xxx.war $WEBSERVICE_PATH/
#ADD application.properties $REPORT_PATH/WEB-INF/classes
EXPOSE 80
ENTRYPOINT ["/bin/bash"]
ENTRYPOINT service tomcat8 start && tail -f /var/lib/tomcat8/logs/catalina.out