From 253b961a52a6aa96aa91e46a735be5104e204b81 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Wed, 8 Dec 2021 11:47:36 +0100 Subject: [PATCH] chg path --- src/test/resources/local-integration-test/setup-docker.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/resources/local-integration-test/setup-docker.sh b/src/test/resources/local-integration-test/setup-docker.sh index 397438c..3c5763a 100755 --- a/src/test/resources/local-integration-test/setup-docker.sh +++ b/src/test/resources/local-integration-test/setup-docker.sh @@ -11,6 +11,10 @@ docker run --name $name -d --privileged --tmpfs /run --tmpfs /var/run --restart docker ps #export timeout=30; while [ ! -f /var/lib/docker/volumes/k3s-server/_data/server/kubeconfig.yaml ]; do if [ "$timeout" == 0 ]; then echo "ERROR: Timeout while waiting for file."; docker ps -a; ls /var/lib/docker/volumes/k3s-server/_data/; break; fi; sleep 1; ((timeout--)); done +export timeout=30; while ! docker exec $name sh -c "test -f /var/lib/rancher/k3s/server/kubeconfig.yaml"; do if [ "$timeout" == 0 ]; then echo "ERROR: Timeout while waiting for file."; docker ps -a; ls /var/lib/docker/volumes/k3s-server/_data/; break; fi; sleep 1; ((timeout--)); done + + + sleep 60 mkdir -p $HOME/.kube/ @@ -41,4 +45,5 @@ curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/l chmod +x ./kubectl mv ./kubectl /usr/local/bin/kubectl -cd /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 +cd /builds/domaindrivenarchitecture/c4k-nextcloud/src/test/resources/local-integration-test && ./setup-local-s3-on-k3d.sh \ No newline at end of file