testcontainers-node: GenericContainer broken after upgrade from 10.9 to 10.10
Hi,
I’ve facing an issue after upgrade testcontainer node from 10.9 to 10.10 which any other changes
Expected Behaviour
Same as 10.9.0, it should work
Actual Behaviour
Doesn’t work, tested with different framework (Backstage and one JS vite application). It’s the same
Testcontainer Logs
[DEBUG] Testing container runtime strategy "TestcontainersHostStrategy"...
[DEBUG] Found custom configuration: dockerHost: "tcp://localhost:2475"
[DEBUG] Testing container runtime strategy "ConfigurationStrategy"...
[DEBUG] Container runtime strategy "ConfigurationStrategy" does not work
[DEBUG] Testing container runtime strategy "UnixSocketStrategy"...
[DEBUG] Testing container runtime strategy "RootlessUnixSocketStrategy"...
[DEBUG] Testing container runtime strategy "NpipeSocketStrategy"...
This line is different from
[DEBUG] Container runtime strategy "ConfigurationStrategy" does not work
On 10.9 is
[DEBUG] Container runtime strategy "ConfigurationStrategy" works
Steps to Reproduce
On code
wireMockContainer = await new GenericContainer("wiremock/wiremock:3.5.4-1")
.withExposedPorts(8080)
.withCommand(["--verbose"])
.withWaitStrategy(Wait.forLogMessage(/port:.*8080/))
.withStartupTimeout(120000)
.start();
Environment Information
- Running node 20 LTS
- I’m running testcontainer with kubedock and following env set
DOCKER_HOST = 'tcp://localhost:2475'
TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX = '*********-docker-io.***************.ch/'
I can provide more details if needed
Thanks
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19
Thanks to you for raising such a detailed issue and for helping so much in debugging, always a pleasure! 🙂
Just done
All work as expected
Thank you so much for the help!
Will leave issue open until released and fix confirmed. ETA for release within next few hours.
Thanks @jonesbusy, turns out this is your issue: https://github.com/testcontainers/testcontainers-node/commit/ab4667329883d03f801fb7ecb7b3e86eabb1e10c#diff-07adb1d2976c5e124c3804996a054095cdc770c58ec8a1b7af5c24f37da21ee7R109, added as part of the Ollama module.
Will be fixed in #795.
Thanks for your help in debugging this one, I’m happy with the error logs we’ve achieved around the container runtime
@cristianrgreco I will try to create a reproduction repository, because the repository that I am having the issue is private
Hi @zotijs I’m not using gitlab. I have Jenkins and K8S agent and use https://github.com/joyrex2001/kubedock to proxy the docker socket call to Kubernetes and create testcontainers
The only vars I’m using on my
JenkinsfileisI have the same problem