Skip to content

Commit 0592d1b

Browse files
Add bazel installation to the Dockerfiles
Also add DEBIAN_FRONTEND=noninteractive to suppress the debconf messages.
1 parent b6d036a commit 0592d1b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

paddle/scripts/docker/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ RUN apt-get update \
1212
RUN pip install -U BeautifulSoup docopt PyYAML pillow \
1313
sphinx sphinx_rtd_theme breathe recommonmark
1414

15+
ARG DEBIAN_FRONTEND=noninteractive
16+
RUN apt-get update && apt-get install -y curl software-properties-common \
17+
&& add-apt-repository ppa:webupd8team/java \
18+
&& echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections \
19+
&& echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
20+
&& curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \
21+
&& apt-get update && apt-get install -y oracle-java8-installer bazel
22+
1523
ARG WITH_AVX
1624
ARG WITH_DOC
1725
ARG WITH_SWIG_PY

paddle/scripts/docker/Dockerfile.gpu

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ RUN apt-get update \
1212
RUN pip install -U BeautifulSoup docopt PyYAML pillow \
1313
sphinx sphinx_rtd_theme breathe recommonmark
1414

15+
ARG DEBIAN_FRONTEND=noninteractive
16+
RUN apt-get update && apt-get install -y curl software-properties-common \
17+
&& add-apt-repository ppa:webupd8team/java \
18+
&& echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections \
19+
&& echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
20+
&& curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \
21+
&& apt-get update && apt-get install -y oracle-java8-installer bazel
22+
1523
ARG WITH_AVX
1624
ARG WITH_DOC
1725
ARG WITH_SWIG_PY

0 commit comments

Comments
 (0)