From 6871e48176626f3ff81bf6c8eed7e2cd5a7b3302 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Thu, 9 Dec 2021 13:35:23 +0100 Subject: [PATCH] [skip ci] fix dir for local gitlab-runner --- src/test/resources/local-integration-test/README.md | 2 +- src/test/resources/local-integration-test/setup-docker.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/resources/local-integration-test/README.md b/src/test/resources/local-integration-test/README.md index ea1e56d..ba39369 100644 --- a/src/test/resources/local-integration-test/README.md +++ b/src/test/resources/local-integration-test/README.md @@ -79,7 +79,7 @@ See https://stackoverflow.com/questions/32933174/use-gitlab-ci-to-run-tests-loca `docker run -d --name gitlab-runner --restart always -v $PWD:$PWD -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner:latest` -`docker exec -it -w $PWD gitlab-runner gitlab-runner exec docker nextcloud-integrationtest` +`docker exec -it -w $PWD gitlab-runner gitlab-runner exec docker nextcloud-integrationtest --docker-privileged --docker-volumes '/var/run/docker.sock:/var/run/docker.sock'` # TODO diff --git a/src/test/resources/local-integration-test/setup-docker.sh b/src/test/resources/local-integration-test/setup-docker.sh index 1d54a74..877adaf 100755 --- a/src/test/resources/local-integration-test/setup-docker.sh +++ b/src/test/resources/local-integration-test/setup-docker.sh @@ -75,5 +75,7 @@ kubectl get pods echo ======================================================== +pwd + #cd /c4k-nextcloud/src/test/resources/local-integration-test && ./setup-local-s3-on-k3d.sh -cd /builds/domaindrivenarchitecture/c4k-nextcloud/src/test/resources/local-integration-test && ./setup-local-s3-on-k3d.sh \ No newline at end of file +cd ./c4k-nextcloud/src/test/resources/local-integration-test && ./setup-local-s3-on-k3d.sh \ No newline at end of file