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
|
|
|
|
2017-04-27 14:04:22 +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
|
|
|
|
2017-04-26 17:40:27 +08:00
|
|
|
VOLUME $HOME/.gradle/
|
2017-04-27 14:04:22 +08:00
|
|
|
VOLUME $LOCAL_REPO_PATH
|
|
|
|
VOLUME /opt/tomcat/webapps/
|
2017-04-26 17:40:27 +08:00
|
|
|
|
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
|
2017-04-21 09:38:20 +08:00
|
|
|
|
2017-04-26 19:00:01 +08:00
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
|