You've already forked docker-erlang-example
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:
@ -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/
|
||||
|
Reference in New Issue
Block a user