docker/ci-webhook/tomcat/Dockerfile

19 lines
628 B
Docker
Raw Normal View History

2017-04-21 17:58:06 +08:00
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/sshd-tomcat:tomcat8-jdk7-nodejs7
2017-04-20 18:20:51 +08:00
ENV LOCAL_REPO_PATH=/var/source/
2017-04-20 18:20:51 +08:00
2017-04-21 17:58:06 +08:00
RUN sed -i "s@\/usr\/lib\/jvm\/java-7-oracle@${JAVA_HOME}@" /etc/init.d/tomcat
RUN sed -i "s@-server -Xms128m -Xmx1024m -XX\:PermSize=64M -XX\:MaxPermSize=192M@${JAVA_OPTS}@" /etc/init.d/tomcat
2017-04-20 18:20:51 +08:00
VOLUME $HOME/.gradle/
VOLUME $LOCAL_REPO_PATH
VOLUME /opt/tomcat/webapps/
2017-04-21 17:58:06 +08:00
RUN cd /root && git clone https://git.oschina.net/kennylee/ci-webhook.git ci-webhook
RUN cd ci-webhook && cnpm install
2017-04-20 18:20:51 +08:00
2017-04-21 17:58:06 +08:00
COPY deploy.sh /deploy.sh
RUN chmod +x /deploy.sh
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]