Skip to content

Add docker compose build --check #12749

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

Open
johnthagen opened this issue Apr 16, 2025 · 0 comments · May be fixed by #12765
Open

Add docker compose build --check #12749

johnthagen opened this issue Apr 16, 2025 · 0 comments · May be fixed by #12765
Assignees

Comments

@johnthagen
Copy link
Contributor

johnthagen commented Apr 16, 2025

Description

I noticed when running docker compose build on a project that some warnings were printed in the output

 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 4) 

I found that the base docker command supports

docker build --check .

And this will flag and fail if there are any warnings present. This would be very valuable to have in CI, and something that Compose could make convenient for Compose projects:

docker compose build --check

This would output the same as docker build --check . for each service that is built and return a failing status code if any do not pass the checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants