From c75a1e458756e7fbcde103f3f4b6fc8bc4e3a13d Mon Sep 17 00:00:00 2001 From: ansgarz Date: Wed, 8 Dec 2021 19:06:23 +0100 Subject: [PATCH] [skip ci] add doc for local gitlab runner --- src/test/resources/local-integration-test/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/resources/local-integration-test/README.md b/src/test/resources/local-integration-test/README.md index ae3f8b9..ea1e56d 100644 --- a/src/test/resources/local-integration-test/README.md +++ b/src/test/resources/local-integration-test/README.md @@ -67,12 +67,19 @@ k3d is a k3s system which is running inside of a container. To install k3d run ` * Start a k3d cluster to deploy s3, nextcloud and test backup and restore on it: `./setup-local-s3-on-k3d.sh` -Some of the steps may take some min to be effective, but eventually nextcloud should be available at: https://cloudhost +Some steps may take a couple of minutes to be effective, but eventually nextcloud should be available at: https://cloudhost #### Remove k3d cluster `k3d cluster delete nextcloud` +## Test in local gitlab runner + +See https://stackoverflow.com/questions/32933174/use-gitlab-ci-to-run-tests-locally + +`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` # TODO