From 5c424516104958c373b1e8052e7f8c5b44713cbd Mon Sep 17 00:00:00 2001 From: az Date: Wed, 1 Dec 2021 18:37:47 +0100 Subject: [PATCH] expand find to root --- src/test/resources/local-integration-test/setup-docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/resources/local-integration-test/setup-docker.sh b/src/test/resources/local-integration-test/setup-docker.sh index c203682..62fd467 100755 --- a/src/test/resources/local-integration-test/setup-docker.sh +++ b/src/test/resources/local-integration-test/setup-docker.sh @@ -6,12 +6,12 @@ docker volume create k3s-server docker run -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 -export timeout=60; while [ ! -f /var/lib/docker/volumes/k3s-server/_data/server/kubeconfig.yaml ]; do if [ "$timeout" == 0 ]; then echo "ERROR: Timeout while waiting for file."; break; fi; sleep 1; ((timeout--)); done +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."; break; fi; sleep 1; ((timeout--)); done if [ "$timeout" == 0 ] then echo ------------------------------------------------------- - find . -name "kubeconfig.yaml"; + find / -name "kubeconfig.yaml"; echo ------------------------------------------------------- docker ps -a echo -------------------------------------------------------