Skip to content

Commit

Permalink
Oracle jdk installs are broken (404). Use openjdk
Browse files Browse the repository at this point in the history
  • Loading branch information
jasond-ai2 committed Oct 16, 2018
1 parent ff94371 commit 5f91764
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,19 @@ COPY *.sh ./
COPY tensorflow-cpu/ tensorflow-cpu/
RUN pip3 uninstall -y tensorflow && pip3 install tensorflow-cpu/tensorflow-1.3.1-cp35-cp35m-linux_x86_64.whl

# Install java dependencies and supervisor
# Install supervisor
RUN apt-get install software-properties-common python-software-properties supervisor -y && \
mkdir -p /var/log/supervisor && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update -y && \
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
apt-get install oracle-java8-installer oracle-java8-set-default -y
mkdir -p /var/log/supervisor

# Install java
RUN apt-get install openjdk-8-jdk -y
# Better perf from oracle jdk but this dependency just 404'd on 2018-10-16
# Same was true when I tried ppa:linuxuprising/java for java10
# add-apt-repository ppa:webupd8team/java -y && \
# apt-get update -y && \
# echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
# echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
# apt-get install oracle-java8-installer oracle-java8-set-default -y

COPY supervisord.conf supervisord.conf

Expand Down

0 comments on commit 5f91764

Please sign in to comment.