Skip to content

Commit 2d0082e

Browse files
committed
CI: ubuntu: install bazel the recommended way
1 parent 8543d41 commit 2d0082e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ RUN apt-get install -y --no-install-recommends build-essential git gpg \
77
cmake python3 ruby ninja-build libtool autoconf sed ghostscript \
88
time curl automake libatomic1 libgflags-dev libsnappy-dev \
99
zlib1g-dev libbz2-dev liblz4-dev libzstd-dev libreadline-dev \
10-
pkg-config gawk util-linux bazel-bootstrap
10+
pkg-config gawk util-linux
11+
# Install bazel
12+
RUN apt-get install -y --no-install-recommends openjdk-8-jdk apt-transport-https
13+
RUN add-apt-repository ppa:webupd8team/java
14+
RUN apt-get update && apt-get install oracle-java8-installer
15+
RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" > /etc/apt/sources.list.d/bazel.list
16+
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
17+
RUN apt-get update && apt-get install bazel
1118

1219
FROM fedora:latest AS fedora
1320
RUN dnf -y --quiet --nodocs install gcc-c++ clang lld llvm-devel unzip \

0 commit comments

Comments
 (0)