ngx-voms docker image
4 unresolved threads
4 unresolved threads
This commit introduces the ngx-voms docker image, and modifies the CI configuration to build the image.
Edited by Andrea Ceccanti
Merge request reports
Activity
- docker/Dockerfile 0 → 100644
13 14 RUN \ 15 touch /home/build/local/openresty/nginx/logs/access.log && \ 16 touch /home/build/local/openresty/nginx/logs/error.log && \ 17 ln -sf /dev/stdout /home/build/local/openresty/nginx/logs/access.log && \ 18 ln -sf /dev/stderr /home/build/local/openresty/nginx/logs/error.log 19 20 COPY assets/nginx.conf /home/build/local/openresty/nginx/conf/nginx.conf 21 COPY assets/srm.conf /etc/nginx/conf.d/ 22 23 USER root 24 25 # Embed TINI since compose v3 syntax do not support the init 26 # option to run docker --init 27 # 28 ENV TINI_VERSION v0.18.0 This is a small init process for docker containers: https://github.com/krallin/tini so that it can handle signals in a proper way.
I've added this here since in compose v3 it's not possible to pass down the --init parameter to docker when it starts some container
- docker/README.md 0 → 100644
1 This folder contains docker files for the VOMS ngx_http_voms_module. changed this line in version 2 of the diff
- docker/assets/srm.conf 0 → 100644
27 proxy_set_header X-Forwarded-Proto https; 28 proxy_set_header Host $http_host; 29 30 # Simple tracing via request_id 31 proxy_set_header X-Request-Id $request_id; 32 33 # VOMS headers 34 proxy_set_header x-voms_fqans $voms_fqans; 35 proxy_set_header x-voms_user $voms_user; 36 proxy_set_header x-voms_user_ca $voms_user_ca; 37 proxy_set_header x-voms_vo $voms_vo; 38 proxy_set_header x-voms_not_before $voms_not_before; 39 proxy_set_header x-voms_not_after $voms_not_after; 40 proxy_set_header x-voms_generic_attributes $voms_generic_attributes; 41 proxy_set_header x-voms_serial $voms_serial; 42 } 1 # This file is a template, and might need editing before it works on your project. 2 # Official docker image. 3 1 image: storm2/ngx-voms-build:latest 4 2 5 3 stages: 6 4 - build 7 5 - test 6 - docker-build I would limit this stage only to some branches (e.g. master); it doesn't make much sense to build images for any push in any branch. One could also set the
when
yaml attribute for the jobs in this stage.
mentioned in commit 08c398a9
Please register or sign in to reply