Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build_image.py: Auto-enable Docker buildkit, and make git optional #392

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

EdwardLarson
Copy link
Collaborator

@EdwardLarson EdwardLarson commented Nov 10, 2023

One sentence summary of this PR (This should go in the CHANGELOG!)
Allow Docker build to continue even if there is a problem getting local git history, and default to forcing Docker buildkit to be enabled.

Link to Related Issue(s)
Currently if there is a problem with local git repo, build_image.py will fail and be unable to build. As this isn't strictly necessary to build the image, just to give it a nice tag, the build should be able to continue without it.

Some features in the build require Docker buildkit to be enabled, and we say as much in the docs to build the image. However, this is a point of failure (for some reason I could not get the buildkit to be enabled in my machine) and a "gotcha" that can be removed entirely by just setting the Docker buildkit enabled in the subprocess we spin up to do the Docker build. In case there is a desire to specifically NOT use the buildkit, an option is added to not alter the subprocess environment at all (buildkit may or may not be enabled depending on user's environment).

Please describe the changes in your request.

Sufficiently summarized above.

Anyone you think should look at this, specifically?
@whyitfor

@EdwardLarson EdwardLarson changed the title Feature/auto buildkit git optional build_image.py: Auto-enable Docker buildkit, and make git optional Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants