-
Notifications
You must be signed in to change notification settings - Fork 203
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
Fixes when building with buildkit #259
Conversation
Given that it worked fine with 2.7.1, I think composer/composer@c3efff9#diff-3614f0bf6a66fbe9056036cae6165d9eaa2097f5472e976b5f26e32322bedc2fR302 + composer/composer@c3efff9#diff-96b25cef37257db25ed95d466925aaf0feee2ba65b3a5cb22c07ad9bb36b60b7R224 might be the "smoking gun" -- the prior code for that |
JK those are mostly the same, I dunno why it's broken on 2.7.2 and only in BuildKit (clearly related to the |
@@ -93,6 +93,11 @@ COPY --from=composer:{{ .composer.version }} /usr/bin/composer /usr/local/bin/ | |||
ENV DRUPAL_VERSION {{ .version }} | |||
{{ if has("composer") then ( -}} | |||
|
|||
# https://github.com/moby/buildkit/issues/4503 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we have a docker-library/drupal number, we should maybe inject it too 👀
# https://github.com/moby/buildkit/issues/4503 | |
# https://github.com/docker-library/drupal/pull/259 | |
# https://github.com/moby/buildkit/issues/4503 |
Changes: - docker-library/drupal@5f1aafc: Merge pull request docker-library/drupal#259 from infosiftr/buildkit - docker-library/drupal@2c93dfe: Fixes when building with buildkit - docker-library/drupal@d1c8fc7: Update GHA YAML with bashbrew example improvements (esp. concurrency:)
Changes: - docker-library/drupal@5f1aafc: Merge pull request docker-library/drupal#259 from infosiftr/buildkit - docker-library/drupal@2c93dfe: Fixes when building with buildkit - docker-library/drupal@d1c8fc7: Update GHA YAML with bashbrew example improvements (esp. concurrency:)
Current images fail to build since buildkit doesn't have
/.dockerenv
during build; see composer source for its behavior change based in "being in a container".Abbreviated failure log:
(In fact, there is no
web
directory at all, see the composer issue below)See also:
/.dockerenv
does not exist during build moby/buildkit#4503Setting the fix as an
ENV
so that anythingFROM drupal:10.*
can also benefit from it when building via buildkit.