|
@@ -6,11 +6,13 @@ RUN mkdir -p /data/project /app/soft
|
|
|
ADD resin.xml /etc/resin/resin.xml
|
|
|
ADD cluster-default.xml /etc/resin/cluster-default.xml
|
|
|
ADD resin.properties /etc/resin/resin.properties
|
|
|
+ADD entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
ADD http://10.26.22.185:9000/psop/conf/dockerConfig/book-touchrs/ROOT.war /data/project/
|
|
|
ADD http://10.26.22.185:9000/psop/soft/flume-1.7.0.tar.gz /app/soft
|
|
|
RUN cd /app/soft/ && tar xf flume-1.7.0.tar.gz \
|
|
|
&& chown resin:resin -R /etc/resin && chown -R book.book /data \
|
|
|
- && rm -f /app/soft/flume-1.7.0.tar.gz
|
|
|
+ && rm -f /app/soft/flume-1.7.0.tar.gz \
|
|
|
+ && chmod +x /usr/bin/entrypoint.sh
|
|
|
|
|
|
#start resin
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|