Commit 2787651a authored by Maiken's avatar Maiken

Adding docker run as privileged otherwise systemd does not work for centos7 (and debian9 maybe)

parent 9cf886c1
......@@ -252,7 +252,7 @@ deploy_staging_deb9:
stage: deploy_and_test
image: docker:stable
script:
- docker run -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443:443 --publish 2811:2811 --publish 9000-9100:9000-9100 --publish 9000-9100:9000-9100/udp --rm maikenp/arc-deploy-debian9
- docker run --privileged -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443:443 --publish 2811:2811 --publish 9000-9100:9000-9100 --publish 9000-9100:9000-9100/udp --rm maikenp/arc-deploy-debian9
- echo "*************>> Done - back from inner container"
- ls -lhrt /arc-logs
- cp -r /arc-logs $CI_PROJECT_DIR
......@@ -307,7 +307,7 @@ deploy_staging_centos7:
script:
- export DOCKER_API_VERSION=1.19
- docker pull maikenp/arc-deploy-centos7
- docker run -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443:443 --publish 2811:2811 --publish 9000-9100:9000-9100 --publish 9000-9100:9000-9100/udp --rm maikenp/arc-deploy-centos7
- docker run --privileged -v "/arc-testfiles:/arc-testfiles:rw" -v "/arc-testlogs:/arc-testlogs:rw" -v "/arc-logs:/arc-logs:rw" --publish 443:443 --publish 2811:2811 --publish 9000-9100:9000-9100 --publish 9000-9100:9000-9100/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