Imported Upstream version 1.27.0
[platform/upstream/grpc.git] / tools / dockerfile / test / cxx_alpine_x64 / Dockerfile
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.5
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   python-dev \
34   py-pip \
35   py-yaml \
36   unzip \
37   wget \
38   zip
39
40 # Install Python packages from PyPI
41 RUN pip install --upgrade pip==19.3.1
42 RUN pip install virtualenv
43 RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.0.post1 six==1.10.0 twisted==17.5.0
44
45 # Google Cloud platform API libraries
46 RUN pip install --upgrade google-api-python-client
47
48 # Install gflags
49 RUN git clone https://github.com/gflags/gflags.git && cd gflags && git checkout v2.2.0
50 RUN cd gflags && cmake . && make && make install
51 RUN ln -s /usr/local/include/gflags /usr/include/gflags
52
53
54 RUN mkdir /var/local/jenkins
55
56
57 # Define the default command.
58 CMD ["bash"]