From e0afbfb10a5cb5fc20944de6763a13ff936fd7c1 Mon Sep 17 00:00:00 2001 From: ElevenNotes Date: Wed, 3 May 2023 23:21:54 +0200 Subject: [PATCH] 1.24.0 with NTLM (test) --- amd64.dockerfile | 15 +++++++++------ rootfs/usr/local/bin/healthcheck.sh | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/amd64.dockerfile b/amd64.dockerfile index ba49ce7..5b440e4 100644 --- a/amd64.dockerfile +++ b/amd64.dockerfile @@ -1,7 +1,8 @@ # :: Build FROM alpine:latest as nginx - ENV NGINX_VERSION 1.24.0 - ENV ADD_MODULE_HEADERS_MORE_NGINX_VERSION 0.34 + ENV NGINX_VERSION=1.24.0 + ENV MODULE_HEADERS_MORE_NGINX_VERSION=0.34 + ENV MODULE_NTLM_VERSION=1.19.3 RUN set -ex; \ CONFIG="\ @@ -48,7 +49,8 @@ --with-compat \ --with-file-aio \ --with-http_v2_module \ - --add-module=/usr/lib/nginx/modules/headers-more-nginx-module-$ADD_MODULE_HEADERS_MORE_NGINX_VERSION \ + --add-module=/usr/lib/nginx/modules/headers-more-nginx-module-${MODULE_HEADERS_MORE_NGINX_VERSION} \ + --add-module=/usr/lib/nginx/modules/nginx-ntlm-module-${MODULE_NTLM_VERSION} \ "; \ apk add --no-cache --update \ curl \ @@ -70,9 +72,10 @@ findutils; \ mkdir -p /usr/lib/nginx/modules; \ mkdir -p /usr/src; \ - curl -SL https://github.com/openresty/headers-more-nginx-module/archive/v$ADD_MODULE_HEADERS_MORE_NGINX_VERSION.tar.gz | tar -zxC /usr/lib/nginx/modules; \ - curl -SL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz | tar -zxC /usr/src; \ - cd /usr/src/nginx-$NGINX_VERSION; \ + curl -SL https://github.com/openresty/headers-more-nginx-module/archive/v${MODULE_HEADERS_MORE_NGINX_VERSION}.tar.gz | tar -zxC /usr/lib/nginx/modules; \ + curl -SL https://github.com/gabihodoroaga/nginx-ntlm-module/archive/refs/tags/v${MODULE_NTLM_VERSION}.tar.gz | tar -zxC /usr/lib/nginx/modules; \ + curl -SL https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | tar -zxC /usr/src; \ + cd /usr/src/nginx-${NGINX_VERSION}; \ ./configure $CONFIG --with-debug; \ make -j $(nproc); \ mv objs/nginx objs/nginx-debug; \ diff --git a/rootfs/usr/local/bin/healthcheck.sh b/rootfs/usr/local/bin/healthcheck.sh index 296be27..ee42d92 100644 --- a/rootfs/usr/local/bin/healthcheck.sh +++ b/rootfs/usr/local/bin/healthcheck.sh @@ -1,2 +1,2 @@ #!/bin/sh - curl --max-time 5 -kILs --fail http://localhost:8080 \ No newline at end of file + curl --max-time 5 -kILs --fail http://localhost:8080 \ No newline at end of file