|
@@ -0,0 +1,29 @@
|
|
|
+FROM hub.evbj.easou.com/dev/centos:7.9.2009
|
|
|
+
|
|
|
+ENV TZ=Asia/Shanghai
|
|
|
+ENV JAVA_HOME /usr/java/jdk1.8.0_271
|
|
|
+
|
|
|
+COPY epel.repo /etc/yum.repos.d/epel.repo
|
|
|
+
|
|
|
+RUN rm -f /etc/yum.repos.d/CentOS-* \
|
|
|
+ && curl -s http://mirrors.163.com/.help/CentOS7-Base-163.repo -o /etc/yum.repos.d/CentOS7-Base-163.repo \
|
|
|
+ && yum clean all \
|
|
|
+ && yum install -y supervisor \
|
|
|
+ && sed -i "s/nodaemon=false/nodaemon=true/" /etc/supervisord.conf \
|
|
|
+ && useradd ecom \
|
|
|
+ && mkdir -p /usr/java /app /data/ecom/{fsync164,resin8080,resin9090} /data/ecom/cif/data /data/ecom/cdp \
|
|
|
+ && curl -s http://10.26.22.185:9000/psop/soft/jdk1.8.0_271.tar.gz -o /tmp/jdk1.8.0_271.tar.gz \
|
|
|
+ && curl -s http://10.26.22.185:9000/psop/soft/ecom/ecom.tgz -o /tmp/ecom.tgz \
|
|
|
+ && curl -s http://10.26.22.185:9000/psop/soft/ecom/cif164.tgz -o /tmp/cif164.tgz \
|
|
|
+ && tar -zxf /tmp/jdk1.8.0_271.tar.gz -C /usr/java/ \
|
|
|
+ && tar -zxf /tmp/ecom.tgz -C /app/ \
|
|
|
+ && tar -zxf /tmp/cif164.tgz -C /data/ecom/ \
|
|
|
+ && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
|
|
|
+ && chown -R ecom:ecom /app /data
|
|
|
+
|
|
|
+COPY cifcdp.ini /etc/supervisord.d/cifcdp.ini
|
|
|
+COPY entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
+COPY startup.sh /app/ecom/fsync164/startup.sh
|
|
|
+
|
|
|
+ENTRYPOINT ["entrypoint.sh"]
|
|
|
+CMD ["supervisord"]
|