From 1099b5b9124b257304e698a4a2072f92adc2fdc6 Mon Sep 17 00:00:00 2001 From: frankfarrell Date: Tue, 20 Mar 2018 16:13:14 +0000 Subject: [PATCH] feat: Add JAVA_HOME env variable for jdk images --- openjdk-7-jdk/Dockerfile | 1 + openjdk-8-jdk/Dockerfile | 1 + oracle-7-jdk/Dockerfile | 1 + oracle-8-jdk/Dockerfile | 1 + oracle-9-jdk/Dockerfile | 1 + 5 files changed, 5 insertions(+) diff --git a/openjdk-7-jdk/Dockerfile b/openjdk-7-jdk/Dockerfile index 5bdc68f..e036181 100644 --- a/openjdk-7-jdk/Dockerfile +++ b/openjdk-7-jdk/Dockerfile @@ -9,6 +9,7 @@ yum clean all # Set environment variables. ENV HOME /root +ENV JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk # Define working directory. WORKDIR /root diff --git a/openjdk-8-jdk/Dockerfile b/openjdk-8-jdk/Dockerfile index a812cd0..c77cfa3 100644 --- a/openjdk-8-jdk/Dockerfile +++ b/openjdk-8-jdk/Dockerfile @@ -9,6 +9,7 @@ yum clean all # Set environment variables. ENV HOME /root +ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk # Define working directory. WORKDIR /root diff --git a/oracle-7-jdk/Dockerfile b/oracle-7-jdk/Dockerfile index 23c1c5b..20494f6 100644 --- a/oracle-7-jdk/Dockerfile +++ b/oracle-7-jdk/Dockerfile @@ -11,6 +11,7 @@ rm -rf /var/cache/yum # Set environment variables. ENV HOME /root +ENV JAVA_HOME=/usr/java/jdk-7 # Define working directory. WORKDIR /root diff --git a/oracle-8-jdk/Dockerfile b/oracle-8-jdk/Dockerfile index 54e7fe2..f28248e 100644 --- a/oracle-8-jdk/Dockerfile +++ b/oracle-8-jdk/Dockerfile @@ -18,6 +18,7 @@ rm -rf /var/cache/yum # Set environment variables. ENV HOME /root +ENV JAVA_HOME=/usr/java/jdk-8 # Define working directory. WORKDIR /root diff --git a/oracle-9-jdk/Dockerfile b/oracle-9-jdk/Dockerfile index 7d92e0f..f5fe541 100644 --- a/oracle-9-jdk/Dockerfile +++ b/oracle-9-jdk/Dockerfile @@ -11,6 +11,7 @@ yum clean all # Set environment variables. ENV HOME /root +ENV JAVA_HOME=/usr/java/jdk-9 # Define working directory. WORKDIR /root