Commit 8a926666 authored by Maiken's avatar Maiken

Mount rpmbuild folder to make sure dependency is automatically passed onto the...

Mount rpmbuild folder to make sure dependency is automatically passed onto the docker socket container instead of trying just to get latest artifacts which may not always be available.
parent 5889d25c
......@@ -255,8 +255,8 @@ deploy_staging_deb9:
- ls -lhrt /arc-testfiles
- ls -lhrt /arc-logs
- name_container=deb9_`date +%Y%m%dT%H%M`
- docker image rm maikenp/arc-deploy-debian9 || true
- docker run --name=$name_container --privileged -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443 --publish 2811 --publish 9000-9002 --publish 9000-9002/udp --rm maikenp/arc-deploy-debian9
- docker image rm maikenp/arc-deploy-debian9 || true
- docker run --name=$name_container -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443 --publish 2811 --publish 9000-9002 --publish 9000-9002/udp --rm maikenp/arc-deploy-debian9
- echo "*************>> Done - back from inner container"
- ls -lhrt /arc-logs
- cp -r /arc-logs $CI_PROJECT_DIR
......@@ -282,6 +282,7 @@ deploy_staging_deb9:
- tags@nordugrid/arc
allow_failure: true
deploy_staging_el6:
stage: deploy_and_test
image: docker:stable
......@@ -290,7 +291,7 @@ deploy_staging_el6:
- ls -lhrt /arc-logs
- name_container=el6_`date +%Y%m%dT%H%M`
- docker image rm maikenp/arc-deploy-centos6 || true
- docker run --name=$name_container --privileged -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443 --publish 2811 --publish 9000-9002 --publish 9000-9002/udp --rm maikenp/arc-deploy-centos6
- docker run --name=$name_container --privileged -v "$CI_PROJECT_DIR/rpmbuild:/rpmbuild:rw" -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443 --publish 2811 --publish 9000-9002 --publish 9000-9002/udp --rm maikenp/arc-deploy-centos6
- echo "*************>> Done - back from inner container"
- ls -lhrt /arc-logs
- cp -r /arc-logs $CI_PROJECT_DIR
......@@ -324,7 +325,7 @@ deploy_staging_centos7:
- export DOCKER_API_VERSION=1.19
- name_container=el7_`date +%Y%m%dT%H%M`
- docker image rm maikenp/arc-deploy-centos7 || true
- docker run --name=$name_container --privileged -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443 --publish 2811 --publish 9000-9002 --publish 9000-9002/udp --rm maikenp/arc-deploy-centos7
- docker run --name=$name_container --privileged -v "$CI_PROJECT_DIR/rpmbuild:/rpmbuild:rw" -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443 --publish 2811 --publish 9000-9002 --publish 9000-9002/udp --rm maikenp/arc-deploy-centos7
- echo "*************>> Done - back from inner container"
- ls -lhrt /arc-logs
- cp -r /arc-logs $CI_PROJECT_DIR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment