This commit is contained in:
ansgarz 2021-12-08 11:56:22 +01:00
parent 89ed38f335
commit 39e18f9627

View file

@ -11,7 +11,7 @@ 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
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."; break; fi; sleep 1; ((timeout--)); done
@ -35,6 +35,11 @@ then
fi
echo "127.0.0.1 kubernetes" >> /etc/hosts
cat /etc/hosts
echo ----------------------------------
cat $HOME/.kube/config
#cp /var/lib/docker/volumes/k3s-server/_data/server/kubeconfig.yaml $HOME/.kube/config
apk add wget curl bash sudo openjdk8
@ -45,7 +50,6 @@ curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/l
chmod +x ./kubectl
mv ./kubectl /usr/local/bin/kubectl
echo "127.0.0.1 kubernetes" >> /etc/hosts
#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