r/devops • u/Samveg2798 • Jun 19 '26
Discussion What's the one thing that still breaks during dev environment setup, even when you have a script for it?
We've got a Docker Compose setup, a setup script, and a Confluence doc. New engineer joins and still loses half a day because the npm registry needs to point to our internal repo and nobody wrote that down anywhere.
Curious what the equivalent is on your team. The thing that's always "oh right, you also need to do X" that never makes it into the docs.
0
Upvotes
16
u/stopthatastronaut Jun 19 '26
> and nobody wrote that down anywhere
Write it down
8
u/ILikeToHaveCookies Jun 19 '26
Pretty stable nowadays, mise solved the gab for us
6
u/Common_Fudge9714 Jun 19 '26
We empower new comers to update the onboarding doc, if anything is missing or outdated please suggest a change and we will review. Every now and then you get suggestions that don’t need to go there but overall the suggestions make sense and keep the doc updated and meaningful.
1
u/Budget_Ad_5802 Jun 19 '26
The recurring class I see is identity/trust state: VPN or split-DNS, internal CA, SSO token, credential helper, or registry auth. The setup script installs the right versions, then fails halfway because it assumes the laptop can already prove who it is.
A preflight before any install/build helps more than another paragraph in Confluence: check DNS resolution, the cert chain, token scope/expiry, registry config, and access to one known private artifact. Each failure should print the exact remediation. That turns the hidden "oh right" step into a small, testable contract.
1
u/Raja-Karuppasamy Jun 19 '26
for us it’s always env vars. docker compose works fine locally but something always needs a different value in actual deployment and that gap never makes it into any doc. ended up writing a small script that validates required env vars exist before build even starts, catches it way earlier than someone hitting a cryptic runtime error.
1
u/marcusbell95 Jun 20 '26
ours is SSH key setup, every single time. the script installs everything, tools are there, repo is cloned - but nothing works because the new dev's key isn't added to the agent yet, their .gitconfig doesn't have the right user.email for our commit signing policy, or they're on a mac and ssh-agent didn't persist across reboot. script ran fine. environment still broken.
the underlying problem is that setup scripts can automate installing software but they can't automate personal identity state - your key, your config, your access grants. we eventually added a preflight check at the very start that runs
ssh -T git@github.comand exits early with a useful message if it fails. at least the failure is loud and immediate instead of mysterious when the first actual git pull breaks 15 steps in1
u/serverhorror I'm the bit flip you didn't expect! Jun 19 '26
Why don't You just commit the file then?
There's always something but the thing that'll fix it is not discussing in the internet but simply keep adding until you're in a "good spot".
There's no one thing but the lazyness of the team adding the settings in the right place.
1
u/SkullHero Jun 19 '26
Justfile with preflight checks built into the recipes and feedback and or steps to remediate and proceed with the setup
1
u/mattbillenstein Jun 19 '26
Our bootstrap script is something I test often and make sure works - it's also used in provisioning new hosts, so it's an integral piece of the software that's expected to always work.
1
u/wedgelordantilles Jun 19 '26
You should try the Aspire CLI tool that came out recently.
1
u/xonxoff Jun 19 '26
Fix your shit so this doesn’t happen, it’s not hard .
1
u/rlnrlnrln Jun 22 '26
Pipelines in general, because git{hu,la}b stability is a joke.
1
u/[deleted] Jun 19 '26
[removed] — view removed comment