File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 19
19
20
20
# Build pulsar client library in Centos with tools to build static RPM
21
21
22
- FROM centos:7
22
+ FROM rockylinux:8
23
23
24
24
ARG PLATFORM
25
25
26
26
RUN yum update -y && \
27
27
yum install -y \
28
28
gcc-c++ \
29
29
make \
30
+ perl \
30
31
rpm-build \
31
32
which \
32
33
createrepo \
33
- libstdc++-static \
34
34
python3
35
35
36
36
RUN pip3 install pyyaml
@@ -39,15 +39,13 @@ ADD .build/dependencies.yaml /
39
39
ADD .build/dep-version.py /usr/local/bin
40
40
41
41
# Download and compile boost
42
- # GCC 4.8.2 implementation of std::regex is buggy, so we install boost::regex here
43
42
RUN BOOST_VERSION=$(dep-version.py boost) && \
44
43
echo "BOOST VERSION: '${BOOST_VERSION}'" && \
45
44
BOOST_VERSION_UNDESRSCORE=$(echo $BOOST_VERSION | sed 's/\. /_/g' ) && \
46
45
curl -O -L https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDESRSCORE}.tar.gz && \
47
46
tar xfz boost_${BOOST_VERSION_UNDESRSCORE}.tar.gz && \
48
47
cd boost_${BOOST_VERSION_UNDESRSCORE} && \
49
- ./bootstrap.sh --with-libraries=regex && \
50
- ./b2 address-model=64 cxxflags=-fPIC link=static threading=multi variant=release install && \
48
+ cp -rf ./boost /usr/include/ && \
51
49
rm -rf /boost_${BOOST_VERSION_UNDESRSCORE}.tar.gz /boost_${BOOST_VERSION_UNDESRSCORE}
52
50
53
51
RUN CMAKE_VERSION=$(dep-version.py cmake) && \
@@ -102,7 +100,6 @@ RUN OPENSSL_VERSION=$(dep-version.py openssl) && \
102
100
make -j8 && make install && \
103
101
rm -rf /OpenSSL_${OPENSSL_VERSION_UNDERSCORE}.tar.gz /openssl-OpenSSL_${OPENSSL_VERSION_UNDERSCORE}
104
102
105
- ENV LD_LIBRARY_PATH /usr/local/ssl/lib/:
106
103
ENV OPENSSL_ROOT_DIR /usr/local/ssl/
107
104
108
105
# LibCurl
You can’t perform that action at this time.
0 commit comments