Add dev convenience script for building containers#7852
Add dev convenience script for building containers#7852
Conversation
|
Hi I am not sure about adding this to the repo as we would also need to maintain it then. Wdyt @pabzm? |
|
I don't need this script, but also wouldn't mind it – but I'd also prefer to only include such scripts if multiple devs or contributors would like to use it. |
|
Out of curiousity, how do you all build the containers when doing local dev? Do you just type it out every time or use shell history? Maybe I am doing it wrong. |
|
The idea is loosely based on this: I use docker devcontainers heavily so I'm often spinning up a clean environment with no shell history. |
I don't do it often, usually work with the images built in the CI. Why do you build them locally? |
|
I build them locally for faster iteration. Do you make a commit and push to CI before doing any testing or are you editing directly inside of running containers? My flow was:
Sometimes I would make edits directly in the container then copy them back to my source code directory. |
A small script to make building the containers for local dev testing a little easier:
Feel free to reject this if there's a better way.