Public bootstrap for GEWA-codecrushers developer onboarding. Gets a fresh Ubuntu VM to the point where the (private) DevOps repo can be cloned and its setup.sh can run.
On a fresh Ubuntu VM:
curl -fsSL https://raw.githubusercontent.com/GEWA-codecrushers/devops-bootstrap/main/bootstrap.sh | bashWhat it does:
- Installs prerequisites (
git,openssh-client,curl) - Generates an ed25519 SSH key if you don't have one
- Shows the public key and waits for you to add it at https://github.com/settings/ssh/new
- Verifies
ssh -T git@github.com - Clones the DevOps repo to
~/repo/DevOps - Hands off to
scripts/setup/ubuntu/setup.shfor the full dev-env install
The DevOps repo is private, so a fresh VM can't curl setup.sh directly from it — cloning it requires an SSH key and GitHub auth that don't exist yet. This tiny public repo exists solely to carry the bootstrap over that first hop. See DevOps#60 for the design discussion.
Do not edit bootstrap.sh here directly. The canonical copy lives in the DevOps repo at scripts/setup/ubuntu/bootstrap.sh. After merging a change there, sync it here:
# From your DevOps checkout, with this repo cloned alongside:
cp scripts/setup/ubuntu/bootstrap.sh ../devops-bootstrap/bootstrap.sh
cd ../devops-bootstrap
git add bootstrap.sh
git commit -m "sync bootstrap.sh from DevOps@$(git -C ../DevOps rev-parse --short main)"
git push