Skip to content

Commit 9009340

Browse files
authored
fix: fix ubuntu openssl (apache#2327)
Fix apache#2325. The reason is that in apache#2293 openssl/types.h was included, while the default version of OpenSSL on Ubuntu 20.04 is 1.1.1 which does not have this header file. To solve this problem, we install OpenSSL 3.0.12 instead on Ubuntu 20.04.
1 parent e4555f0 commit 9009340

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docker/pegasus-build-env/ubuntu2004/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ RUN wget --progress=dot:giga https://archive.apache.org/dist/thrift/0.11.0/thrif
6767
make -j$(($(nproc)/2+1)) && make install && cd - && \
6868
rm -rf thrift-0.11.0 thrift-0.11.0.tar.gz
6969

70+
ENV OPENSSL_VERSION="3.0.12"
71+
ENV OPENSSL_INSTALL_DIR="/usr/local/ssl"
72+
73+
RUN wget https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz -P /opt/openssl\
74+
&& cd /opt/openssl \ && tar -xzvf openssl-$OPENSSL_VERSION.tar.gz \
75+
&& cd openssl-$OPENSSL_VERSION \
76+
&& ./config shared --prefix=$OPENSSL_INSTALL_DIR \
77+
&& make -j$(nproc) \
78+
&& make install \
79+
&& ln -sf $OPENSSL_INSTALL_DIR/bin/openssl /usr/bin/openssl \
80+
&& ln -sf $OPENSSL_INSTALL_DIR/include/openssl /usr/local/include/openssl \
81+
&& echo "$OPENSSL_INSTALL_DIR/lib64" | tee /etc/ld.so.conf.d/openssl-3.0.conf \
82+
&& ldconfig -v
83+
7084
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
7185
ENV CLASSPATH=$JAVA_HOME/lib/
7286
ENV PATH=$JAVA_HOME/bin:$PATH

0 commit comments

Comments
 (0)