Skip to content

Commit 8f3ea84

Browse files
changluyizhangzujian
authored andcommitted
compile without ssl
Signed-off-by: clyi <clyi@alauda.io>
1 parent 05e9fbf commit 8f3ea84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dist/images/Dockerfile.base

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
110110

111111
RUN cd /usr/src/ovs && \
112112
./boot.sh && \
113-
./configure && \
113+
./configure --disable-ssl && \
114114
rm -rf .git && \
115-
CONFIGURE_OPTS='CFLAGS="-fPIC"' && \
116-
if [ "$ARCH" = "amd64" ] && [ "$LEGACY" != "true" ]; then CONFIGURE_OPTS='CFLAGS="-O2 -g -msse4.2 -mpopcnt -fPIC"'; fi && \
115+
CONFIGURE_OPTS='--disable-ssl CFLAGS="-fPIC"' && \
116+
if [ "$ARCH" = "amd64" ] && [ "$LEGACY" != "true" ]; then CONFIGURE_OPTS='--disable-ssl CFLAGS="-O2 -g -msse4.2 -mpopcnt -fPIC"'; fi && \
117117
DATAPATH_CONFIGURE_OPTS='--prefix=/usr' EXTRA_CONFIGURE_OPTS=$CONFIGURE_OPTS make debian-deb
118118

119119
RUN cd /usr/src/ovn && \
@@ -245,7 +245,7 @@ RUN --mount=type=bind,target=/packages,from=ovs-builder,source=/packages \
245245
fi
246246

247247
RUN if [ "$ARCH" = "amd64" ]; then \
248-
# env OPENSSL_CONF is only work when user is root, not effect when user is nobody, maybe openssl bug, so we copy openssl binary and libraries to /usr/bin and /usr/lib/x86_64-linux-gnu
248+
# env OPENSSL_CONF is only work when user is root, not effect when user is nobody, maybe openssl bug, so we copy openssl binary and libraries to /usr/bin and /usr/lib/x86_64-linux-gnu
249249
cp /usr/local/openssl-fips/bin/openssl /usr/bin/openssl && \
250250
cp /usr/local/openssl-fips/lib/libssl.so.3 /usr/lib/x86_64-linux-gnu/libssl.so.3 && \
251251
cp /usr/local/openssl-fips/lib/libcrypto.so.3 /usr/lib/x86_64-linux-gnu/libcrypto.so.3 && \

0 commit comments

Comments
 (0)