You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/11/08 16:20:16 UTC

[GitHub] mitchell852 closed pull request #2936: CDN-in-a-box trafficrouter uses openjdk

mitchell852 closed pull request #2936: CDN-in-a-box trafficrouter uses openjdk
URL: https://github.com/apache/trafficcontrol/pull/2936
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/infrastructure/cdn-in-a-box/traffic_router/Dockerfile b/infrastructure/cdn-in-a-box/traffic_router/Dockerfile
index ca158be06..af379b3d6 100644
--- a/infrastructure/cdn-in-a-box/traffic_router/Dockerfile
+++ b/infrastructure/cdn-in-a-box/traffic_router/Dockerfile
@@ -22,34 +22,22 @@
 FROM centos:7
 MAINTAINER Dan Kirkwood
 
-# Default values for TMCAT RPM and RPM -- override with `docker build --build-arg JDK=...'
-ARG JDK8_RPM=http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm
+# Default values for TOMCAT RPM and RPM -- override with `docker build --build-arg JDK=...'
 ARG TRAFFIC_ROUTER_RPM=traffic_router/traffic_router.rpm
 ARG TOMCAT_RPM=traffic_router/tomcat.rpm
 
-### Common for all sub-component builds
-RUN	yum -y install epel-release git rpm-build net-tools iproute nc wget tar unzip \
+RUN yum -y install epel-release git rpm-build net-tools iproute nc wget tar unzip \
           perl-JSON perl-WWWCurl which make autoconf automake gcc gcc-c++ apr apr-devel \
-					openssl openssl-devel bind-utils net-tools perl-JSON-PP gettext && \
-    yum -y clean all
+          openssl openssl-devel bind-utils net-tools perl-JSON-PP gettext \
+          java-1.8.0-openjdk-devel-debug.x86_64 \
+          java-1.8.0-openjdk && \ 
+    yum -y clean all && \
+    ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.*.el7_5.x86_64-debug /opt/java
 
 ADD $TRAFFIC_ROUTER_RPM /traffic_router.rpm
 ADD $TOMCAT_RPM /tomcat.rpm
 
-## Install and link java_home to /opt/java
-RUN curl -kvsL -o /jdk8.rpm -H  'Cookie: oraclelicense=accept-securebackup-cookie;' "$JDK8_RPM"  && \
-    rpm -ivh /jdk8.rpm && \
-    ln -sfv $(find /usr/java -mindepth 1 -maxdepth 1 -type d -name jdk\*)   /opt/java
-
-# Install Tomcat and Tomcat Native
-RUN cd / && rpm2cpio /traffic_router.rpm | cpio -ivd && \
-    rpm2cpio /tomcat.rpm | cpio -ivd && \
- 		tar -C /opt -xvpf /opt/tomcat/bin/tomcat-native.tar.gz
-
-# Compile and install Tomcat-native
-RUN	cd $(find /opt -maxdepth 1 -type d | grep tomcat-native )/native && \
-    ./configure --prefix=/opt/tomcat --with-apr=`which apr-1-config` --with-java-home=/opt/java --with-ssl && \
-		make install
+RUN yum -y install /traffic_router.rpm /tomcat.rpm
 
 ADD enroller/server_template.json \
     traffic_router/run.sh \


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services