@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 74 lines 3.0 kB view raw
1@title Drydock User Guide: Quick Start 2@group userguide 3 4Guide to getting Drydock 5 6Quick Start: Land Revisions 7=========================== 8 9Quick start guide to getting "Land Revision" working in Differential. For 10a more detailed guide, see @{article:Drydock User Guide: Repository Automation}. 11 12Choose a repository you want to enable "Land Revision" for. We'll call this 13**Repository X**. 14 15You need to configure a staging area for this repository if you haven't 16already. You can do this in Diffusion in {nav Edit Repository > Edit Staging}. 17We'll call this **Staging Area Y**. 18 19Choose or create a host you want to run merges on. We'll call this 20`automation001`. For example, you might bring up a new host in EC2 and 21label it `automation001.mycompany.com`. You can use an existing host if you 22prefer. 23 24Create a user account on the host, or choose an existing user account. This is 25the user that merges will execute under: Drydock will connect to it and run a 26bunch of `git` commands, then ultimately run `git push`. We'll call this user 27`builder`. 28 29Install `git`, `hg` or `svn` if you haven't already and set up private keys 30for `builder` so it can pull and push any repositories you want to operate 31on. 32 33If your repository and/or staging area are hosted in Phorge, you may want 34to create a corresponding bot account so you can add keys and give it 35permissions. 36 37At this point you should be able to `ssh builder@automation001` to connect to 38the host, and get a normal shell. You should be able to `git clone ...` from 39**Repository X** and from **Staging Area Y**, and `git push` to **Repository 40X**. If you can't, configure things so you can. 41 42Now, create a host blueprint for the host. You can find a more detailed 43walkthrough in @{article:Drydock Blueprints: Hosts}. Briefly: 44 45 - Create an Almanac device for the host. This should have the IP address and 46 port for your host. 47 - Create an Almanac service bound to the device. This should be a Drydock 48 resource pool service and have a binding to the IP from the previous step. 49 - Create a Drydock host blueprint which uses the service from the previous 50 step. It should be configured with an SSH private key that can be used 51 to connect to `builder@automation001`. 52 53Then, create a new working copy blueprint which uses the host blueprint you 54just made. You can find a more detailed walkthrough in @{article:Drydock 55Blueprints: Working Copies}. Authorize the working copy blueprint to use the 56host blueprint. 57 58Finally, configure repository automation for **Repository X**: 59{nav Edit Repository > Edit Automation}. Provide the working copy blueprint 60from the previous step. Authorize the repository to use the working copy 61blueprint. 62 63After you save changes, click {nav Test Configuration} to test that things 64are working properly. 65 66The "Land Revision" action should now be available on revisions for this 67repository. 68 69Next Steps 70========== 71 72Continue by: 73 74 - returning to @{article:Drydock User Guide}.