Skip to content

Commit

Permalink
Adapt debug script
Browse files Browse the repository at this point in the history
  • Loading branch information
Furisto committed Feb 28, 2022
1 parent 1c78a42 commit f3d2c4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/ws-daemon/debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# BEWARE: the properly built version of ws-daemon may behave differently.

docker ps &> /dev/null || (echo "You need a working Docker daemon. Maybe set DOCKER_HOST?"; exit 1)
gcloud auth list | grep typefox &>/dev/null || (echo "Login using 'gcloud auth login' for the docker push to work"; exit 1)
#gcloud auth list | grep thomas &>/dev/null || (echo "Login using 'gcloud auth login' for the docker push to work"; exit 1)

leeway build .:docker -Dversion=dev
devImage=eu.gcr.io/gitpod-dev/ws-daemon:dev
leeway build .:docker -Dversion=fo-limit-cg-2 -DimageRepoBase=eu.gcr.io/gitpod-core-dev/dev
devImage=eu.gcr.io/gitpod-core-dev/dev/ws-daemon:fo-limit-cg-2

kubectl patch daemonset ws-daemon --patch '{"spec": {"template": {"spec": {"containers": [{"name": "ws-daemon","image": "'$devImage'"}]}}}}'
kubectl get pods --no-headers -o=custom-columns=:metadata.name | grep ws-daemon | xargs kubectl delete pod

0 comments on commit f3d2c4a

Please sign in to comment.