Dockerfile-base 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. FROM FROM hub.evbj.easou.com/dev/centos:7.6
  2. LABEL author="robert[robert_du@easou.cn]"
  3. ENV LANG C.UTF-8
  4. ENV TZ=Asia/Shanghai
  5. ENV JAVA_HOME /usr/java/jdk1.8.0_101
  6. #install jdk8 & resin4
  7. RUN yum install -y wget rsync epel-release supervisor \
  8. && useradd book \
  9. && mkdir -p /usr/java /app/soft \
  10. && curl -O http://10.26.22.185:9000/psop/soft/jdk-8u101-linux-x64.tar.gz \
  11. && curl -O http://10.26.22.185:9000/psop/soft/flume-1.7.0.tar.gz \
  12. && tar -zxf jdk-8u101-linux-x64.tar.gz -C /usr/java/ \
  13. && tar -zxf flume-1.7.0.tar.gz -C /app/soft/ \
  14. && rm -f jdk-8u101-linux-x64.tar.gz flume-1.7.0.tar.gz \
  15. && yum install -y http://10.26.22.185/source/rpm/resin-pro-4.0.58-1.x86_64.rpm \
  16. && rm -f /etc/resin/cluster-default.xml /etc/resin/resin.xml /etc/resin/resin.properties \
  17. && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  18. COPY resin.xml /etc/resin/resin.xml
  19. COPY cluster-default.xml /etc/resin/cluster-default.xml
  20. COPY resin.properties /etc/resin/resin.properties
  21. COPY entrypoint.sh /usr/bin/entrypoint.sh
  22. COPY release /etc/release
  23. COPY supervisord.conf /etc/supervisord.conf
  24. RUN export RELEASE=`head -n 1 /etc/release` \
  25. && rsync -avz $RELEASE/ROOT.war /tmp/ROOT.war \
  26. && chmod +x /usr/bin/entrypoint.sh
  27. #start resin
  28. ENTRYPOINT ["entrypoint.sh"]
  29. CMD ["resinctl","console"]