Public | Automated Build

Last pushed: 2 years ago
Dockerfile
FROM keensoft/centos7-java8 MAINTAINER Mikel Asla mikel.asla@keensoft.es RUN yum update -y RUN yum install -y \ gcc \ make \ apr \ apr-devel \ curl \ gpg \ perl # Tomcat installation ENV CATALINA_HOME /usr/local/tomcat ENV TOMCAT_MAJOR 7 ENV TOMCAT_VERSION 7.0.70 ENV TOMCAT_TGZ_URL http://archive.apache.org/dist/tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz ENV TOMCAT_SIGN_KEY D63011C7 #ENV OPENSSL_TGZ_URL https://www.openssl.org/source/openssl-1.0.2h.tar.gz #ENV OPENSSL_SRC_DIR openssl-1.0.2h #ENV OPENSSL_SIGN_KEY 0E604491 RUN set -x \ && gpg --keyserver pgp.mit.edu --recv-key $TOMCAT_SIGN_KEY \ #&& gpg --keyserver pgp.mit.edu --recv-key $OPENSSL_SIGN_KEY \ && mkdir -p "$CATALINA_HOME" RUN set -x \ && curl -fSL "$TOMCAT_TGZ_URL" -o tomcat.tar.gz \ && curl -fSL "$TOMCAT_TGZ_URL.asc" -o tomcat.tar.gz.asc \ && gpg --verify tomcat.tar.gz.asc \ && tar -xvf tomcat.tar.gz --strip-components=1 -C $CATALINA_HOME \ && rm tomcat.tar.gz* #RUN set -x \ # && curl -fSL "$OPENSSL_TGZ_URL" -o openssl.tar.gz \ # && curl -fSL "$OPENSSL_TGZ_URL.asc" -o openssl.tar.gz.asc \ # && gpg --verify openssl.tar.gz.asc \ # && tar -zxvf openssl.tar.gz \ # && rm -f openssl.tar.gz openssl.tar.gz.asc \ # && cd "$OPENSSL_SRC_DIR" \ # && ./config \ # && make && make test && make install RUN set -x \ && tar zxf $CATALINA_HOME/bin/tomcat-native.tar.gz -C /tmp \ && cd /tmp/tomcat-native-1.2.7-src/native/ \ && ./configure --with-apr=/usr/bin/apr-1-config --with-java-home=$JAVA_HOME --with-ssl=no --libdir=/usr/lib/jni \ && make \ && make install \ && yum remove -y gcc make cpp \ && rm -rf /tmp/tomcat-native* COPY assets/server.xml $CATALINA_HOME/conf/server.xml COPY assets/setenv.sh $CATALINA_HOME/bin/setenv.sh COPY assets/tomcat-users.xml $CATALINA_HOME/conf/tomcat-users.xml ENV PATH $CATALINA_HOME/bin:$PATH EXPOSE 8080 CMD ["catalina.sh", "run"]