Operations grimoire/Dwellers to DevCentral: Difference between revisions
No edit summary |
|||
| Line 37: | Line 37: | ||
Don't use symbolic links (hard links are okay), they wouldn't resolve when passed as a volume to the container. | Don't use symbolic links (hard links are okay), they wouldn't resolve when passed as a volume to the container. | ||
To check if all works as expected: <code>ssh vcs@devcentral.docker.ulubis</code> | |||
Revision as of 00:06, 29 July 2016
This document explains how to communicate with DevCentral from the Docker host.
If you're interested to communicate between DevCentral and a Docker container, see Git operations in production containers
Rewrite remotes
ssh://vcs@devcentral.nasqueron.org:5022/diffusion/DJENKINSSLAVES/docker-jenkins-slaves.git
becomes:
ssh://vcs@devcentral.docker.ulubis/diffusion/DJENKINSSLAVES/docker-jenkins-slaves.git
See https://devcentral.nasqueron.org/T958 for discussion about DNS.
Arcanist
arc is a wrapper to run nasqueron/arcanist container.
To use it, create a ~/.arc folder with:
- a
arcrcfile for your arc configuration - a
gitconfigfile for your Git configuration - a
sshfolder with a dedicated key for Dwellers to Phabricator instances (mkdir -p ~/.arc/ssh && ssh-keygen -t ed25519 ~/.arc/ssh/id_ed25519)
For example:
.
├── arcrc
├── gitconfig
└── ssh
├── id_ed25519
├── id_ed25519.pub
└── known_hosts
That folder content will be passed as volumes to the container. In the example, known_hosts has been added by ssh client inside the container.
Don't use symbolic links (hard links are okay), they wouldn't resolve when passed as a volume to the container.
To check if all works as expected: ssh vcs@devcentral.docker.ulubis