Skip to content

Add dev convenience script for building containers#7852

Open
asavageiv wants to merge 1 commit intomainfrom
alan/dev-scripts
Open

Add dev convenience script for building containers#7852
asavageiv wants to merge 1 commit intomainfrom
alan/dev-scripts

Conversation

@asavageiv
Copy link
Copy Markdown
Collaborator

A small script to make building the containers for local dev testing a little easier:

Usage: ./scripts/build-containers.sh [--variant develop|beta] <container1> [container2] [container3] ...
Example: ./scripts/build-containers.sh --variant beta apache mastercontainer

Feel free to reject this if there's a better way.

@szaimen
Copy link
Copy Markdown
Collaborator

szaimen commented Apr 7, 2026

Hi I am not sure about adding this to the repo as we would also need to maintain it then. Wdyt @pabzm?

@szaimen szaimen requested a review from pabzm April 7, 2026 11:36
@szaimen szaimen added 3. to review Waiting for reviews enhancement New feature or request labels Apr 7, 2026
@szaimen szaimen added this to the next milestone Apr 7, 2026
@pabzm
Copy link
Copy Markdown
Member

pabzm commented Apr 7, 2026

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.

@szaimen szaimen removed this from the next milestone Apr 7, 2026
@szaimen szaimen added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Apr 7, 2026
@asavageiv
Copy link
Copy Markdown
Collaborator Author

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.

@asavageiv
Copy link
Copy Markdown
Collaborator Author

The idea is loosely based on this:
https://github.blog/engineering/scripts-to-rule-them-all/

I use docker devcontainers heavily so I'm often spinning up a clean environment with no shell history.

@pabzm
Copy link
Copy Markdown
Member

pabzm commented Apr 8, 2026

how do you all build the containers when doing local dev?

I don't do it often, usually work with the images built in the CI.

Why do you build them locally?

@asavageiv
Copy link
Copy Markdown
Collaborator Author

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:

  1. Make edits to the code
  2. Build appropriate containers with appropriate tags (sometimes push the image to a remote machine, depending on where I'm doing the editing vs where the containers are running)
  3. Stop and start the containers with bypass_container_update/mastercontainer_update
  4. Do testing

Sometimes I would make edits directly in the container then copy them back to my source code directory.
I tried out bind-mounting some directories into containers, but permissions got tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants