This will setup a Docker container which contains the following tools:
- Docker
- Git
- OpenSSH
- OpenSSH Client
An entry point is also included to configure the container and add the necessary SSH keys so that the builder can connect with the Phabricator server and vice versa.
Variable | Value | Description |
---|---|---|
PHABRICATOR_HOST | phabricator.sprobe.ph | The Phabricator host URL |
PHABRICATOR_HOST_PORT | 22 | The Phabricator host SSH port |
HOST_KEY | ssh-rsa AAAAB3NzaC1yc2EAAAA... | The generated public SSH key |
USER_KEY |
-----BEGIN RSA PRIVATE KEY----- AAABAFPZNuvGou6u044mK... -----END RSA PRIVATE KEY----- |
The generated private SSH key |
version: '2'
services:
phabricator-builder:
privileged: true
image: sprobe/phabricator-builder
environment:
PHABRICATOR_HOST: phabricator.sprobe.ph
PHABRICATOR_HOST_PORT: '22'
HOST_KEY: ssh-rsa AAAAB3NzaC1yc2EAAAA...
USER_KEY: |-
-----BEGIN RSA PRIVATE KEY-----
AAABAFPZNuvGou6u044mK...
-----END RSA PRIVATE KEY-----
dns:
- 10.17.1.6
- 8.8.8.8
ports:
- 2221:22/tcp