continuous deployment - Configure a local build plan with Harbormaster and Drydock -


i'm trying create simple build plan using harbormaster , drydock:

  1. whenever commit made build plan deployment should triggered. can done harold.

  2. the build plan deployment has build steps run command.

i know drydock , harbormaster prototypes seems there no documentation.

so first i've created build plan , added 2 build steps testing:

  • lease host build step localhost name , linux platform
  • run command build step php /var/www/ci/test.php command , localhost host

but error message after manual start was:

exception 'exception' message 'lease has been broken!' in /var/www/phabricator/src/applications/drydock/storage/drydocklease.php:172 stack trace: #0 /var/www/phabricator/src/applications/drydock/storage/drydocklease.php(198): drydocklease::waitforleases(array) #1 /var/www/phabricator/src/applications/harbormaster/step/harbormasterleasehostbuildstepimplementation.php(32): drydocklease->waituntilactive() #2 /var/www/phabricator/src/applications/harbormaster/worker/harbormastertargetworker.php(52): harbormasterleasehostbuildstepimplementation->execute(object(harbormasterbuild), object(harbormasterbuildtarget)) #3 /var/www/phabricator/src/infrastructure/daemon/workers/phabricatorworker.php(91): harbormastertargetworker->dowork() #4 /var/www/phabricator/src/infrastructure/daemon/workers/storage/phabricatorworkeractivetask.php(162): phabricatorworker->executetask() #5 /var/www/phabricator/src/infrastructure/daemon/workers/phabricatortaskmasterdaemon.php(22): phabricatorworkeractivetask->executetask() #6 /var/www/libphutil/src/daemon/phutildaemon.php(183): phabricatortaskmasterdaemon->run() #7 /var/www/libphutil/scripts/daemon/exec/exec_daemon.php(125): phutildaemon->execute() #8 {main} 

could give me hints how run commands on localhost harbormaster , drydock?

the problem have not created resource through drydock. here how can execute command harbormaster , drydock:

  1. create drydock blueprint (e.g. blueprint 4711).
  2. create passphrase ssh private key drydock can used access local host through ssh (e.g. k123).
  3. create drydock resource through cli local host:

    ./bin/drydock create-resource --blueprint 4711 --name localhost --attributes host=localhost,platform=linux,remote=true,port=22,path=/var/drydock,credential=123 
  4. create harbormaster build plan.

  5. add build step (lease host) build plan, use drydock blueprint artifact , linux platform.
  6. add second build step build plan (run command) command want , drydock blueprint host.

using server cd/ci might option small installations.


Comments