12345678910111213141516171819202122232425262728293031323334 |
- FROM images.sdsys.ru/sys/iru-base:7.6
- ENTRYPOINT ["/entrypoint.sh"]
- COPY entrypoint.sh \
- /
- # Change export PATH. See https://github.com/GoogleContainerTools/kaniko/issues/748
- ENV CATALINA_HOME="/opt/tomcat" \
- PATH="${PATH}:/opt/tomcat/bin" \
- 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" \
- WORKDIR=$CATALINA_HOME \
- ADMIN_HOST=admin.lab
- EXPOSE 8090 9000 2551
- HEALTHCHECK --start-period=30s --interval=20s --timeout=10s --retries=2 CMD /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 -y iputils tomcat-8.0.26-01 \
- && yum install -y web-laboratory \
- && yum clean all \
- && chmod +x /entrypoint.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 \
- && cd /opt/tomcat/conf/web-laboratory/localhost \
- && ln -s /etc/web-laboratory/ROOT.xml ROOT.xml
- 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"]
|