|
@@ -1,6 +1,6 @@
|
|
FROM hub.evbj.easou.com/dev/centos:7.9.2009
|
|
FROM hub.evbj.easou.com/dev/centos:7.9.2009
|
|
|
|
|
|
-LABEL author="robert[robert_du@easou.cn]"
|
|
|
|
|
|
+LABEL author="scofield[scofield_shi@easou.cn]"
|
|
|
|
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANG en_US.UTF-8
|
|
ENV TZ=Asia/Shanghai
|
|
ENV TZ=Asia/Shanghai
|
|
@@ -8,24 +8,33 @@ ENV JAVA_HOME /usr/java/jdk1.8.0_271
|
|
ENV RESIN_HOME /app/soft/resin-4.0.65
|
|
ENV RESIN_HOME /app/soft/resin-4.0.65
|
|
|
|
|
|
COPY entrypoint.sh /usr/bin/entrypoint.sh
|
|
COPY entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
|
+COPY root /tmp/root
|
|
|
|
|
|
#install jdk8 & resin4
|
|
#install jdk8 & resin4
|
|
|
|
|
|
-RUN yum install -y wget rsync epel-release lsof crontabs vim psmisc\
|
|
|
|
- && /usr/sbin/groupadd -g 18001 book ;useradd -s /bin/bash -g book -u 18001 book \
|
|
|
|
- && yum install -y supervisor \
|
|
|
|
|
|
+RUN yum install -y epel-release \
|
|
|
|
+ && yum install -y wget rsync lsof crontabs vim psmisc supervisor \
|
|
&& mkdir -p /usr/java /app/soft /cron/root \
|
|
&& mkdir -p /usr/java /app/soft /cron/root \
|
|
- && curl -O http://10.26.22.185:9000/psop/soft/jdk1.8.0_271.tar.gz \
|
|
|
|
- && curl -O http://10.26.22.185:9000/book/api-rs/resin-4.0.65-relase.tar.gz \
|
|
|
|
|
|
+ && curl -O http://10.26.22.113:9000/psop/soft/jdk1.8.0_271.tar.gz \
|
|
|
|
+ && curl -O http://10.26.22.113:9000/book/api-rs/resin-4.0.65-relase.tar.gz \
|
|
&& tar -xf jdk1.8.0_271.tar.gz -C /usr/java/ \
|
|
&& tar -xf jdk1.8.0_271.tar.gz -C /usr/java/ \
|
|
&& tar -xf resin-4.0.65-relase.tar.gz -C /app/soft/ \
|
|
&& tar -xf resin-4.0.65-relase.tar.gz -C /app/soft/ \
|
|
&& rm -f jdk1.8.0_271.tar.gz resin-4.0.65-relase.tar.gz \
|
|
&& rm -f jdk1.8.0_271.tar.gz resin-4.0.65-relase.tar.gz \
|
|
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
|
|
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
|
|
- && chmod +x /usr/bin/entrypoint.sh
|
|
|
|
|
|
+ && chmod +x /usr/bin/entrypoint.sh \
|
|
|
|
+ && echo 'export JAVA_HOME=/usr/java/jdk1.8.0_271' >> /etc/profile \
|
|
|
|
+ && echo 'export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib' >> /etc/profile \
|
|
|
|
+ && echo 'export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin' >> /etc/profile \
|
|
|
|
+ && echo "ulimit -n 65535" >> /etc/profile \
|
|
|
|
+ && echo "ulimit -u 65535" >> /etc/profile \
|
|
|
|
+ && sed -i -e '/pam_loginuid.so/s/^/#/' /etc/pam.d/crond \
|
|
|
|
+ && mv /tmp/root /var/spool/cron/root \
|
|
|
|
+ && chmod 600 /var/spool/cron/root \
|
|
|
|
+ && source /etc/profile \
|
|
|
|
+ && sed -i 's/nodaemon=false/nodaemon=true/g' /etc/supervisord.conf
|
|
|
|
+
|
|
|
|
|
|
-#COPY resin.xml /app/soft/resin-4.0.65/conf/resin.xml
|
|
|
|
COPY resin.properties /app/soft/resin-4.0.65/conf/resin.properties
|
|
COPY resin.properties /app/soft/resin-4.0.65/conf/resin.properties
|
|
-COPY root /var/spool/cron/root
|
|
|
|
COPY log_clear.sh /cron/root/log_clear.sh
|
|
COPY log_clear.sh /cron/root/log_clear.sh
|
|
COPY resin.ini /etc/supervisord.d/resin.ini
|
|
COPY resin.ini /etc/supervisord.d/resin.ini
|
|
|
|
|