Skip to content

Commit 62d1420

Browse files
committed
Use Rocky Linux to build RPM packages
1 parent c6f09c1 commit 62d1420

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pkg/rpm/Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919

2020
# Build pulsar client library in Centos with tools to build static RPM
2121

22-
FROM centos:7
22+
FROM rockylinux:8
2323

2424
ARG PLATFORM
2525

2626
RUN 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

3636
RUN pip3 install pyyaml
@@ -39,15 +39,13 @@ ADD .build/dependencies.yaml /
3939
ADD .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
4342
RUN 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

5351
RUN 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/:
106103
ENV OPENSSL_ROOT_DIR /usr/local/ssl/
107104

108105
# LibCurl

0 commit comments

Comments
 (0)