-
Notifications
You must be signed in to change notification settings - Fork 428
No error returned when docker Image fails to build #5018
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
Comments
Hi @cmaerz ! Just to re confirm , The docker build is failing in your local Cli, But in your Gitlab pipeline docker build is successful. Did I understand this correctly? The screenshot that you pasted is it from the Gitlab logs? |
Hey!
Nope. The build fails everywhere (It should fail, cause there is an error
in the Image), but the copilot svc depoly command doesn‘t Exit with an
Error, so gitlab CI doesn‘t recognize it failed and assumes the deployment
was ok. :)
Adithya Kolla ***@***.***> schrieb am Mi. 21. Juni 2023 um
18:20:
Hi @cmaerz <https://github.com/cmaerz> !
Just to re confirm , The docker build is failing in your Cli, But in your
Gitlab pipeline docker build is successful. Did I understand this correctly?
The screenshot that you pasted is it from the Gitlab logs?
—
Reply to this email directly, view it on GitHub
<#5018 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALJEERFSGDU4O5BITDUWFLXMMNORANCNFSM6AAAAAAZOVBB7M>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
…______________________
*IT Solutions März*
Christian März
*Geschäftsführer*
Waldstraße 31
93326 Abensberg
Tel.: +49 (0) 160 96 65 12 70
Steuernummer: 126/247/10485
Ust.ID.: DE270029289
Hinweis: Dies ist eine vertrauliche Nachricht und nur für den Adressaten
bestimmt. Es ist nicht erlaubt, diese Nachricht zu kopieren oder Dritten
zugänglich zu machen. Sollten Sie irrtümlich diese Nachricht erhalten
haben, bitte ich um Ihre Mitteilung per E-Mail oder der oben angegebenen
Telefonnummer.
|
Hi @cmaerz ! |
I use 1.28 |
Hey @cmaerz ! ![]() |
what is the version your docker? Is buildx installed? |
Hello @kzkn Just a couple of questions and also curious to know
|
I use CodeBuild for building images. For buildx I've added the below code to buildspec.yml
I got the problem when running
I got the below log when I run
|
@cmaerz Hey there!
I think your GitLab CI is ignoring the exit code of I ran I saw you had Your |
@kzkn Hopefully aws/aws-codebuild-docker-images#642 gets merged soon so that BuildKit is integrated! Do you have workarounds right now? Anything I can help with 👀 ? |
@Lou1415926 However, I think that what I have reported is only one example of this issue: No error returned when docker Image fails to build . I think
If this had been output, it would have taken less time to investigate the problem. |
probably the same issue: #5124 |
I've been using aws/codebuild/amazonlinux2-aarch64-standard:3.0 as my build image and encountered the same issue. version: 0.2
phases:
install:
runtime-versions:
docker: 23
ruby: 3.2
nodejs: 18
commands:
- echo "cd into $CODEBUILD_SRC_DIR"
- cd $CODEBUILD_SRC_DIR
# Download the copilot linux binary.
- wget -q https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-arm64-v1.30.1 -O copilot-linux
- chmod +x ./copilot-linux
+ # Download Docker Buildx plugin.
+ - wget -q https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-arm64 -O docker-buildx
+ - chmod +x ./docker-buildx
+ - mkdir -p ~/.docker/cli-plugins
+ - mv docker-buildx ~/.docker/cli-plugins/docker-buildx I hope this helps someone. |
Hey!
Currently there application doesn't stop with a error, when the Docker image fails to build. That doesn't really matter in local CLI, but my Gitlab Pipeline doesn't recognize that sth failed and just assumes that everything is ok.
The text was updated successfully, but these errors were encountered: