Skip to content

Commit

Permalink
install Java 8 via ppa:webupd8team/java
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosta-Github committed Aug 11, 2015
1 parent 87a15c8 commit 0479fb8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infrastructure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ RUN apt-get update \
RUN pip install supervisor-stdout
RUN pip install https://github.com/Supervisor/supervisor/archive/3.2-branch.zip

# Java 8 (required for marathon >=11.x)
RUN apt-get install -y software-properties-common \
&& add-apt-repository ppa:webupd8team/java \
&& apt-get update -y
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
RUN apt-get install -y oracle-java8-installer
RUN update-java-alternatives -s java-8-oracle

ENV DOCKER_APP_VERSION 1.7.1-0~trusty
ENV CONSUL_APP_VERSION 0.5.2
ENV CONSUL_TEMPLATE_APP_VERSION 0.10.0
Expand Down

1 comment on commit 0479fb8

@sielaq
Copy link

@sielaq sielaq commented on 0479fb8 Aug 12, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, can you provide repository in a way like we do here:
https://github.com/eBayClassifiedsGroup/PanteraS/blob/master/frameworks/java8/Dockerfile

because we are behind proxy and unfortunately add-apt-repository is not respecting apt proxy
Acquire::http::Proxy "http://host:3128"
we are don;t want to use http_proxy in Dockerfile this is a known issue more detailed
moby/moby#14634
here and even more detailed here
moby/moby#9176

Please sign in to comment.