Git Product home page Git Product logo

java's Introduction

Java Dockerfile

This repository contains Dockerfile of Java for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image

Docker Tags

dockerfile/java provides multiple tagged images:

  • latest (default): OpenJDK Java 7 JRE (alias to openjdk-7-jre)
  • openjdk-6-jdk: OpenJDK Java 6 JDK
  • openjdk-6-jre: OpenJDK Java 6 JRE
  • openjdk-7-jdk: OpenJDK Java 7 JDK
  • openjdk-7-jre: OpenJDK Java 7 JRE
  • oracle-java6: Oracle Java 6 JDK
  • oracle-java7: Oracle Java 7 JDK
  • oracle-java8: Oracle Java 8 JDK

For example, you can run a Oracle Java 8 container with the following command:

docker run -it --rm dockerfile/java:oracle-java8 java -version

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull dockerfile/java

    (alternatively, you can build an image from Dockerfile: docker build -t="dockerfile/java" github.com/dockerfile/java)

Usage

docker run -it --rm dockerfile/java

Run java

docker run -it --rm dockerfile/java java

Run javac

docker run -it --rm dockerfile/java javac

java's People

Contributors

pilwon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java's Issues

Add License

Hi,

could you please add a License to the repository?
MIT would be great :)
Thank you for the handy Dockerfile!
Keep up the good work!

Error: image oracle/serverjre:8 not found

Hi
When I run the sh buildOdkcerImage.sh -d, it starts to install fmw_12.2.1.0.0_wls_quick_Disk1_1of1.zip with SUCCESS. But whe it sends build context to Docker daemon it returns:

Step 1 : FROM oracle/serverjre:8
Pulling repository docker.io/oracle/serverjre
Error: image oracle/serverjre:8 not found
There was an error building the image.

I googled it and some foruns say the pulling URL (docker.io/oracle/serverjre) has changed. Where do I change this in the sh?

Rename oracle-java

I think it'd be clearer to describe that this is Oracle's JRE. I think it would be cool to also make an OpenJDK JRE available.

Version tagged releases

At the moment there's no way to make sure you get a specific release of Java by using a specific tag. This means it's not possible to have highly reproducible builds.

Tag `oracle-java8` not found

tmp$ docker run --name test --rm -it dockerfile/java:oracle-java8
Unable to find image 'dockerfile/java:oracle-java8' locally
Pulling repository dockerfile/java
2014/08/29 13:55:24 Tag oracle-java8 not found in repository dockerfile/java

JAVA_HOME

Hi. While playing with simple hadoop cluster setup inside docker containers, I noticed that lots of other software (not only hadoop) relies on $JAVA_HOME variable.
And while this build is responsible for java flavor installation, wouldn't it be reasonable to define JAVA_HOME in Dockerfile via ENV command, for further use?

My thoughts relies on best practices, where ENV usage is proper for "providing variables specific for containterized service"

Java 8

Would you be interested in a PR to update to Java 8?

If yes, how about tagging the current release as dockerfile/java:7 and the the next as dockerfile/java:8 -- which will automatically get the latest tag?

docker image

can the tutorial can build images for openshift origin ? also on centos 7

The current install scripts for Oracle Java 8 are broken

  Downloading Oracle Java 8...
  --2018-01-17 09:32:46--  http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
  Resolving download.oracle.com (download.oracle.com)... 104.91.214.56
  Connecting to download.oracle.com (download.oracle.com)|104.91.214.56|:80... connected.
  HTTP request sent, awaiting response... 302 Moved Temporarily
  Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz [following]
  --2018-01-17 09:32:46--  https://edelivery.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
  Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.39.16.136, 2600:1409:a:39c::2d3e, 2600:1409:a:39e::2d3e
  Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.39.16.136|:443... connected.
  HTTP request sent, awaiting response... 302 Moved Temporarily
  Location: http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1516181686_af52182dccb9555603c4b4a64e6cfb93 [following]
  --2018-01-17 09:32:46--  http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz?AuthParam=1516181686_af52182dccb9555603c4b4a64e6cfb93
  Connecting to download.oracle.com (download.oracle.com)|104.91.214.56|:80... connected.
  HTTP request sent, awaiting response... 404 Not Found
  2018-01-17 09:32:46 ERROR 404: Not Found.

can't run jar file

Hello,

I'm doing

root@ubuntu-14:/var/www# docker run -p 4444:4444 dockerfile/java java -jar selenium-server-standalone-2.42.2.jar -role hub
Error: Unable to access jarfile selenium-server-standalone-2.42.2.jar

the file is right there in the same directory. I've tried full path, making the file executable, etc. and nothing helps.

Any ideas?

java:oracle-java8 not found

Hi i can not pull an Image form java:oracle-java8

Unable to find image 'dockerfile/java:oracle-java8' locally
Pulling repository dockerfile/java
FATA[0003] Error: image dockerfile/java:oracle-java8 not found

thanks for your help

Problem during install java image into docker

I am having below issue during installation of java image in docker ? I want solution to resolve the same?

Sending build context to Docker daemon 99.33 kB
Step 1 : FROM dockerfile/java:oracle-java8
Pulling repository docker.io/dockerfile/java
Error: image dockerfile/java not found

Use OpenJDK

Any reason not to use OpenJDK (except for backwards compatibility at this point)? The Oracle JRE obviously has licensing issues. I know lots of people complain about OpenJDK issues, but I've been running it for years without incident.

Ubuntu version

I see that all the images are using dockerfile/ubuntu causing this to pull the latest version of ubuntu on every build. This makes it hard for people using these images down stream to keep things in sync. Can we standardize this to always use the most recent LTS version? Any reason i am missing that this is not already being done?

bash: javac: command not found

According the steps to build the java image, then docker run -it [name] javac, "docker: Error response from daemon: Container command 'javac' not found or does not exist..", what's wrong?

pull oracle-java7 error

docker pull dockerfile/java:oracle-java7

The error is

2014/09/12 02:34:04 Error pulling image (oracle-java7) from dockerfile/java, write /var/lib/docker/devicemapper/mnt/ab8cf23c9d17cb3c6e644e1b43dea176c0e439df57fdc7ed855bb3443f68b292/rootfs/var/cache/oracle-jdk7-installer/jdk-7u67-linux-x64.tar.gz: read-only file system

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.