Dockerfile-basenew 1.0 KB

12345678910111213141516171819202122232425262728
  1. FROM hub.evbj.easou.com/dev/centos:6.8
  2. MAINTAINER scofield[scofield_shi@easou.cn]
  3. #install
  4. RUN yum install -y wget rsync epel-release \
  5. && yum install -y vixie-cron \
  6. && yum install -y supervisor \
  7. && mkdir -p /usr/local/java /app \
  8. && curl -O http://10.26.22.185:9000/psop/soft/jdk1.6.0_21.tar.gz \
  9. && curl -O http://10.26.22.185:9000/psop/soft/web.tar.gz \
  10. && tar -zxf jdk1.6.0_21.tar.gz -C /usr/local/java/ \
  11. && tar -zxf web.tar.gz -C /app/ \
  12. && rm -f web.tar.gz jdk1.6.0_21.tar.gz \
  13. && rm -f /app/resin-pro-3.1.6/conf/resin.conf
  14. COPY entrypoint.sh /usr/bin/entrypoint.sh
  15. COPY release /etc/release
  16. COPY supervisord.conf /etc/supervisord.conf
  17. COPY resin.conf /app/resin-pro-3.1.6/conf/resin.conf
  18. RUN export RELEASE=`head -n 1 /etc/release` \
  19. && chmod +x /usr/bin/entrypoint.sh \
  20. && ln -s /usr/local/java/jdk1.6.0_21/bin/* /usr/bin/ \
  21. && rsync -vzrtopg --progress $RELEASE/wapage2web_baidu.war /app/resin-pro-3.1.6/webapps/ROOT.war --password-file=/etc/rsyncd.wapage
  22. #start miscSearch
  23. ENTRYPOINT ["entrypoint.sh"]
  24. CMD ["supervisord"]