|
@@ -7,6 +7,8 @@ ENV TZ=Asia/Shanghai
|
|
|
ENV JAVA_HOME /usr/java/jdk1.8.0_271
|
|
|
ENV RESIN_HOME /app/soft/resin-4.0.65
|
|
|
|
|
|
+COPY entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
+
|
|
|
#install jdk8 & resin4 & flume
|
|
|
|
|
|
RUN yum install -y wget rsync epel-release lsof crontabs rsyslog \
|
|
@@ -18,11 +20,11 @@ RUN yum install -y wget rsync epel-release lsof crontabs rsyslog \
|
|
|
&& tar -xf jdk1.8.0_271.tar.gz -C /usr/java/ \
|
|
|
&& 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 \
|
|
|
- && 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
|
|
|
|
|
|
#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 entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
COPY release /etc/release
|
|
|
COPY root /var/spool/cron/root
|
|
|
COPY log_clear.sh /cron/root/log_clear.sh
|