|
@@ -2,6 +2,7 @@ FROM registry.sdsys.ru/iru/iru-base:0.1
|
|
|
ENTRYPOINT ["/opt/docker-entrypoint.sh"]
|
|
|
COPY docker-entrypoint.sh \
|
|
|
updatedb.sh \
|
|
|
+ healthcheck.sh \
|
|
|
/opt/
|
|
|
COPY mongodb-org-3.6.repo /etc/yum.repos.d/
|
|
|
ENV CATALINA_HOME="/opt/tomcat"
|
|
@@ -16,9 +17,10 @@ ENV PATH=$CATALINA_HOME/bin:$PATH \
|
|
|
HOST=fb3_demo \
|
|
|
PORT=3050 \
|
|
|
ALIAS=dev_iru_swarm_lab_99001 \
|
|
|
- REPORT_SERVER_URL=http://reportproxy4.infoclinica.lan
|
|
|
+ REPORT_SERVER_URL=http://reportproxy4.infoclinica.lan \
|
|
|
+ APPNET=labnetwork
|
|
|
EXPOSE 8091 8080 8009 2551
|
|
|
-HEALTHCHECK --start-period=300s --interval=15s --timeout=5s --retries=2 CMD curl -f 127.0.0.1:8091/login || exit 1
|
|
|
+HEALTHCHECK --start-period=300s --interval=15s --timeout=5s --retries=2 CMD /opt/healthcheck.sh
|
|
|
ARG repo=prod
|
|
|
|
|
|
RUN set -x \
|
|
@@ -31,6 +33,7 @@ RUN set -x \
|
|
|
&& yum install nc -y \
|
|
|
&& yum clean all \
|
|
|
&& chmod +x /opt/docker-entrypoint.sh \
|
|
|
+ && chmod +x /opt/healthcheck.sh \
|
|
|
&& chown -R tomcat:tomcat /etc/web-laboratory-admin \
|
|
|
&& cd /opt/tomcat/conf/web-laboratory-admin/localhost \
|
|
|
&& ln -s /etc/web-laboratory-admin/ROOT.xml ROOT.xml
|