| 1 |
%YAML 1.2 |
| 2 |
--- | |
| 3 |
# Copyright 2015 gRPC authors. |
| 4 |
# |
| 5 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 |
# you may not use this file except in compliance with the License. |
| 7 |
# You may obtain a copy of the License at |
| 8 |
# |
| 9 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
# |
| 11 |
# Unless required by applicable law or agreed to in writing, software |
| 12 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
# See the License for the specific language governing permissions and |
| 15 |
# limitations under the License. |
| 16 |
|
| 17 |
FROM silkeh/clang:15-bullseye |
| 18 |
|
| 19 |
<%include file="../../apt_get_basic.include"/> |
| 20 |
<%include file="../../cxx_deps.include"/> |
| 21 |
|
| 22 |
# Install Python 3.7 from source (and installed as a default python3) |
| 23 |
# (Bullseye comes with Python 3.9 which isn't supported by pytype yet) |
| 24 |
RUN apt update && apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev ${'\\'} |
| 25 |
libnss3-dev libssl-dev libreadline-dev libffi-dev libbz2-dev |
| 26 |
RUN curl -O https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tar.xz && ${'\\'} |
| 27 |
tar -xf Python-3.7.9.tar.xz && ${'\\'} |
| 28 |
cd Python-3.7.9 && ${'\\'} |
| 29 |
./configure && ${'\\'} |
| 30 |
make -j 4 && ${'\\'} |
| 31 |
make install |
| 32 |
RUN curl https://bootstrap.pypa.io/get-pip.py | python3 |
| 33 |
|
| 34 |
<%include file="../../gcp_api_libraries.include"/> |
| 35 |
<%include file="../../run_tests_addons.include"/> |
| 36 |
|
| 37 |
#======================== |
| 38 |
# Sanity test dependencies |
| 39 |
|
| 40 |
RUN apt-get update && apt-get install -y ${"\\"} |
| 41 |
autoconf ${"\\"} |
| 42 |
automake ${"\\"} |
| 43 |
libtool ${"\\"} |
| 44 |
curl ${"\\"} |
| 45 |
shellcheck |
| 46 |
|
| 47 |
# otherwise clang-tidy will report missing <gtest/gtest.h> header |
| 48 |
RUN apt-get update && apt-get install -y libgtest-dev && apt-get clean |
| 49 |
|
| 50 |
RUN python3 -m pip install simplejson mako virtualenv==16.7.9 lxml six |
| 51 |
|
| 52 |
# Upgrade Python's YAML library |
| 53 |
RUN python3 -m pip install --upgrade --ignore-installed PyYAML==5.4.1 --user |
| 54 |
|
| 55 |
# Install prerequisites for the clang-tidy script |
| 56 |
RUN apt-get update && apt-get install -y jq git |
| 57 |
|
| 58 |
<%include file="../../bazel.include"/> |
| 59 |
<%include file="../../buildifier.include"/> |
| 60 |
|
| 61 |
# Define the default command. |
| 62 |
CMD ["bash"] |