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

Install ngx-httpg and voms rpm in a new container

parent e3aef219
No related branches found
No related tags found
No related merge requests found
DOCKER_IMAGE=storm2/vanilla-nginx-voms
DOCKER_IMAGE=storm2/nginx-httpg-voms
DOCKER_VERBOSE=y
DOCKER_GIT_TAG_ENABLED=y
......@@ -45,5 +45,9 @@ build-ngx-httpg-container:
- apk add git bash
- git clone https://baltig.infn.it/mw-devel/helper-scripts.git helper-scripts
- cp helper-scripts/scripts/* /usr/local/bin
- cp ${CI_PROJECT_DIR}/ngx-artifacts/* ${CI_PROJECT_DIR}/docker/
- cp ${CI_PROJECT_DIR}/voms-artifacts/* ${CI_PROJECT_DIR}/docker/
- cp ${CI_PROJECT_DIR}/ngx-artifacts/nginx-1.22.1-1.el7.ngx.x86_64.rpm ${CI_PROJECT_DIR}/docker/
- cp ${CI_PROJECT_DIR}/voms-artifacts/nginx-module-http-voms-1.22.1-1.el7.x86_64.rpm ${CI_PROJECT_DIR}/docker/
- 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}
- build-docker-image.sh && push-docker-image.sh
......@@ -16,9 +16,10 @@ RUN yum update -y && \
mkdir /pkgs && \
yum clean all && rm -rf /var/cache/yum
# install nginx with patch for HTTPG and voms module
COPY ngx-artifacts/*.rpm /pkgs/
COPY voms-artifacts/*.rpm /pkgs/
# install nginx with patch for HTTPG and voms dynamic module
COPY *.rpm /pkgs/
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
# import test
COPY t /home/nginx/t
......
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