| 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.11 |
| 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 |
ccache ${'\\'} |
| 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 |
# use pinned version of pip to avoid sudden breakages |
| 42 |
RUN python3 -m pip install --upgrade pip==19.3.1 |
| 43 |
|
| 44 |
# TODO(jtattermusch): currently six is needed for tools/run_tests scripts |
| 45 |
# but since our python2 usage is deprecated, we should get rid of it. |
| 46 |
RUN python3 -m pip install six==1.16.0 |
| 47 |
|
| 48 |
# Google Cloud Platform API libraries |
| 49 |
# These are needed for uploading test results to BigQuery (e.g. by tools/run_tests scripts) |
| 50 |
RUN python3 -m pip install --upgrade google-auth==1.24.0 google-api-python-client==1.12.8 oauth2client==4.1.0 |
| 51 |
|
| 52 |
RUN python3 -m pip install --upgrade --ignore-installed PyYAML==5.4.1 --user |
| 53 |
|
| 54 |
<%include file="../../ccache.include"/> |
| 55 |
<%include file="../../run_tests_addons.include"/> |
| 56 |
|
| 57 |
# Define the default command. |
| 58 |
CMD ["bash"] |