Silly Docker Trick of the Day

I’m working on a quick answer for somebody, and I’m doing a silly thing I actually think I oughta share. If you’re working on a problem that requires building OpenEMR containers to spec, all of our container definitions include a .gitignore file that will force git to ignore your own personal docker-compose.yml in the container build directory in the devops repo, and a matching .dockerignore to keep both of those out of any built containers.

So you can leave your messy broken developer config right there in the middle of the code you intend to fork or commit and nobody will pick it up. It’s not exactly essential but it’s genuinely nice to be able to right-click a greyed out compose yaml in VS Code and just have the environment built to spec.