forked from oracle/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# LICENSE UPL 1.0 | ||
# | ||
# Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. | ||
# | ||
FROM oraclelinux:7-slim | ||
|
||
MAINTAINER Aurelio Garcia-Ribeyro <[email protected]> | ||
|
||
ENV JAVA_PKG=serverjre-9*-linux-x64_bin.tar.gz \ | ||
JAVA_HOME=/usr/java/default | ||
|
||
ADD $JAVA_PKG /usr/java/ | ||
|
||
RUN export JAVA_DIR=$(ls -1 -d /usr/java/*) && \ | ||
ln -s $JAVA_DIR /usr/java/latest && \ | ||
ln -s $JAVA_DIR /usr/java/default && \ | ||
alternatives --install /usr/bin/java java $JAVA_DIR/bin/java 20000 && \ | ||
alternatives --install /usr/bin/javac javac $JAVA_DIR/bin/javac 20000 && \ | ||
alternatives --install /usr/bin/jar jar $JAVA_DIR/bin/jar 20000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
docker build -t oracle/serverjre:9 . |
5 changes: 5 additions & 0 deletions
5
OracleJava/java-9/serverjre-9.0.1_linux-x64_bin.tar.gz.download
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Download the Server JRE (which includes necessary JDK bits for backend Java based solutions) | ||
# | ||
# - http://www.oracle.com/technetwork/java/javase/downloads/server-jre9-downloads-3848530.html | ||
# | ||
ecf9ad38803d643eeb8a5321de6aa99e8ceda2d40b27a9f49c42012f8d9e3eae serverjre-9.0.1_linux-x64_bin.tar.gz |