• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 alpine:3.15
18
19  # Install Git and basic packages.
20  RUN apk update && apk add ${'\\'}
21    autoconf ${'\\'}
22    automake ${'\\'}
23    bzip2 ${'\\'}
24    build-base ${'\\'}
25    cmake ${'\\'}
26    curl ${'\\'}
27    gcc ${'\\'}
28    git ${'\\'}
29    libtool ${'\\'}
30    linux-headers ${'\\'}
31    make ${'\\'}
32    perl ${'\\'}
33    strace ${'\\'}
34    python3 ${'\\'}
35    py3-pip ${'\\'}
36    unzip ${'\\'}
37    wget ${'\\'}
38    zip
39
40  <%include file="../../git_avoid_dubious_ownership_error.include"/>
41
42  # use pinned version of pip to avoid sudden breakages
43  RUN python3 -m pip install --upgrade pip==19.3.1
44
45  # TODO(jtattermusch): currently six is needed for tools/run_tests scripts
46  # but since our python2 usage is deprecated, we should get rid of it.
47  RUN python3 -m pip install six==1.16.0
48
49  # Google Cloud Platform API libraries
50  # These are needed for uploading test results to BigQuery (e.g. by tools/run_tests scripts)
51  RUN python3 -m pip install --upgrade google-auth==1.24.0 google-api-python-client==1.12.8 oauth2client==4.1.0
52
53  RUN python3 -m pip install --upgrade --ignore-installed PyYAML==6.0.1 --user
54
55  <%include file="../../cxx_test_deps.include"/>
56  <%include file="../../ccache.include"/>
57  <%include file="../../run_tests_addons.include"/>
58
59
60  # Define the default command.
61  CMD ["bash"]
62