base: Fix building of OpenSSL. See #73

This commit fixes the following error reported when building the base
image.

sh: 1: [: =: unexpected operator
sh: 1: [: =: unexpected operator

It turns out that (1) DEFAULT_DOCKCROSS_IMAGE is not set when building the
base image and (2) latest openssl will not be available in linux-x64 and
linux-x86 images.
This commit is contained in:
Jean-Christophe Fillion-Robin 2016-11-19 14:32:20 -05:00
parent 0bc5941bc8
commit 30a73bcd24
No known key found for this signature in database
GPG Key ID: 15C1A2812F958BD3

View File

@ -10,8 +10,8 @@ WORKDIR /usr/src
RUN wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz && \ RUN wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz && \
tar -xzvf openssl-1.0.2j.tar.gz && \ tar -xzvf openssl-1.0.2j.tar.gz && \
cd openssl-1.0.2j && \ cd openssl-1.0.2j && \
WRAPPER=$( [ $DEFAULT_DOCKCROSS_IMAGE = "dockcross/manylinux-x86" ] && echo "linux32" || echo "") && \ WRAPPER=$( [ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ] && echo "linux32" || echo "") && \
CONFIG_FLAG=$( [ $DEFAULT_DOCKCROSS_IMAGE = "dockcross/manylinux-x86" ] && echo "-m32" || echo "") && \ CONFIG_FLAG=$( [ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ] && echo "-m32" || echo "") && \
${WRAPPER} ./config --prefix=/usr $CONFIG_FLAG && \ ${WRAPPER} ./config --prefix=/usr $CONFIG_FLAG && \
${WRAPPER} make && \ ${WRAPPER} make && \
( \ ( \