This commit is contained in:
2021-05-13 10:13:59 +00:00
parent d7a8a2e53c
commit 9ab91e4fd9
7 changed files with 261 additions and 1 deletions

10
archive/build Executable file
View File

@@ -0,0 +1,10 @@
#wget https://github.com/kvspb/nginx-auth-ldap/archive/refs/heads/master.zip && unzip -o master.zip && rm master.zip
wget https://github.com/openresty/docker-openresty/archive/refs/heads/master.zip && unzip -o master.zip && rm master.zip
docker build -t openrestyfet -f docker-openresty-master/alpine/Dockerfile \
--build-arg "RESTY_CONFIG_OPTIONS_MORE=--add-module=/tmp/nginx-auth-ldap-master" \
--build-arg "RESTY_EVAL_PRE_CONFIGURE=cd /tmp && wget https://github.com/kvspb/nginx-auth-ldap/archive/refs/heads/master.zip && unzip -o master.zip && rm master.zip && apk add --no-cache --virtual openldap-dev"
--build-arg _RESTY_CONFIG_DEPS="--with-pcre \
--with-cc-opt='-DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl/include' \
--with-ld-opt='-L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl/lib -Wl,-rpath,/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl/lib'" \
.