Skip to content

Commit 04cea42

Browse files
committed
Dockerfiles now reference the base image oracle/jdk:8 for better reuse and size optimization
1 parent 5fffede commit 04cea42

28 files changed

+44
-136
lines changed

OracleCoherence/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ For more information and documentation, read the [Docker Images from Oracle Linu
1212
### Standalone Distribution
1313
Fore more information on the Coherence 12c Standalone Distribution, visit [Coherence 12.1.3 Documentation](http://docs.oracle.com/middleware/1213/coherence/index.html).
1414

15+
## Building Oracle JDK (Server JRE) base image
16+
Before you can build these WebLogic images, you must download the Oracle Server JRE binary and drop in folder `OracleJDK/java-8` and build that image.
17+
18+
$ cd OracleJDK/java-8
19+
$ sh build.sh
20+
1521
## How to Build
1622

1723
Follow this procedure:
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
11
7465efc60e58eaf6e7ac0c93a6322ae1 fmw_12.1.3.0.0_coherence_quick_Disk1_1of1.zip
2-
# Download the Server JRE (which includes necessary JDK bits for backend Java based solutions)
3-
#
4-
# - http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html
5-
#
6-
32f19f3a0fb872f363689c85321e0021 server-jre-8u77-linux-x64.tar.gz
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
11
a4affba654a0664284e6a454341f3e93 fmw_12.1.3.0.0_coherence_Disk1_1of1.zip
2-
# Download the Server JRE (which includes necessary JDK bits for backend Java based solutions)
3-
#
4-
# - http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html
5-
#
6-
32f19f3a0fb872f363689c85321e0021 server-jre-8u77-linux-x64.tar.gz

OracleCoherence/dockerfiles/12.1.3/Dockerfile.quickinstall

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,28 @@
2626

2727
# Pull base image
2828
# ---------------
29-
FROM oraclelinux:latest
29+
FROM oracle/jdk:8
3030

3131
# Maintainer
3232
# ----------
3333
MAINTAINER Bruno Borges <[email protected]>
3434

3535
# Environment variables required for this build (do NOT change)
36-
ENV JAVA_PKG=server-jre-8u*-linux-x64.tar.gz \
37-
JAVA_HOME=/usr/java/default \
38-
FMW_PKG=fmw_12.1.3.0.0_coherence_quick_Disk1_1of1.zip \
36+
ENV FMW_PKG=fmw_12.1.3.0.0_coherence_quick_Disk1_1of1.zip \
3937
FMW_JAR=fmw_12.1.3.0.0_coherence_quick.jar \
4038
ORACLE_HOME=/u01/oracle/oracle_home \
4139
PATH=$PATH:/usr/java/default/bin:/u01/oracle/oracle_home/oracle_common/bin \
4240
CONFIG_JVM_ARGS=-Djava.security.egd=file:/dev/./urandom
4341

4442
# Copy files required to build this image
4543
COPY $FMW_PKG install.file oraInst.loc /u01/
46-
ADD $JAVA_PKG /usr/java/
4744

4845
# Install and configure Oracle JDK
4946
# Setup required packages (unzip), filesystem, and oracle user
5047
# ------------------------------------------------------------
5148
RUN chmod a+xr /u01 && \
5249
useradd -b /u01 -m -s /bin/bash oracle && \
5350
echo oracle:oracle | chpasswd && \
54-
mv $(ls -1 -d /usr/java/*) $JAVA_HOME && \
5551
cd /u01 && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && cd - && \
5652
su -c "$JAVA_HOME/bin/java -jar /u01/$FMW_JAR -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME" - oracle && \
5753
chown oracle:oracle -R /u01 && \

OracleCoherence/dockerfiles/12.1.3/Dockerfile.standalone

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,28 @@
2626

2727
# Pull base image
2828
# ---------------
29-
FROM oraclelinux:latest
29+
FROM oracle/jdk:8
3030

3131
# Maintainer
3232
# ----------
3333
MAINTAINER Bruno Borges <[email protected]>
3434

3535
# Environment variables required for this build (do NOT change)
36-
ENV JAVA_PKG=server-jre-8u*-linux-x64.tar.gz \
37-
JAVA_HOME=/usr/java/default \
38-
FMW_PKG=fmw_12.1.3.0.0_coherence_Disk1_1of1.zip \
36+
ENV FMW_PKG=fmw_12.1.3.0.0_coherence_Disk1_1of1.zip \
3937
FMW_JAR=fmw_12.1.3.0.0_coherence.jar \
4038
ORACLE_HOME=/u01/oracle/oracle_home \
4139
PATH=$PATH:/usr/java/default/bin:/u01/oracle/oracle_home/oracle_common/common/bin \
4240
CONFIG_JVM_ARGS="-Djava.security.egd=file:/dev/./urandom"
4341

4442
# Copy files required to build this image
4543
COPY $FMW_PKG install.file oraInst.loc /u01/
46-
ADD $JAVA_PKG /usr/java/
4744

4845
# Install and configure Oracle JDK
4946
# Setup required packages (unzip), filesystem, and oracle user
5047
# ------------------------------------------------------------
5148
RUN chmod a+xr /u01 && \
5249
useradd -b /u01 -m -s /bin/bash oracle && \
5350
echo oracle:oracle | chpasswd && \
54-
mv $(ls -1 -d /usr/java/*) $JAVA_HOME && \
5551
cd /u01 && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && cd - && \
5652
su -c "$JAVA_HOME/bin/java -jar /u01/$FMW_JAR -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force ORACLE_HOME=$ORACLE_HOME" - oracle && \
5753
chown oracle:oracle -R /u01 && \

OracleCoherence/dockerfiles/12.1.3/server-jre-8u77-linux-x64.tar.gz.download

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
11
bbb227b4dcb2831b77453f04a5efa6ce fmw_12.2.1.0.0_coherence_quick_Disk1_1of1.zip
2-
# Download the Server JRE (which includes necessary JDK bits for backend Java based solutions)
3-
#
4-
# - http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html
5-
#
6-
32f19f3a0fb872f363689c85321e0021 server-jre-8u77-linux-x64.tar.gz
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
11
b79fb4f98ba29192d62773bcc48d8c0d fmw_12.2.1.0.0_coherence_Disk1_1of1.zip
2-
# Download the Server JRE (which includes necessary JDK bits for backend Java based solutions)
3-
#
4-
# - http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html
5-
#
6-
32f19f3a0fb872f363689c85321e0021 server-jre-8u77-linux-x64.tar.gz

OracleCoherence/dockerfiles/12.2.1/Dockerfile.quickinstall

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,28 @@
2626

2727
# Pull base image
2828
# ---------------
29-
FROM oraclelinux:latest
29+
FROM oracle/jdk:8
3030

3131
# Maintainer
3232
# ----------
3333
MAINTAINER Bruno Borges <[email protected]>
3434

3535
# Environment variables required for this build (do NOT change)
36-
ENV JAVA_PKG=server-jre-8u*-linux-x64.tar.gz \
37-
JAVA_HOME=/usr/java/default \
38-
FMW_PKG=fmw_12.2.1.0.0_coherence_quick_Disk1_1of1.zip \
36+
ENV FMW_PKG=fmw_12.2.1.0.0_coherence_quick_Disk1_1of1.zip \
3937
FMW_JAR=fmw_12.2.1.0.0_coherence_quick.jar \
4038
ORACLE_HOME=/u01/oracle/oracle_home \
4139
PATH=$PATH:/usr/java/default/bin:/u01/oracle/oracle_home/oracle_common/common/bin \
4240
CONFIG_JVM_ARGS="-Djava.security.egd=file:/dev/./urandom"
4341

4442
# Copy files required to build this image
4543
COPY $FMW_PKG install.file oraInst.loc /u01/
46-
ADD $JAVA_PKG /usr/java/
4744

4845
# Install and configure Oracle JDK
4946
# Setup required packages (unzip), filesystem, and oracle user
5047
# ------------------------------------------------------------
51-
RUN chmod a+xr /u01 && \
48+
RUN chmod a+xr /u01 && \
5249
useradd -b /u01 -m -s /bin/bash oracle && \
5350
echo oracle:oracle | chpasswd && \
54-
mv $(ls -1 -d /usr/java/*) $JAVA_HOME && \
5551
cd /u01 && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && cd - && \
5652
su -c "$JAVA_HOME/bin/java -jar /u01/$FMW_JAR -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME" - oracle && \
5753
chown oracle:oracle -R /u01 && \

OracleCoherence/dockerfiles/12.2.1/Dockerfile.standalone

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,28 @@
2626

2727
# Pull base image
2828
# ---------------
29-
FROM oraclelinux:latest
29+
FROM oracle/jdk:8
3030

3131
# Maintainer
3232
# ----------
3333
MAINTAINER Bruno Borges <[email protected]>
3434

3535
# Environment variables required for this build (do NOT change)
36-
ENV JAVA_PKG=server-jre-8u*-linux-x64.tar.gz \
37-
JAVA_HOME=/usr/java/default \
38-
FMW_PKG=fmw_12.2.1.0.0_coherence_Disk1_1of1.zip \
36+
ENV FMW_PKG=fmw_12.2.1.0.0_coherence_Disk1_1of1.zip \
3937
FMW_JAR=fmw_12.2.1.0.0_coherence.jar \
4038
ORACLE_HOME=/u01/oracle/oracle_home \
4139
PATH=$PATH:/usr/java/default/bin:/u01/oracle/oracle_home/oracle_common/common/bin \
4240
CONFIG_JVM_ARGS="-Djava.security.egd=file:/dev/./urandom"
4341

4442
# Copy files required to build this image
4543
COPY $FMW_PKG install.file oraInst.loc /u01/
46-
ADD $JAVA_PKG /usr/java/
4744

4845
# Install and configure Oracle JDK
4946
# Setup required packages (unzip), filesystem, and oracle user
5047
# ------------------------------------------------------------
5148
RUN chmod a+xr /u01 && \
5249
useradd -b /u01 -m -s /bin/bash oracle && \
5350
echo oracle:oracle | chpasswd && \
54-
mv $(ls -1 -d /usr/java/*) $JAVA_HOME && \
5551
cd /u01 && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && cd - && \
5652
su -c "$JAVA_HOME/bin/java -jar /u01/$FMW_JAR -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME" - oracle && \
5753
chown oracle:oracle -R /u01 && \

0 commit comments

Comments
 (0)