diff options
| author | Andrei Vagin <avagin@google.com> | 2021-08-12 22:19:31 -0700 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2021-08-16 11:46:59 +0200 |
| commit | 6652437df0ae46ec854536cb66264b9282e500ec (patch) | |
| tree | 2c5a73fdbe6822f2e8e2eef30a9e781b2f8cc224 /tools | |
| parent | 2489ab887a86e8b1b253aef742e365a606db3a4f (diff) | |
tools/docker/syzbot: install bazel from the official bazel repo
The debian repo contains an old version and it can't build gVisor:
external/rules_pkg/private/pkg_files.bzl:315:12: name 'json' is not defined
Signed-off-by: Andrei Vagin <avagin@google.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/docker/syzbot/Dockerfile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/docker/syzbot/Dockerfile b/tools/docker/syzbot/Dockerfile index f2af37930..6fea0260f 100644 --- a/tools/docker/syzbot/Dockerfile +++ b/tools/docker/syzbot/Dockerfile @@ -11,7 +11,7 @@ FROM debian:bullseye RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q \ # Build essentials: - gcc g++ binutils make ccache bazel-bootstrap golang-go \ + gcc g++ binutils make ccache golang-go \ clang clang-format clang-tidy \ # Some common utilities: unzip curl sudo procps psmisc nano vim git bzip2 dh-autoreconf software-properties-common \ @@ -26,11 +26,18 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q \ # Cross-compilation: g++-arm-linux-gnueabi g++-aarch64-linux-gnu g++-powerpc64le-linux-gnu \ g++-mips64el-linux-gnuabi64 g++-s390x-linux-gnu g++-riscv64-linux-gnu \ - libc6-dev-i386 libc6-dev-i386-amd64-cross lib32gcc-10-dev lib32stdc++-10-dev + libc6-dev-i386 libc6-dev-i386-amd64-cross lib32gcc-10-dev lib32stdc++-10-dev \ + apt-transport-https curl gnupg python-is-python3 # Not really GRTE, but it's enough to run some scripts that hardcode the path. RUN mkdir -p /usr/grte/v5/bin && ln -s /usr/bin/python3 /usr/grte/v5/bin/python2.7 +# Install bazel +RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | \ + sudo tee /etc/apt/sources.list.d/bazel.list && \ + curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q bazel + # pkg/osutil uses syzkaller user for sandboxing. RUN useradd syzkaller RUN echo "export PS1='\n\W🤖 '" >> /root/.bashrc |
