From 0592d1b76eb3ac9bc3c6e3a479cb72dfab1d45e8 Mon Sep 17 00:00:00 2001 From: Li Peng Date: Wed, 7 Dec 2016 18:10:17 +0800 Subject: [PATCH] Add bazel installation to the Dockerfiles Also add DEBIAN_FRONTEND=noninteractive to suppress the debconf messages. --- paddle/scripts/docker/Dockerfile | 8 ++++++++ paddle/scripts/docker/Dockerfile.gpu | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/paddle/scripts/docker/Dockerfile b/paddle/scripts/docker/Dockerfile index 2a1a842336..a9a72b355e 100644 --- a/paddle/scripts/docker/Dockerfile +++ b/paddle/scripts/docker/Dockerfile @@ -12,6 +12,14 @@ RUN apt-get update \ RUN pip install -U BeautifulSoup docopt PyYAML pillow \ sphinx sphinx_rtd_theme breathe recommonmark +ARG DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y curl software-properties-common \ + && add-apt-repository ppa:webupd8team/java \ + && echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections \ + && echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \ + && curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \ + && apt-get update && apt-get install -y oracle-java8-installer bazel + ARG WITH_AVX ARG WITH_DOC ARG WITH_SWIG_PY diff --git a/paddle/scripts/docker/Dockerfile.gpu b/paddle/scripts/docker/Dockerfile.gpu index b3253d23c3..a147e3840e 100644 --- a/paddle/scripts/docker/Dockerfile.gpu +++ b/paddle/scripts/docker/Dockerfile.gpu @@ -12,6 +12,14 @@ RUN apt-get update \ RUN pip install -U BeautifulSoup docopt PyYAML pillow \ sphinx sphinx_rtd_theme breathe recommonmark +ARG DEBIAN_FRONTEND=noninteractive +RUN apt-get update && apt-get install -y curl software-properties-common \ + && add-apt-repository ppa:webupd8team/java \ + && echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections \ + && echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \ + && curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \ + && apt-get update && apt-get install -y oracle-java8-installer bazel + ARG WITH_AVX ARG WITH_DOC ARG WITH_SWIG_PY -- GitLab