Mind clarifying a bit here: By isolated , do you mean something like:
in a docker agent (jnlp pod/whatever) { check out your project run your build - the build launches containers } We use docker for isolation, so well usually have something like maven/gradle build our service/app, create an image, launch a container from that image, and then a test project (as part of the build) hits localhost:SomePort, where some port is randomly assigned externally but mapped to the containers 8080. Maybe it would help if you shared some details on how you build all this? We are able to build both on our machines and our Jenkins with the same setup. On Wed, Sep 4, 2019 at 22:38 Stephen Person <stephenjamesper...@gmail.com> wrote: > For the life of me I cannot come up with an efficient solution to running > tests against a docker container in an isolated environment with Jenkins. > Emphasis on 'isolated environment' so many builds/tests can run in parallel > without interference. I have tried the docker-in-docker approach but this > caused many complications with networking and other stuff which compromised > the functionality of my containers. > > Some things worth mentioning... > 1. I use docker-compose to build and start my container and all dependent > containers (like activemq, postgres, etc) > 2. Limited to using Host Network for all containers (cant use > ip-forwarding) > > As you can tell, I think about the container as the final artifact I'm > delivering to production, which is why it's important to run tests against > the container instead of inside it. Any and all thought is greatly > appreciated. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/405a49ff-6f85-4083-92ad-f8c18a34ab5f%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/405a49ff-6f85-4083-92ad-f8c18a34ab5f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9KtrdZLpjfWBbi3d%3D_O0t9kKyQOdZr9Hnz7AnFiWnEVHQ%40mail.gmail.com.