|
@@ -1,22 +1,11 @@
|
|
|
-FROM hub.evbj.easou.com/dev/centos68-resin:3.1.16-jdk7
|
|
|
+FROM hub.evbj.easou.com/qa/wapage2web:v1base
|
|
|
MAINTAINER scofield[scofield_shi@easou.cn]
|
|
|
|
|
|
-COPY release /etc/release
|
|
|
-COPY resin.conf /app/soft/resin-pro-3.1.16/conf/resin.conf
|
|
|
-COPY entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
-COPY rsyncd.wapage /etc/rsyncd.wapage
|
|
|
COPY release /etc/release
|
|
|
|
|
|
-RUN yum install -y rsync \
|
|
|
- && yum install -y wget rsync epel-release \
|
|
|
- && yum install -y vixie-cron \
|
|
|
- && yum install -y supervisor \
|
|
|
- && chmod +x /usr/bin/entrypoint.sh \
|
|
|
- && export RELEASE=`head -n 1 /etc/release` \
|
|
|
+RUN export RELEASE=`head -n 1 /etc/release` \
|
|
|
&& rsync -vzrtopg --progress $RELEASE/wapage2web_baidu.war /app/soft/resin-pro-3.1.16/webapps/ROOT.war --password-file=/etc/rsyncd.wapage
|
|
|
|
|
|
-COPY supervisord.conf /etc/supervisord.conf
|
|
|
-
|
|
|
#start resin
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|
|
|
CMD ["/usr/bin/supervisord"]
|