-
Notifications
You must be signed in to change notification settings - Fork 502
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
docker image is broken (git-ask-pass - java.io.IOException: Cannot run program: error=8, Exec format error) #1374
Comments
I tried to run it myself from a docker container and I reproduce exactly the same issue. |
The Docker image was recently changed in #1370. My guess is that Git is now missing in the image. It was previously available without installing it explicitly and it now needs to be added explicitly to the image. |
Hi @fthomas thanks for having a look. I tried installing git but it does not change anything:
|
found the solution ! I've added a shebang on top on my pass.sh file This might be something you'd want to document. |
damn, I was too quick :( now I see it's missing sbt ... I'm not so sure moving to alpine was a great idea ... we are going to miss java, scala, sbt ... why not start from this image ? https://hub.docker.com/layers/hseeberger/scala-sbt/11.0.6_1.3.8_2.12.10/images/sha256-6516c340e90986b7a7ab0a75eee81ebff024ee7156e8b180aa50f95fe50a9495?context=explore It's about 500MB |
this dockerfile seems also to be a good start https://gist.github.com/gyndav/c8d65b59793566ee73ed2aa25aa10497 |
@fthomas I reverted my Gitlab CI jobs to use a previous version of scala-steward docker image (published 6 days ago). How would you like to proceed fixing the docker image ? Starting from an existing one like If you need my help with the construction of the image tell me, that's something we do regularly at my work... |
I would prefer controlling the image here so that it only contains the things that are required by Scala Steward. Any help with the Docker image is much appreciated! |
The problem with the alpine image is |
thanks a lot @gkocur and @fthomas ! I tested the latest docker image, and with the shebang fix (#1375) it is now running fine => https://gitlab.com/tyrcho/michel-steward/-/jobs/488827090 I think we can merge #1375 which will completely close this issue, as far as I'm concerned. |
Hi,
It seems that something changed in the last day in the docker image for scala-steward. Now all my jobs fail with this error :
java.io.IOException: Cannot run program "/builds/tyrcho/michel-steward/pass.sh": error=8, Exec format error
Complete job log : https://gitlab.com/tyrcho/michel-steward/-/jobs/484488462
Here is how I start the job:
https://gitlab.com/tyrcho/michel-steward/-/blob/master/steward.sh
I did not change anything in my repos since weeks.
I also noticed that the docker base image must have changed recently, it had
gpg
before and now I have to install it (this is OK).The text was updated successfully, but these errors were encountered: