Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-29760] Docker in Docker support (and other similar advanced …
…use cases)
- Loading branch information
Showing
8 changed files
with
62 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...urces/com/cloudbees/jenkins/plugins/docker_build_env/DockerBuildWrapper/help-command.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This advanced option let you configure the command to be ran when the container is started. This command | ||
<b>must</b> hang so the container is alive, while build steps are executed using <code>docker exec</code>. | ||
<p> | ||
You should not change this option until you have some advanced requirements. For sample using | ||
<a href="https://github.com/jpetazzo/dind">Docker in Docker</a> will require to configure command as | ||
<code>wrapdocker /bin/cat</code>. |
7 changes: 7 additions & 0 deletions
7
...sources/com/cloudbees/jenkins/plugins/docker_build_env/DockerBuildWrapper/help-group.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The user to run build <em>has</em> to be the same as the Jenkins slave user so files created in workspace | ||
have adequate owner and permission set. Side effect is you can't configure the user to run inside docker | ||
(until Docker do support <a href="https://github.com/docker/docker/issues/7906">user namespace</a>) | ||
<p> | ||
For many usages this restriction can be frustrating, so as a workaround you can configure user's group ID | ||
to gain extra privileges in your container. For sample, if you want to run | ||
<a href="https://github.com/jpetazzo/dind">Docker in Docker</a>, you can set group as '<code>docker</code>'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters