1
0
mirror of https://github.com/erlang/docker-erlang-example.git synced 2025-07-30 22:43:04 +03:00

Fix minikube service dockerwatch --url fetch

This commit is contained in:
Lukas Larsson
2019-10-02 15:48:03 +02:00
parent 5caf7c4c9c
commit 89c99fb28c

View File

@ -33,8 +33,8 @@ docker build -t dockerwatch .
kubectl apply -f dockerwatch-deploy.yaml
# Wait for dockerwatch to be ready.
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'; until kubectl -n default get pods -lapp=dockerwatch -o jsonpath="$JSONPATH" 2>&1 | grep -q "Ready=True"; do sleep 10;echo "waiting for dockerwatch to be available"; kubectl get pods --all-namespaces; done
HTTP=$(minikube service dockerwatch --url | head -1)
HTTPS=$(minikube service dockerwatch --url --https | tail -1)
HTTP=$(minikube service dockerwatch --url | head -1 | sed 's/* //g')
HTTPS=$(minikube service dockerwatch --url --https | tail -1 | sed 's/* //g')
curl -v -H 'Content-Type: application/json' -X POST -d '' $HTTP/cnt
curl -v -H 'Content-Type: application/json' -X POST -d '{}' $HTTP/cnt
curl -v --cacert ssl/dockerwatch-ca.pem -H 'Accept: application/json' $HTTPS/