mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2024-12-26 14:05:24 +00:00
Install sigil from github
This commit is contained in:
parent
bb20210245
commit
b9842399a3
11
bin/compile
11
bin/compile
@ -9,6 +9,8 @@ NGINX_VERSION="1.8.1"
|
|||||||
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
|
NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz"
|
||||||
PCRE_VERSION="8.38"
|
PCRE_VERSION="8.38"
|
||||||
PCRE_TARBALL="pcre-${PCRE_VERSION}.tar.gz"
|
PCRE_TARBALL="pcre-${PCRE_VERSION}.tar.gz"
|
||||||
|
SIGIL_VERSION="0.4.0"
|
||||||
|
SIGIL_TARBALL="sigil_${SIGIL_VERSION}_Linux_x86_64.tgz"
|
||||||
ZLIB_VERSION="1.2.8"
|
ZLIB_VERSION="1.2.8"
|
||||||
ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz"
|
ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz"
|
||||||
|
|
||||||
@ -55,6 +57,15 @@ if [[ ! -d "${ZLIB_TARBALL%.tar.gz}" ]]; then
|
|||||||
tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}"
|
tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f "sigil" ]]; then
|
||||||
|
echo "-----> download and unzip sigil"
|
||||||
|
curl -sSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/${SIGIL_TARBALL}" -o "${SIGIL_TARBALL}"
|
||||||
|
tar xzf "${SIGIL_TARBALL}" && rm -rf "${SIGIL_TARBALL}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p $BUILD_DIR/sigil
|
||||||
|
cp -r sigil $BUILD_DIR/sigil/
|
||||||
|
|
||||||
cd "nginx-${NGINX_VERSION}"
|
cd "nginx-${NGINX_VERSION}"
|
||||||
if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then
|
if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then
|
||||||
echo "-----> compile static nginx"
|
echo "-----> compile static nginx"
|
||||||
|
Loading…
Reference in New Issue
Block a user