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

issue with build order #13

Closed
ehrenb opened this issue Dec 17, 2022 · 3 comments
Closed

issue with build order #13

ehrenb opened this issue Dec 17, 2022 · 3 comments

Comments

@ehrenb
Copy link
Owner

ehrenb commented Dec 17, 2022

'depends_on' does not guarantee build order in compose anymore. according to docker/compose#6332 (comment) , when parallel builds were introduced it stopped being dependable. also see docker/compose#8538

@ehrenb
Copy link
Owner Author

ehrenb commented Dec 17, 2022

due to this inconsistency, may want to switch to the following build command:

docker compose build base-alpine base-ubuntu && docker compose build

@ehrenb ehrenb closed this as completed Dec 17, 2022
@ehrenb
Copy link
Owner Author

ehrenb commented Dec 21, 2022

This is likely due to an issue with buildkit, which was introduced in the new docker compose.

docker/compose#9939
docker/compose#8649
docker/compose#8804

@ehrenb
Copy link
Owner Author

ehrenb commented Dec 21, 2022

Can try DOCKER_BUILDKIT=0 to temporarily disable this.

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

No branches or pull requests

1 participant