Skip to content

Instantly share code, notes, and snippets.

@mdasilva
Last active January 2, 2018 19:39
Show Gist options
  • Save mdasilva/0078e9451d31075f57b568e1d43607f2 to your computer and use it in GitHub Desktop.
Save mdasilva/0078e9451d31075f57b568e1d43607f2 to your computer and use it in GitHub Desktop.
JENKINS MASTER USER1
+---------------------+ USER2 USER3
| | DOCKER HOST 1
| system config | 2375/TCP +--------------------------------------+ + +
| docker plugin +------------------+ | | |
+---------------------+ | CONTAINER 1 | FW ephemeral/TCP | |
| project A | | +--------------------------------+ | +--------------------+
| | 80/443/TCP | | | | | |
| build #1 <--------------------------------+ jnlp agent | | | |
| | | | | | | |
| build #2 <-------------------+ | | (BUILD STEPS) | | REMOTE ACCESS GW | |
| | | | | | | +---------------------+ | |
+---------------------+ | | | start-shell-access.sh (opt) | | | sshd | | |
| project B | | | | +-> sshd | | 22/TCP | | | |
| | | | | +--+ ssh -R:0:127.0.0.1:22 +----------------------+ 0.0.0.0:35067 <-----+ |
| build #1 <----------------+ | | | sleep 1800 | | | | |
| | | | | | | | +------------+ 0.0.0.0:41543 <----------+-
+---------------------+ | | | +--------------------------------+ | | | |
| ... | | | | | | +--------+ 0.0.0.0:37929 |
| | | | | CONTAINER 2 | | | | |
+---------------------+ | | | +--------------------------------+ | | | | ... |
| +------------+ jnlp agent | | | | | |
| | | ... | | | | +---------------------+
| | | sshd/ssh +---------------------------+ |
| | +--------------------------------+ | |
| | | |
| | CONTAINER 3 | |
| | +--------------------------------+ | |
+---------------+ jnlp agent | | |
| | ... | | |
| | sshd/ssh +-------------------------------+
| +--------------------------------+ |
| |
| ... |
| |
+--------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment