From 6e6759b59dc9bc4d7534225ebd75171c6b712e35 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Thu, 9 Dec 2021 14:02:52 +0100 Subject: [PATCH] [skip ci] move run docker from ci to script --- .gitlab-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46c1de4..af568f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -167,12 +167,10 @@ nextcloud-integrationtest: - apk add bash #- docker build --pull -t "$CI_REGISTRY_IMAGE" . #- docker run --name "$name" -d --privileged --tmpfs /run --tmpfs /var/run --restart always -e K3S_TOKEN=12345678901234 -e K3S_KUBECONFIG_OUTPUT=./kubeconfig.yaml -e K3S_KUBECONFIG_MODE=666 -v k3s-server:/var/lib/rancher/k3s:z -v $(pwd):/output:z -p 6443:6443 -p 80:80 -p 443:443 rancher/k3s server --cluster-init --tls-san k3stesthost --tls-san cloudhost - - docker run --name inttst -v /var/run/docker.sock:/var/run/docker.sock -d --privileged --tmpfs /run --tmpfs /var/run --restart always -e K3S_TOKEN=12345678901234 -e K3S_KUBECONFIG_OUTPUT=./kubeconfig.yaml -e K3S_KUBECONFIG_MODE=666 -v k3s-server:/var/lib/rancher/k3s:z -v $(pwd):/output:z -p 6443:6443 -p 80:80 -p 443:443 rancher/k3s server --cluster-init --tls-san k3stesthost --tls-san cloudhost +# - docker run --name inttst -v /var/run/docker.sock:/var/run/docker.sock -d --privileged --tmpfs /run --tmpfs /var/run --restart always -e K3S_TOKEN=12345678901234 -e K3S_KUBECONFIG_OUTPUT=./kubeconfig.yaml -e K3S_KUBECONFIG_MODE=666 -v k3s-server:/var/lib/rancher/k3s:z -v $(pwd):/output:z -p 6443:6443 -p 80:80 -p 443:443 rancher/k3s server --cluster-init --tls-san k3stesthost --tls-san cloudhost #- docker run --privileged -dit --name c4k_test -v /var/run/docker.sock:/var/run/docker.sock $CI_REGISTRY_IMAGE - #- docker inspect -f '{{.State.Running}}' c4k_test +# - docker inspect -f '{{.State.Running}}' c4k_test script: - echo "---------- Integration test -------------" -# - ls -l -# - pwd -# - bash ./src/test/resources/local-integration-test/setup-docker.sh -# \ No newline at end of file + - pwd + - bash ./src/test/resources/local-integration-test/setup-docker.sh