Space Jobs Docker in Docker support
Hello,
I'm very excited about new Jobs functionality. As I use quite a lot testcontainers in integration testing is it possible to run docker-in-docker or there is some other workaround that will help launch testcontainers inside automation step.
Currently, I'm getting `Caused by: org.testcontainers.containers.ContainerLaunchException` exception, I had same issue with Jenkins and the workaround was linking system docker to container it's described in testcontainers docs https://www.testcontainers.org/supported_docker_environment/continuous_integration/dind_patterns/
Another thing is if I'm trying to pull docker image from local packages repository, do I need to authenticate inside automation or I need to do some extra configuration step to give automation role or permission for logging in automatically?
Please sign in to leave a comment.
Hi Pjotr, if you'd like to use compose, you can use our service containers for now. Later on, we're going to release native support of compose files.
if you'd like to use docker API programmatically, you'll need to wait for the VM's support; we're going to provide Docker in hosted VM workers.
Thanks for your response!
Yes I tried running services as well and it's a cool thing, but unfortunately, there are limitations if you want to do debugging for example etc ...
Hi Pjotr, could you please submit a support request providing more details about the limitations you encountered?
Hi Pavel, Hi Pjotr,
any pieces of information on how the problem has been solved?
I currently struggle quite a bit getting Testcontainers up and running with Space Automation?
There are two different things I would like to achieve:
(a) Gradle should have access to docker directly (as it's being required to build images programmatically with Gradle, instead of using the actual CI API).
(b) Running Testcontainers natively.