Debian Codegraph @

tools/dockerfile/test/cxx_alpine_x64/Dockerfile

raw
1 # Copyright 2015 gRPC authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 FROM alpine:3.11
16
17 # Install Git and basic packages.
18 RUN apk update && apk add \
19 autoconf \
20 automake \
21 bzip2 \
22 build-base \
23 cmake \
24 ccache \
25 curl \
26 gcc \
27 git \
28 libtool \
29 linux-headers \
30 make \
31 perl \
32 strace \
33 python3 \
34 py3-pip \
35 unzip \
36 wget \
37 zip
38
39 # use pinned version of pip to avoid sudden breakages
40 RUN python3 -m pip install --upgrade pip==19.3.1
41
42 # TODO(jtattermusch): currently six is needed for tools/run_tests scripts
43 # but since our python2 usage is deprecated, we should get rid of it.
44 RUN python3 -m pip install six==1.16.0
45
46 # Google Cloud Platform API libraries
47 # These are needed for uploading test results to BigQuery (e.g. by tools/run_tests scripts)
48 RUN python3 -m pip install --upgrade google-auth==1.24.0 google-api-python-client==1.12.8 oauth2client==4.1.0
49
50 RUN python3 -m pip install --upgrade --ignore-installed PyYAML==5.4.1 --user
51
52 #=================
53 # Install ccache
54
55 # Install ccache from source since ccache 3.x packaged with most linux distributions
56 # does not support Redis backend for caching.
57 RUN curl -sSL -o ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.5.1/ccache-4.5.1.tar.gz \
58 && tar -zxf ccache.tar.gz \
59 && cd ccache-4.5.1 \
60 && mkdir build && cd build \
61 && cmake -DCMAKE_BUILD_TYPE=Release -DZSTD_FROM_INTERNET=ON -DHIREDIS_FROM_INTERNET=ON .. \
62 && make -j4 && make install \
63 && cd ../.. \
64 && rm -rf ccache-4.5.1 ccache.tar.gz
65
66
67 RUN mkdir /var/local/jenkins
68
69
70 # Define the default command.
71 CMD ["bash"]