Last active
November 18, 2023 00:49
-
-
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`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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