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