Open oluwatimilehin opened 1 year ago
Hi @oluwatimilehin not sure that issue is related to this particullar project. but have you tried different base docker image which allows docker in docker?
@romchellis Hey, thanks for getting back to me. I think it could be good if there was an option to generate the sources without running test containers, but maybe that's not realistic. What do you think?
I've read that docker in docker is not the best idea, but I'll look into that further.
Have you checked the Testcontainers for java docs? See https://java.testcontainers.org/supported_docker_environment/continuous_integration/dind_patterns/#docker-only-example
I have a Dockerfile that does a multistage build where the build stage looks like:
This fails when it runs
mvn clean package
with the error:I understand that we need a valid docker daemon and there's none in the build stage, but I'm wondering if there's a workaround or maven flag I can specify to generate the sources without starting the container in the build stage. Any pointers on this, please?