File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1919
2020# Build pulsar client library in Centos with tools to build static RPM
2121
22- FROM centos:7
22+ FROM rockylinux:8
2323
2424ARG PLATFORM
2525
2626RUN yum update -y && \
2727 yum install -y \
2828 gcc-c++ \
2929 make \
30+ perl \
3031 rpm-build \
3132 which \
3233 createrepo \
33- libstdc++-static \
3434 python3
3535
3636RUN pip3 install pyyaml
@@ -39,15 +39,13 @@ ADD .build/dependencies.yaml /
3939ADD .build/dep-version.py /usr/local/bin
4040
4141# Download and compile boost
42- # GCC 4.8.2 implementation of std::regex is buggy, so we install boost::regex here
4342RUN BOOST_VERSION=$(dep-version.py boost) && \
4443 echo "BOOST VERSION: '${BOOST_VERSION}'" && \
4544 BOOST_VERSION_UNDESRSCORE=$(echo $BOOST_VERSION | sed 's/\. /_/g' ) && \
4645 curl -O -L https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDESRSCORE}.tar.gz && \
4746 tar xfz boost_${BOOST_VERSION_UNDESRSCORE}.tar.gz && \
4847 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/ && \
5149 rm -rf /boost_${BOOST_VERSION_UNDESRSCORE}.tar.gz /boost_${BOOST_VERSION_UNDESRSCORE}
5250
5351RUN CMAKE_VERSION=$(dep-version.py cmake) && \
@@ -102,7 +100,6 @@ RUN OPENSSL_VERSION=$(dep-version.py openssl) && \
102100 make -j8 && make install && \
103101 rm -rf /OpenSSL_${OPENSSL_VERSION_UNDERSCORE}.tar.gz /openssl-OpenSSL_${OPENSSL_VERSION_UNDERSCORE}
104102
105- ENV LD_LIBRARY_PATH /usr/local/ssl/lib/:
106103ENV OPENSSL_ROOT_DIR /usr/local/ssl/
107104
108105# LibCurl
You can’t perform that action at this time.
0 commit comments