Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28641

Allow for configuration of a custom command shell when using docker

      By default, when using the docker configuration option, the approach used by mesos to run a docker based jenkins slave is by passing the jenkins slave commands as arguments to
      the standard shell e.g. /bin/sh -c java -jar ...

      There may be cases (for example when wanting to run a docker-in-docker aka
      dind image) where a custom shell command is desired instead so that more than just the jenkins slave command can be executed. I.e. start docker then run the jenkins slave command.

      This has been highlighted in a google group chat as well. See https://groups.google.com/forum/#!topic/jenkins-mesos/JgFCmqOO7Fg

      It would be nice to be able to override this behaviour to make it possible.

          [JENKINS-28641] Allow for configuration of a custom command shell when using docker

          nickithewatt created issue -
          nickithewatt made changes -
          Labels New: pull_request
          nickithewatt made changes -
          Description Original: By default, when using the docker configuration option, the approach used by mesos to run a docker based jenkins slave is by passing the jenkins slave commands as arguments to
          the standard shell e.g. ```/bin/sh -c java -jar ... ```.

          There may be cases (for example when wanting to run a docker-in-docker aka
          dind image) where a custom shell command is desired instead so that more than just the jenkins slave command can be executed. I.e. start docker then run the jenkins slave command.

          This has been highlighted in a google group chat as well. See https://groups.google.com/forum/#!topic/jenkins-mesos/JgFCmqOO7Fg

          It would be nice to be able to override this behaviour to make it possible.
          New: By default, when using the docker configuration option, the approach used by mesos to run a docker based jenkins slave is by passing the jenkins slave commands as arguments to
          the standard shell e.g. /bin/sh -c java -jar ...

          There may be cases (for example when wanting to run a docker-in-docker aka
          dind image) where a custom shell command is desired instead so that more than just the jenkins slave command can be executed. I.e. start docker then run the jenkins slave command.

          This has been highlighted in a google group chat as well. See https://groups.google.com/forum/#!topic/jenkins-mesos/JgFCmqOO7Fg

          It would be nice to be able to override this behaviour to make it possible.
          Carlos Sanchez made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163494 ] New: JNJira + In-Review [ 208829 ]

            vinodkone Vinod Kone
            nickithewatt nickithewatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: