-
Notifications
You must be signed in to change notification settings - Fork 43
/
Dockerfile-prow-env
44 lines (35 loc) · 1.61 KB
/
Dockerfile-prow-env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM debian:bookworm
LABEL maintainer="[email protected]"
# add env we can debug with the image name:tag
ARG IMAGE_ARG
ENV IMAGE=${IMAGE_ARG}
RUN apt-get update -y
RUN apt-get -y install \
wget make cmake python3 python3-pip pkg-config coreutils \
zlib1g-dev curl libtool automake zip time rsync ninja-build \
git bash-completion jq default-jdk python3-distutils libicu-dev libbrotli-dev
# # install Bazelisk
RUN wget -O /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.15.0/bazelisk-linux-amd64 && \
chmod +x /usr/local/bin/bazelisk && \
cp /usr/local/bin/bazelisk /usr/local/bin/bazel
# install clang-13 and associated tools
RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \
echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-13 main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y llvm-13 llvm-13-dev libclang-13-dev clang-13 \
lld-13 clang-tools-13 clang-format-13 libc++-dev xz-utils
ENV CC clang-13
ENV CXX clang++-13