From 71c37c49d1801641bfd8a115b9efebca6705a4e3 Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 8 Aug 2017 11:33:57 +0300 Subject: [PATCH 1/8] Added only for Java 8 Oracle SDK --- .gitignore | 1 + oracle-java8/Dockerfile | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/oracle-java8/Dockerfile b/oracle-java8/Dockerfile index 2d9946f..6a683ff 100644 --- a/oracle-java8/Dockerfile +++ b/oracle-java8/Dockerfile @@ -6,14 +6,17 @@ # # Pull base image. -FROM dockerfile/ubuntu +FROM ubuntu:17.04 # Install Java. -RUN \ +RUN \ echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ - add-apt-repository -y ppa:webupd8team/java && \ + apt-get update && \ + apt-get install -y software-properties-common python-software-properties && \ + add-apt-repository ppa:webupd8team/java -y && \ apt-get update && \ apt-get install -y oracle-java8-installer && \ + apt-get install -y oracle-java8-set-default && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /var/cache/oracle-jdk8-installer From c314ac56573075b7d84229a098524135b64a9441 Mon Sep 17 00:00:00 2001 From: andrew Date: Tue, 8 Aug 2017 12:04:51 +0300 Subject: [PATCH 2/8] Edit README.MD file --- README.md | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 0ad0c4a..a197a17 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,14 @@ ## Java Dockerfile - -This repository contains **Dockerfile** of [Java](https://www.java.com/) for [Docker](https://www.docker.com/)'s [automated build](https://registry.hub.docker.com/u/dockerfile/java/) published to the public [Docker Hub Registry](https://registry.hub.docker.com/). - - -### Base Docker Image - -* [dockerfile/ubuntu](http://dockerfile.github.io/#/ubuntu) - - -### 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](https://www.docker.com/). -2. Download [automated build](https://registry.hub.docker.com/u/dockerfile/java/) from public [Docker Hub Registry](https://registry.hub.docker.com/): `docker pull dockerfile/java` - - (alternatively, you can build an image from Dockerfile: `docker build -t="dockerfile/java" github.com/dockerfile/java`) +### Usage + cd oracle-java8 + docker build -t uandrew1965/java-sdk:1.8.0_144-b01 . ##(1.8.0_144-b01 version java-sdk now) + docker run -it --name java-sdk-1.8.0_144-b01 uandrew1965/java-sdk:1.8.0_144-b01 + java -version ### Usage From 1bf194ad3b93a5732241d7d05709a7b84b8e5177 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 9 Aug 2017 20:00:02 +0300 Subject: [PATCH 3/8] Edit README.MD file --- README.md | 4 ++-- oracle-java8/Dockerfile& | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 oracle-java8/Dockerfile& diff --git a/README.md b/README.md index a197a17..e1e5df9 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ ### Usage cd oracle-java8 - docker build -t uandrew1965/java-sdk:1.8.0_144-b01 . ##(1.8.0_144-b01 version java-sdk now) - docker run -it --name java-sdk-1.8.0_144-b01 uandrew1965/java-sdk:1.8.0_144-b01 + docker build -t uandrew1965/java-sdk:1.8.0.144-b01 . ##(1.8.0_144-b01 version java-sdk now) + docker run -it --name java-sdk-1.8.0.144-b01 uandrew1965/java-sdk:1.8.0.144-b01 java -version diff --git a/oracle-java8/Dockerfile& b/oracle-java8/Dockerfile& new file mode 100644 index 0000000..6a683ff --- /dev/null +++ b/oracle-java8/Dockerfile& @@ -0,0 +1,31 @@ +# +# Oracle Java 8 Dockerfile +# +# https://github.com/dockerfile/java +# https://github.com/dockerfile/java/tree/master/oracle-java8 +# + +# Pull base image. +FROM ubuntu:17.04 + +# Install Java. +RUN \ + echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ + apt-get update && \ + apt-get install -y software-properties-common python-software-properties && \ + add-apt-repository ppa:webupd8team/java -y && \ + apt-get update && \ + apt-get install -y oracle-java8-installer && \ + apt-get install -y oracle-java8-set-default && \ + rm -rf /var/lib/apt/lists/* && \ + rm -rf /var/cache/oracle-jdk8-installer + + +# Define working directory. +WORKDIR /data + +# Define commonly used JAVA_HOME variable +ENV JAVA_HOME /usr/lib/jvm/java-8-oracle + +# Define default command. +CMD ["bash"] From ab548f400cecf2c7e7a62c51391808f62f7ec180 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 9 Aug 2017 20:02:48 +0300 Subject: [PATCH 4/8] Edit README.MD file --- oracle-java8/Dockerfile& | 1 + 1 file changed, 1 insertion(+) diff --git a/oracle-java8/Dockerfile& b/oracle-java8/Dockerfile& index 6a683ff..c0da82f 100644 --- a/oracle-java8/Dockerfile& +++ b/oracle-java8/Dockerfile& @@ -15,6 +15,7 @@ RUN \ apt-get install -y software-properties-common python-software-properties && \ add-apt-repository ppa:webupd8team/java -y && \ apt-get update && \ + apt-get install -y oracle-java8-installer && \ apt-get install -y oracle-java8-set-default && \ rm -rf /var/lib/apt/lists/* && \ From f80c2e403da98f201276cb07c6f9ead76e1e6c4d Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 10 Aug 2017 10:55:15 +0300 Subject: [PATCH 5/8] Edit README.MD file --- oracle-java8/Dockerfile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/oracle-java8/Dockerfile b/oracle-java8/Dockerfile index 6a683ff..1df1415 100644 --- a/oracle-java8/Dockerfile +++ b/oracle-java8/Dockerfile @@ -10,15 +10,16 @@ FROM ubuntu:17.04 # Install Java. RUN \ - echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ - apt-get update && \ - apt-get install -y software-properties-common python-software-properties && \ - add-apt-repository ppa:webupd8team/java -y && \ - apt-get update && \ - apt-get install -y oracle-java8-installer && \ - apt-get install -y oracle-java8-set-default && \ - rm -rf /var/lib/apt/lists/* && \ - rm -rf /var/cache/oracle-jdk8-installer + echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \ + && apt-get update \ + && apt-get dist-upgrade \ + && apt-get install -y software-properties-common python-software-properties \ + && add-apt-repository ppa:webupd8team/java -y \ + && apt-get update \ + && apt-get install -y oracle-java8-installer \ + && apt-get install -y oracle-java8-set-default \ + && rm -rf /var/lib/apt/lists/* \ + && rm -rf /var/cache/oracle-jdk8-installer # Define working directory. From 9ee6fcfee975f392b6ee7da6cc9d37f5e0ff2f72 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 10 Aug 2017 10:58:47 +0300 Subject: [PATCH 6/8] Edit README.MD file --- oracle-java8/Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/oracle-java8/Dockerfile b/oracle-java8/Dockerfile index 1df1415..037b047 100644 --- a/oracle-java8/Dockerfile +++ b/oracle-java8/Dockerfile @@ -13,11 +13,11 @@ RUN \ echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \ && apt-get update \ && apt-get dist-upgrade \ - && apt-get install -y software-properties-common python-software-properties \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common python-software-properties \ && add-apt-repository ppa:webupd8team/java -y \ && apt-get update \ - && apt-get install -y oracle-java8-installer \ - && apt-get install -y oracle-java8-set-default \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y oracle-java8-installer \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y oracle-java8-set-default \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /var/cache/oracle-jdk8-installer @@ -27,6 +27,3 @@ WORKDIR /data # Define commonly used JAVA_HOME variable ENV JAVA_HOME /usr/lib/jvm/java-8-oracle - -# Define default command. -CMD ["bash"] From 46bc6197c85fe65a7c151adf161860f836b753a6 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 10 Aug 2017 11:03:39 +0300 Subject: [PATCH 7/8] Edit README.MD file --- oracle-java8/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oracle-java8/Dockerfile b/oracle-java8/Dockerfile index 037b047..caf2ea6 100644 --- a/oracle-java8/Dockerfile +++ b/oracle-java8/Dockerfile @@ -13,7 +13,7 @@ RUN \ echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \ && apt-get update \ && apt-get dist-upgrade \ - && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common python-software-properties \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils software-properties-common python-software-properties \ && add-apt-repository ppa:webupd8team/java -y \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y oracle-java8-installer \ From 6e0671ca38fa65d1eb4fbc7414a983808ae2d189 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 10 Aug 2017 11:22:24 +0300 Subject: [PATCH 8/8] Edit README.MD file --- oracle-java8/Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/oracle-java8/Dockerfile b/oracle-java8/Dockerfile index caf2ea6..e731803 100644 --- a/oracle-java8/Dockerfile +++ b/oracle-java8/Dockerfile @@ -12,7 +12,6 @@ FROM ubuntu:17.04 RUN \ echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \ && apt-get update \ - && apt-get dist-upgrade \ && DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils software-properties-common python-software-properties \ && add-apt-repository ppa:webupd8team/java -y \ && apt-get update \