-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-base
82 lines (75 loc) · 2.18 KB
/
Dockerfile-base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Copyright 2020 Major League Baseball
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# centos7 base image
FROM centos:7 as base
# Add Circonus repository
ADD ./buildtools/el7/el7-Circonus.repo /etc/yum.repos.d/Circonus.repo
# Install the things we need
RUN yum -y update && \
yum clean all && \
yum -y install \
sudo \
git \
gcc \
gcc-c++ \
automake \
autoconf \
circonus-field-ck \
circonus-platform-library-curl \
circonus-platform-library-jlog \
circonus-platform-library-libcircllhist \
circonus-platform-library-libmtev \
circonus-platform-library-libssh2 \
circonus-platform-library-uuid \
circonus-platform-library-jemalloc \
lapack-devel \
librdkafka-devel \
libxml2-devel \
libxslt-devel \
ncurses-devel \
openssl-devel \
rsync \
wget \
zlib-devel && \
yum clean all && \
rm -rf /var/cache/yum
# Add EPEL
RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && rpm -ivh epel-release-latest-7.noarch.rpm
RUN yum -y update && \
yum clean all && \
yum -y install \
gflags-devel \
gtest-devel \
libtool \
pkgconfig \
curl \
golang \
cmake3
RUN git clone -b v1.27.x https://github.com/grpc/grpc && \
cd grpc && \
git submodule update --init && \
sed -i.bak 's#grpc_tracer_init();#//grpc_tracer_init();#g' /grpc/src/core/lib/surface/init.cc && \
mkdir -p cmake/build && \
cd cmake/build && \
cmake3 \
-DCMAKE_BUILD_TYPE=Release \
-DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
-DgRPC_SSL_PROVIDER=package \
-S ../.. \
-B `pwd` && \
make -j4 install && \
cd / && \
rm -rf grpc
CMD ["bash"]