Actually build and install nginx-dav-ext-module.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
FROM nginx
|
FROM nginx
|
||||||
|
|
||||||
ADD nginx-dav-ext-module /
|
ADD nginx-dav-ext-module /modules/nginx-dav-ext-module
|
||||||
RUN cd nginx-dav-ext-module && ls
|
ADD nginx-get-options /usr/local/bin
|
||||||
|
RUN echo 'deb-src [trusted=yes] https://nginx.org/packages/mainline/debian/ bookworm nginx' > /etc/apt/sources.list.d/nginx.list
|
||||||
|
RUN DEV_PACKAGES="build-essential dpkg-dev libpcre2-dev libssl-dev zlib1g-dev libxslt1-dev" && \
|
||||||
|
cd modules && apt update && apt install -y $DEV_PACKAGES && apt source nginx && cd nginx-${NGINX_VERSION} && \
|
||||||
|
./configure $(nginx-get-options) --add-dynamic-module=../nginx-dav-ext-module && make && cp objs/*.so /etc/nginx/modules && \
|
||||||
|
rm /etc/apt/sources.list.d/nginx.list && apt remove -y $DEV_PACKAGES && apt -y autoremove && cd / && rm -rf modules
|
||||||
|
|
||||||
ENV VOUCH_INTERNAL=vouch:9090
|
ENV VOUCH_INTERNAL=vouch:9090
|
||||||
ADD nginx.conf.template /
|
ADD nginx.conf.template /
|
||||||
|
|||||||
3
docker-entrypoint.d/06-enable-modules.sh
Executable file
3
docker-entrypoint.d/06-enable-modules.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
BASE_CONFIG_PATH=/etc/nginx/nginx.conf
|
||||||
|
echo "load_module /etc/nginx/modules/ngx_http_dav_ext_module.so;\n$(cat $BASE_CONFIG_PATH)" > $BASE_CONFIG_PATH
|
||||||
2
nginx-get-options
Executable file
2
nginx-get-options
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
nginx -V 2>&1 | grep 'configure' | cut -d ':' -f 2 | sed 's/--with-cc-opt/\n/g' | head -n 1
|
||||||
Reference in New Issue
Block a user