Skip to content

Instantly share code, notes, and snippets.

@friegger
Created June 14, 2017 12:50
Show Gist options
  • Save friegger/29e3e336a754376be0e904525f4b9df7 to your computer and use it in GitHub Desktop.
Save friegger/29e3e336a754376be0e904525f4b9df7 to your computer and use it in GitHub Desktop.
BOSH Integration tests multiplatform nginx build
set -e -x
echo "Extracting pcre..."
tar xzvf nginx/pcre-8.40.tar.gz
echo "Extracting headers-more module..."
tar xzvf nginx/headers-more-nginx-module-0.30.tar.gz
echo "Extracting nginx_upload module..."
tar xzvf nginx/nginx-upload-module-2.2.tar.gz
echo "Extracting nginx..."
tar xzvf nginx/nginx-1.11.1.tar.gz
echo "Building nginx..."
pushd nginx-1.11.1
if uname -s | grep -q 'Darwin'; then
./configure \
--with-debug \
--prefix=${BOSH_INSTALL_TARGET} \
--with-pcre=../pcre-8.40 \
--add-module=../headers-more-nginx-module-0.30 \
--with-http_ssl_module \
--with-http_dav_module \
--add-module=../nginx-upload-module-2.2 \
--with-ld-opt="-L/usr/local/opt/openssl/lib" \
--with-cc-opt="-I/usr/local/opt/openssl/include"
else
./configure \
--with-debug \
--prefix=${BOSH_INSTALL_TARGET} \
--with-pcre=../pcre-8.40 \
--add-module=../headers-more-nginx-module-0.30 \
--with-http_ssl_module \
--with-http_dav_module \
--add-module=../nginx-upload-module-2.2
fi
make
make install
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment