Java Version | Tag | Dockerfile |
---|---|---|
Java JRE 8 | openjre.8 | Dockerfile |
Java JDK 8 | openjdk.8 | Dockerfile |
$ docker run blacklabelops/java java -version
Will print the java version on console.
Example Dockerfile:
FROM blacklabelops/java
MAINTAINER Your Name <your@email.com>
RUN Install-Your-Tooling
Will use Java JRE 8 as your base image.
Need the JDK?
Example Dockerfile:
FROM blacklabelops/java:jdk8
MAINTAINER Your Name <your@email.com>
RUN Install-Your-Tooling
Will use Java JDK 8 as your base image.
Take a Dockerfile and build with the default arguments:
$ docker build -t blacklabelops/java -f java-openjdk/Dockerfile .
Build a specific version with the following build arguments:
- JAVA_DISTRIBUTION: jdk, jre, or server-jre (default: jdk)
- JAVA_MAJOR_VERSION: 7 or 8
- JAVA_UPDATE_VERSION: The minor version.
- JAVA_BUILD_NUMBER: The build number.