Skip to content

Make sure composer is ok running during 'docker build' - #17

Merged
timwoj merged 1 commit into
masterfrom
topic/timw/fix-composer-docker-detection
Sep 23, 2025
Merged

Make sure composer is ok running during 'docker build'#17
timwoj merged 1 commit into
masterfrom
topic/timw/fix-composer-docker-detection

Conversation

@timwoj

@timwoj timwoj commented Sep 23, 2025

Copy link
Copy Markdown
Member

This didn't pop up when doing builds locally or on packages-test, but when I tried to deploy onto the live site, docker build was refusing to build the PHP container image. This turned out to be because composer was failing to detect that it was running in a container, not creating the autoload correctly, which then cause cake to fail to load BootstrapUI during the build. Thankfully composer has a flag that forces it to allow you to run it as root. This PR sets that flag in the build environment so that it shouldn't happen again.

@timwoj
timwoj requested a review from ckreibich September 23, 2025 22:39
@timwoj
timwoj merged commit 802db04 into master Sep 23, 2025
1 check passed
@timwoj
timwoj deleted the topic/timw/fix-composer-docker-detection branch September 23, 2025 23:07
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.

2 participants