-
Notifications
You must be signed in to change notification settings - Fork 103
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
[BUG] stubb4j testcontainer failing with "exec /bin/sh: exec format error" #511
Comments
Thanks for opening your first issue. Pull requests are always welcome too! :) |
I tried several images tags. This one seems to start successfully: |
@oemergenc hi. In your Ci, with regards to The |
Hi @azagniotov , I am using |
I understand what you are saying, I just wanted to confirm. I clearly remember that jdk16 image was the last image NOT built by Docker BuildX plugin … -Also, also what comes to mind that image does not have some of the more recent code updates… Thus, the “latest” tag is misleading Maybe there is something related to BuildX that does not play well with test containers or something related to the more recent code changes… . I do have to apologize here, I am pretty busy these days with the day to day work and I don’t have time to deep dive into this at this point… I will try to go through the stack trace more closely, but if this is not related to the recent code changes, maybe I can try baking a recent image using one of the JDKs without leveraging BuildX and build an image just for one arch to test things out …On Feb 29, 2024, at 11:57, Oemer Genc ***@***.***> wrote:
Hi @azagniotov ,
I am using ubuntu-latest as my vm so I would assume that my CI uses linux/amd64 while my local Mac M1 uses linux/arm64. However, I am not specifying this explicitly, as far as a I know Docker should automatically understand which image architecture to pull with respect to the environment Docker is running on.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
But then, you say that locally things work fine for you. So I don’t know if baking a new image makes sense. Probably has to do with the Ci environment and test containers. OR maybe how the images are built using BuildX. Not sure On Feb 29, 2024, at 13:07, Alex Z. ***@***.***> wrote:I understand what you are saying, I just wanted to confirm. I clearly remember that jdk16 image was the last image NOT built by Docker BuildX plugin … -Also, also what comes to mind that image does not have some of the more recent code updates… Thus, the “latest” tag is misleading Maybe there is something related to BuildX that does not play well with test containers or something related to the more recent code changes… . I do have to apologize here, I am pretty busy these days with the day to day work and I don’t have time to deep dive into this at this point… I will try to go through the stack trace more closely, but if this is not related to the recent code changes, maybe I can try baking a recent image using one of the JDKs without leveraging BuildX and build an image just for one arch to test things out …On Feb 29, 2024, at 11:57, Oemer Genc ***@***.***> wrote:
Hi @azagniotov ,
I am using ubuntu-latest as my vm so I would assume that my CI uses linux/amd64 while my local Mac M1 uses linux/arm64. However, I am not specifying this explicitly, as far as a I know Docker should automatically understand which image architecture to pull with respect to the environment Docker is running on.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yeah, the behavior is really strange. If you find time to look into it, that would be nice. For now we are using the jre16 version as this seems to work. I also want to say that we are also using docker buildx to build images and have good experience with it. Our own images are running fine on the CI server and also the local machines, so I would guess the problem might be in the build or the configuration of stubby4j and not in docker buildx. |
Describe the bug
Hi,
I am trying to use this docker image azagniotov/stubby4j:latest-jre21 with testcontainers to write integration tests. On my development machine (MAC M1) everything runs fine.
When I try to execute my test in a Github runner, the stubb4j based testcontainer fails to start.
See the log output of this run here:
https://github.com/oemergenc/spring-cloud-gateway-upgrade/actions/runs/8092179967/job/22112459714#step:4:1336
Please provide some basic information about you environment
YAML config
Expected behavior
The stubb4j testcontainer should start succesfully.
Additional context
The text was updated successfully, but these errors were encountered: