Skip to content
Snippets Groups Projects
Commit 89102929 authored by lcappelli's avatar lcappelli
Browse files

Build ngx+voms without httpg

parent 6e35bde2
No related branches found
No related tags found
No related merge requests found
stages:
- build-rpm
- build-voms
- docker-build-ngx
- docker-build-ngx-httpg-voms
- docker-build-ngx-voms
build-all-rpm:
stage: build-rpm
......@@ -24,7 +24,27 @@ build-all-rpm:
- artifacts/
build-ngx-httpg-container:
stage: docker-build-ngx
stage: docker-build-ngx-httpg-voms
image: docker:latest
services:
- name: docker:dind
command: ["--tls=false"]
dependencies:
- build-all-rpm
script:
- apk add git bash
- git clone https://baltig.infn.it/mw-devel/helper-scripts.git helper-scripts
- cp helper-scripts/scripts/* /usr/local/bin
- mkdir ${CI_PROJECT_DIR}/docker/artifacts/
- cp ${CI_PROJECT_DIR}/artifacts/*.x86_64.rpm ${CI_PROJECT_DIR}/docker/artifacts/
- rm ${CI_PROJECT_DIR}/docker/*-debuginfo*.rpm
- docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- export DOCKER_REGISTRY_HOST=${CI_REGISTRY}
- export DOCKER_REGISTRY_NAMESPACE=${CI_PROJECT_PATH}
- cd docker && build-docker-image.sh && push-docker-image.sh
build-ngx-container:
stage: docker-build-ngx-voms
image: docker:latest
services:
- name: docker:dind
......
DOCKER_IMAGE=storm2/nginx-httpg-voms
DOCKER_IMAGE=storm2/nginx-voms
DOCKER_VERBOSE=y
DOCKER_GIT_TAG_ENABLED=y
......@@ -20,12 +20,12 @@ COPY artifacts/*.rpm /pkgs/
COPY nginx.repo /etc/yum.repos.d/nginx.repo
# install nginx httpg + voms and njs dynamic modules
RUN rpm -ivh /pkgs/nginx-1.22.1-1.el7.ngx.x86_64.rpm && \
rpm -ivh /pkgs/nginx-module-http-voms-1.22.1-1.el7.x86_64.rpm && \
yum install -y nginx-module-njs
# RUN rpm -ivh /pkgs/nginx-1.22.1-1.el7.ngx.x86_64.rpm && \
# rpm -ivh /pkgs/nginx-module-http-voms-1.22.1-1.el7.x86_64.rpm && \
# yum install -y nginx-module-njs
# install nginx + voms and njs dynamic modules
# RUN yum -y install nginx nginx-module-njs && \
# rpm -ivh /pkgs/nginx-module-http-voms-1.22.1-1.el7.x86_64.rpm && \
RUN yum -y install nginx nginx-module-njs && \
rpm -ivh /pkgs/nginx-module-http-voms-1.22.1-1.el7.x86_64.rpm
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment