Skip to content

Commit

Permalink
Aureliogrb java 9 (oracle#624)
Browse files Browse the repository at this point in the history
* Added Java ServerJRE 9 (Linux)
  • Loading branch information
aureliogrb authored and Djelibeybi committed Oct 31, 2017
1 parent 87b988f commit 7f45552
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OracleJava/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ Build a Docker image containing Oracle Java (Server JRE specifically).

The Oracle Java Server JRE provides the same features as Oracle Java JDK commonly required for Server-side Applications (i.e. Java EE application servers). For more information about Server JRE, visit the [Understanding the Server JRE](https://blogs.oracle.com/java-platform-group/understanding-the-server-jre) blog entry from the Java Product Management team.

## Java 9
[Download Server JRE 9](http://www.oracle.com/technetwork/java/javase/downloads/server-jre9-downloads-3848530.html) `.tar.gz` file and drop it inside folder `java-9`.
Build it:

```
$ cd java-9
$ docker build -t oracle/serverjre:9 .
```

## Java 8
[Download Server JRE 8](http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html) `.tar.gz` file and drop it inside folder `java-8`.
Build it:
Expand Down
19 changes: 19 additions & 0 deletions OracleJava/java-9/Dockerfile
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
2 changes: 2 additions & 0 deletions OracleJava/java-9/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
docker build -t oracle/serverjre:9 .
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

0 comments on commit 7f45552

Please sign in to comment.