Skip to content

Instantly share code, notes, and snippets.

@rfay
Last active November 18, 2023 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rfay/60a1e8d9112d178f6a0e86df027926aa to your computer and use it in GitHub Desktop.
Save rfay/60a1e8d9112d178f6a0e86df027926aa to your computer and use it in GitHub Desktop.
breakit.sh - to try to break colima, requires `brew install ddev/ddev/ddev`
#!/bin/bash
set -eu -o pipefail
#set -x
if ! command -v ddev; then brew install ddev/ddev/ddev; hash -r; fi
export PROJDIR=~/tmp/junk
ddev poweroff
docker ps -a
mkdir -p ${PROJDIR} && cd ${PROJDIR} && ddev config --auto
i=0
while true; do i=$((i+1)); printf "Try $i at $(date)\n"; ddev start; printf "running processes\n"; echo "ps -ef" | colima ssh; ddev stop; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment