Operations grimoire/Dwellers to DevCentral: Difference between revisions

From Nasqueron Agora
(Created page with "This document explains how to communicate with DevCentral from the Docker host. == Rewrite remotes == <code>ssh://vcs@devcentral.nasqueron.org:5022/diffusion/DJENKINSSLAVES/...")
 
No edit summary
Line 1: Line 1:
This document explains how to communicate with DevCentral from the Docker host.
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 [[Operations grimoire/Git operations in production containers|Git operations in production containers]]


== Rewrite remotes ==
== Rewrite remotes ==
Line 14: Line 16:
<code>arc</code> is a wrapper to run <code>nasqueron/arcanist</code> container.
<code>arc</code> is a wrapper to run <code>nasqueron/arcanist</code> container.


To use it, create a <code>~/.arc<code> folder with:
To use it, create a <code>~/.arc</code> folder with:


* a <code>arcrc</code> file for your arc configuration
# a <code>arcrc</code> file for your arc configuration
* a <code>gitconfig</code> file for your Git configuration
# a <code>gitconfig</code> file for your Git configuration
* a <code>ssh</code> folder with a dedicated key for Dwellers to Phabricator instances (<code>mkdir -p ~/.arc/ssh && ssh-keygen -t ed25519 ~/.arc/ssh/id_ed25519</code>)
# a <code>ssh</code> folder with a dedicated key for Dwellers to Phabricator instances (<code>mkdir -p ~/.arc/ssh && ssh-keygen -t ed25519 ~/.arc/ssh/id_ed25519</code>)


For example:
For example:
Line 32: Line 34:
</pre>
</pre>


That folder content will be passed as volumes to the container.
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.
Don't use symbolic links (hard links are okay), they wouldn't resolve when passed as a volume to the container.

Revision as of 23:57, 28 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:

  1. a arcrc file for your arc configuration
  2. a gitconfig file for your Git configuration
  3. a ssh folder 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.