Files

36 lines
1.6 KiB
Docker
Raw Permalink Normal View History

FROM ubuntu:22.04
2020-12-09 18:48:52 -08:00
2020-12-30 01:28:26 -08:00
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && apt-get install -y curl gnupg2 git \
python-is-python3 python3 python3-distutils python3-pip \
2020-12-30 01:28:26 -08:00
build-essential crossbuild-essential-arm64 qemu-user-static \
openjdk-11-jdk-headless zip unzip \
apt-transport-https ca-certificates gnupg-agent \
software-properties-common \
2022-07-26 11:50:34 -07:00
pkg-config libffi-dev patch diffutils libssl-dev iptables kmod \
2024-06-24 18:22:37 -07:00
clang crossbuild-essential-amd64 erofs-utils busybox-static libbpf-dev \
2024-09-24 13:26:47 -07:00
iproute2 netcat libnuma-dev
2022-07-26 11:50:34 -07:00
# This package is needed to build eBPF on amd64, but not on arm64 where it
# doesn't exist.
RUN test "$(uname -m)" != x86_64 && exit 0 || apt-get install -y libc6-dev-i386
# Install Docker client for the website build.
2020-12-30 01:28:26 -08:00
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN add-apt-repository \
"deb https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
RUN apt-get -y install docker-ce-cli
2020-12-09 18:48:52 -08:00
2020-12-30 01:28:26 -08:00
# Install gcloud.
RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-410.0.0-linux-x86_64.tar.gz | \
2020-12-30 01:28:26 -08:00
tar zxf - google-cloud-sdk && \
google-cloud-sdk/install.sh --quiet && \
ln -s /google-cloud-sdk/bin/gcloud /usr/bin/gcloud
# Download the official bazel binary. The APT repository isn't used because there is not packages for arm64.
RUN sh -c 'curl -o /usr/local/bin/bazel https://releases.bazel.build/7.5.0/release/bazel-7.5.0-linux-$(uname -m | sed s/aarch64/arm64/) && chmod ugo+x /usr/local/bin/bazel'
2020-04-24 14:10:28 -07:00
WORKDIR /workspace
2020-12-30 01:28:26 -08:00
ENTRYPOINT ["/usr/local/bin/bazel"]