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

feat!: assume BuildKit is available #32

Closed
wants to merge 2 commits into from

Conversation

kdmccormick
Copy link
Owner

@kdmccormick kdmccormick commented Aug 18, 2023

TODO: Needs testing.

BuildKit replaces and improves the legacy Docker builder, which was deprecated back in Feb 2023. Assuming BuildKit allows us to simplify the Dockerfile and makes future build performance improvements easier. The Docker versions which Tutor recommends (v20+) all come with BuildKit, so

As follow-up work, we will need to remove is_buildkit_enabled from the official plugins templates.

Relevant discussion:
overhangio#868 (comment)

@kdmccormick kdmccormick changed the title [needs testing] feat!: assume BuildKit is available feat!: assume BuildKit is available Oct 5, 2023
BuildKit replaces and improves upon the legacy Docker builder, which was
deprecated back in Feb 2023. Assuming that BuildKit is enabled allows us
to seriously simplify the Dockerfile, and it also unlocks future build
performance improvements based on BuildKit-specific features such as:

* COPY --link
* Multiple build contexts
* More aggressive parallelization during the build process

The Docker versions which Tutor recommends (v20+) all come with
BuildKit, so this should be a seamless transition for Tutor users who
have been installing the recommended version.

We leave the ``is_buildkit_enabled`` template variable in place in order
to avoid breaking plugins, but we now just set it to ``True`` as a
constant. It will be removed some time after Quince, so plugins should
remove any uses of the variable from their Dockerfiles.

Relevant discussion:
overhangio#868 (comment)
@kdmccormick
Copy link
Owner Author

closed in favor of overhangio#913

@kdmccormick kdmccormick closed this Oct 5, 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.

1 participant