Git Product home page Git Product logo

java's Introduction

Dockerized Oracle Java Images

Docker Stars Docker Pulls

Supported tags and respective Dockerfile links

Java Version Tag Dockerfile
Java JRE 8 jre.8, latest Dockerfile
Java Server JRE 8 server-jre.8 Dockerfile
Java JDK 8 jdk.8 Dockerfile

Supported CentOS Images

Java Version Tag Dockerfile
Java JRE 8 centos.jre.8 Dockerfile
Java Server JRE 8 centos.server-jre.8 Dockerfile
Java JDK 8 centos.jdk.8 Dockerfile

Supported Ubuntu Images

Java Version Tag Dockerfile
Java JRE 8 ubuntu.jre.8 Dockerfile
Java Server JRE 8 ubuntu.server-jre.8 Dockerfile
Java JDK 8 ubuntu.jdk.8 Dockerfile

Supported OpenJDK Images

Java Version Tag Dockerfile
Java JRE 8 openjre.8 Dockerfile
Java JDK 8 openjdk.8 Dockerfile

Make It Short

$ docker run blacklabelops/java java -version

Will print the java version on console.

Use Versions

Just add the respective tag to the image name!

Example: Java JDK 7

$ docker run blacklabelops/java:jdk7 java -version

Will print the java version on console.

How-To Extend

Example Dockerfile:

FROM blacklabelops/java
MAINTAINER Your Name <[email protected]>

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 <[email protected]>

RUN Install-Your-Tooling

Will use Java JDK 8 as your base image.

Build Image

Take a Dockerfile and build with the default arguments:

$ docker build -t blacklabelops/java -f java-oracle-alpine/Dockerfile .

Build a specific Oracle 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 from any Oracle Java download page.
  • JAVA_BUILD_NUMBER: The build number from any Oracle Java download page.
  • JAVA_HASH: The hash from any Oracle Java download page.

Example:

$ docker build -t blacklabelops/java \
  --build-arg JAVA_DISTRIBUTION=server-jre \
  --build-arg JAVA_MAJOR_VERSION=8 \
  --build-arg JAVA_UPDATE_VERSION=161 \
  --build-arg JAVA_BUILD_NUMBER=12 \
  --build-arg JAVA_HASH=2f38c3b165be4555a1fa6e98c45e0808 \
  -f java-oracle-alpine/Dockerfile .

Will build image containing Server JRE 8 in version 8.161.12.

Note: It's only possible to download the Java versions available at http://www.oracle.com/technetwork/java/javase/downloads/index.html. (An Oracle account is necessary to download archived Java versions.)

Support

Leave a message and ask questions on Hipchat: blacklabelops/hipchat

Github

The Dockerfiles for the different Java versions are maintained in the respective folders.

Example:

Folder: java-jdk-8-oracle

Version: Java Development Kit (JDK) Version 8, VM implementation by Oracle

Vagrant

Vagrant is fabulous tool for pulling and spinning up virtual machines like docker with containers. I can configure my development and test environment and simply pull it online. And so can you! Install Vagrant and Virtualbox and spin it up. Change into the project folder and build the project on the spot!

$ vagrant up
$ vagrant ssh
[vagrant@localhost ~]$ cd /vagrant/java-jdk-8-oracle/
[vagrant@localhost ~]$ docker build -t blacklabelops/jdk8 .

References

java's People

Contributors

bitdeli-chef avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.