The "sidecar container" pattern is a popular one for setting up dependent containers for running tests/builds. 

       

      It would be nice to have support for this pattern in declarative to avoid the need to drop to script. 

       

      To investigate...

       

      In scope: 

      testing: 

      • Should be able to be fully automated using ci.jenkins.io 
      • check sidecar containers are shut down in all scenarios possible

          [JENKINS-46336] Sidecar docker containers for declarative

          Michael Neale created issue -
          Michael Neale made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Michael Neale made changes -
          Description Original: The "sidecar container" pattern is a popular one for setting up dependent containers for running tests/builds. 

           

          It would be nice to have support for this pattern in declarative to avoid the need to drop to script. 

           

          To investigate...
          New: The "sidecar container" pattern is a popular one for setting up dependent containers for running tests/builds. 

           

          It would be nice to have support for this pattern in declarative to avoid the need to drop to script. 

           

          To investigate...

           

          In scope: 

          Be able to specify sidecar containers, their network/port sharing with main build, in agent section

          Cleanup of containers

           

          testing: 

          Should be able to be fully automated using ci.jenkins.io 

          check sidecar containers are shut down in all scenarios possible

          Michael Neale added a comment -

          just bumped priority mostly as it is not a small amount of effort, some planning needed 

          Michael Neale added a comment - just bumped priority mostly as it is not a small amount of effort, some planning needed 
          Michael Neale made changes -
          Description Original: The "sidecar container" pattern is a popular one for setting up dependent containers for running tests/builds. 

           

          It would be nice to have support for this pattern in declarative to avoid the need to drop to script. 

           

          To investigate...

           

          In scope: 

          Be able to specify sidecar containers, their network/port sharing with main build, in agent section

          Cleanup of containers

           

          testing: 

          Should be able to be fully automated using ci.jenkins.io 

          check sidecar containers are shut down in all scenarios possible
          New: The "sidecar container" pattern is a popular one for setting up dependent containers for running tests/builds. 

           

          It would be nice to have support for this pattern in declarative to avoid the need to drop to script. 

           

          To investigate...

           

          In scope: 
           * Be able to specify sidecar containers, their network/port sharing with main build, in agent section
           * Cleanup of containers
           * Formalise the patterns shown: [https://jenkins.io/doc/book/pipeline/docker/#running-sidecar-containers] in declarative, essentially

          testing: 
           * Should be able to be fully automated using ci.jenkins.io 
           * check sidecar containers are shut down in all scenarios possible

          James Dumay added a comment -

          michaelneale how much of this is just replicating docker compose? Perhaps we should be able to define a docker compose yml?

          James Dumay added a comment - michaelneale how much of this is just replicating docker compose? Perhaps we should be able to define a docker compose yml?

          Michael Neale added a comment -

          jamesdumay good question - I think docker compose may do a poor job at cleaning up after if things went wrong, btu that may be one way to implement this yes (although it does require they install it, and not sure how widely it is used). 

          Michael Neale added a comment - jamesdumay good question - I think docker compose may do a poor job at cleaning up after if things went wrong, btu that may be one way to implement this yes (although it does require they install it, and not sure how widely it is used). 

          James Dumay added a comment -

          ack

          James Dumay added a comment - ack

          Michael Neale added a comment -

          jamesdumay other tools tend to build in sidecar functionality, probably for a reason like this... 

          Michael Neale added a comment - jamesdumay other tools tend to build in sidecar functionality, probably for a reason like this... 
          James Dumay made changes -
          Epic Link New: JENKINS-45381 [ 183541 ]

            Unassigned Unassigned
            michaelneale Michael Neale
            Votes:
            32 Vote for this issue
            Watchers:
            48 Start watching this issue

              Created:
              Updated: