123456789101112131415161718192021222324252627282930313233343536373839404142 |
- FROM images.sdsys.ru/sys/iru-base:7.6
- ENTRYPOINT ["/tmp/docker-entrypoint.sh"]
- COPY docker-entrypoint.sh \
- healthcheck.sh \
- /tmp/
- COPY mongodb-org-3.6.repo /etc/yum.repos.d/
- ENV CATALINA_HOME="/opt/tomcat"
- ENV PATH=$CATALINA_HOME/bin:$PATH \
- CATALINA_OPTS="-Dconfig.file=/etc/web-laboratory/application.conf -Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger" \
- JAVA_HOME=/usr/java/default \
- JAVA_OPTS="-Xms512M -Xmx1024M -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true -XX:+ExitOnOutOfMemoryError" \
- WORKDIR=$CATALINA_HOME \
- DB_CLUSTER=mongodb \
- APPNET=labnetwork \
- ADMIN_HOST=admin-lab
- EXPOSE 8090 9000 2551
- HEALTHCHECK --start-period=30s --interval=20s --timeout=10s --retries=2 CMD /tmp/healthcheck.sh
- ARG repo=prod
- ARG version=16.1
- ARG memcached_version=2.3.2
- ARG spymemcached_version=2.12.3
- RUN set -x \
- && curl https://repo.infoclinica.ru/yum/centos/sds-${repo}-${version}.repo -o /etc/yum.repos.d/sds-${repo}-${version}.repo \
- && yum install iputils -y \
- && yum install tomcat-8.0.26-01 -y \
- && yum install web-laboratory -y \
- && yum install mongodb-org-shell -y \
- && yum clean all \
- && chmod +x /tmp/docker-entrypoint.sh \
- && chmod +x /tmp/healthcheck.sh \
- && curl https://repo1.maven.org/maven2/de/javakaffee/msm/memcached-session-manager/${memcached_version}/memcached-session-manager-${memcached_version}.jar -o /opt/tomcat/lib/memcached-session-manager-${memcached_version}.jar \
- && curl https://repo1.maven.org/maven2/de/javakaffee/msm/memcached-session-manager-tc8/${memcached_version}/memcached-session-manager-tc8-${memcached_version}.jar -o /opt/tomcat/lib/memcached-session-manager-tc8-${memcached_version}.jar \
- && curl https://repo1.maven.org/maven2/net/spy/spymemcached/${spymemcached_version}/spymemcached-${spymemcached_version}.jar -o /opt/tomcat/lib/spymemcached-${spymemcached_version}.jar \
- && chown -R tomcat:tomcat /etc/web-laboratory \
- && cd /opt/tomcat/conf/web-laboratory/localhost \
- && ln -s /etc/web-laboratory/ROOT.xml ROOT.xml
- COPY ROOT.xml /etc/web-laboratory/
- COPY server.xml /opt/tomcat/conf/
- RUN chown -R tomcat:tomcat /opt/apache-tomcat-8.0.26 \
- && chown -R tomcat:tomcat /etc/web-laboratory
- USER tomcat
- CMD ["catalina.sh", "run"]
|