Skip to content

Commit

Permalink
[improve][cpp] Upgrade OpenSSL to version 1.1.1n (apache#17538)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertIndie authored Sep 13, 2022
1 parent 1395482 commit 06bac43
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions pulsar-client-cpp/docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ RUN curl -O -L https://zlib.net/zlib-1.2.12.tar.gz && \
rm -rf /zlib-1.2.12.tar.gz /zlib-1.2.12

# Compile OpenSSL
RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_0j.tar.gz && \
tar xfz OpenSSL_1_1_0j.tar.gz && \
cd openssl-OpenSSL_1_1_0j/ && \
RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1n.tar.gz && \
tar xfz OpenSSL_1_1_1n.tar.gz && \
cd openssl-OpenSSL_1_1_1n/ && \
./Configure -fPIC no-shared linux-x86_64 && \
make -j8 && make install && \
rm -rf /OpenSSL_1_1_0j.tar.gz /openssl-OpenSSL_1_1_0j
rm -rf /OpenSSL_1_1_1n.tar.gz /openssl-OpenSSL_1_1_1n

# Download and copile protoubf
RUN curl -O -L https://github.com/google/protobuf/releases/download/v3.20.0/protobuf-cpp-3.20.0.tar.gz && \
Expand Down
8 changes: 4 additions & 4 deletions pulsar-client-cpp/docker/alpine/Dockerfile-alpine-3.8
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ RUN curl -O -L https://zlib.net/zlib-1.2.12.tar.gz && \
rm -rf /zlib-1.2.12.tar.gz /zlib-1.2.12

# Compile OpenSSL
RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_0j.tar.gz && \
tar xfz OpenSSL_1_1_0j.tar.gz && \
cd openssl-OpenSSL_1_1_0j/ && \
RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1n.tar.gz && \
tar xfz OpenSSL_1_1_1n.tar.gz && \
cd openssl-OpenSSL_1_1_1n/ && \
./Configure -fPIC no-shared linux-x86_64 && \
make -j8 && make install && \
rm -rf /OpenSSL_1_1_0j.tar.gz /openssl-OpenSSL_1_1_0j
rm -rf /OpenSSL_1_1_1n.tar.gz /openssl-OpenSSL_1_1_1n

# Download and copile protoubf
RUN curl -O -L https://github.com/google/protobuf/releases/download/v3.20.0/protobuf-cpp-3.20.0.tar.gz && \
Expand Down
8 changes: 4 additions & 4 deletions pulsar-client-cpp/docker/manylinux1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ RUN curl -O -L https://zlib.net/zlib-1.2.12.tar.gz && \
rm -rf /zlib-1.2.12.tar.gz /zlib-1.2.12

# Compile OpenSSL
RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_0j.tar.gz && \
tar xvfz OpenSSL_1_1_0j.tar.gz && \
cd openssl-OpenSSL_1_1_0j/ && \
RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1n.tar.gz && \
tar xvfz OpenSSL_1_1_1n.tar.gz && \
cd openssl-OpenSSL_1_1_1n/ && \
./Configure -fPIC --prefix=/usr/local/ssl/ no-shared linux-x86_64 && \
make && make install && \
rm -rf /OpenSSL_1_1_0j.tar.gz /openssl-OpenSSL_1_1_0j
rm -rf /OpenSSL_1_1_1n.tar.gz /openssl-OpenSSL_1_1_1n

# Download and compile boost
RUN curl -O -L https://boostorg.jfrog.io/artifactory/main/release/1.68.0/source/boost_1_68_0.tar.gz && \
Expand Down
8 changes: 4 additions & 4 deletions pulsar-client-cpp/pkg/deb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ RUN curl -O -L https://github.com/google/snappy/releases/download/1.1.3/snappy-1
make && make install && \
rm -rf /snappy-1.1.3 /snappy-1.1.3.tar.gz

RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_0j.tar.gz && \
tar xfz OpenSSL_1_1_0j.tar.gz && \
cd openssl-OpenSSL_1_1_0j/ && \
RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1n.tar.gz && \
tar xfz OpenSSL_1_1_1n.tar.gz && \
cd openssl-OpenSSL_1_1_1n/ && \
./Configure -fPIC --prefix=/usr/local/ssl/ linux-x86_64 && \
make -j8 && make install && \
rm -rf /OpenSSL_1_1_0j.tar.gz /openssl-OpenSSL_1_1_0j
rm -rf /OpenSSL_1_1_1n.tar.gz /openssl-OpenSSL_1_1_1n

# LibCurl
RUN curl -O -L https://github.com/curl/curl/releases/download/curl-7_61_0/curl-7.61.0.tar.gz && \
Expand Down
8 changes: 4 additions & 4 deletions pulsar-client-cpp/pkg/rpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ RUN curl -O -L https://github.com/google/snappy/releases/download/1.1.3/snappy-1
make && make install && \
rm -rf /snappy-1.1.3 /snappy-1.1.3.tar.gz

RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_0j.tar.gz && \
tar xfz OpenSSL_1_1_0j.tar.gz && \
cd openssl-OpenSSL_1_1_0j/ && \
RUN curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1n.tar.gz && \
tar xfz OpenSSL_1_1_1n.tar.gz && \
cd openssl-OpenSSL_1_1_1n/ && \
./Configure -fPIC --prefix=/usr/local/ssl/ linux-x86_64 && \
make -j8 && make install && \
rm -rf /OpenSSL_1_1_0j.tar.gz /openssl-OpenSSL_1_1_0j
rm -rf /OpenSSL_1_1_1n.tar.gz /openssl-OpenSSL_1_1_1n

# LibCurl
RUN curl -O -L https://github.com/curl/curl/releases/download/curl-7_61_0/curl-7.61.0.tar.gz && \
Expand Down

0 comments on commit 06bac43

Please sign in to comment.