i'm trying create simple build plan using harbormaster , drydock:
whenever commit made build plan
deploymentshould triggered. can done harold.the build plan
deploymenthas 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 hostbuild steplocalhostname ,linuxplatformrun commandbuild stepphp /var/www/ci/test.phpcommand ,localhosthost
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:
- create drydock blueprint (e.g.
blueprint 4711). - create passphrase ssh private key drydock can used access local host through ssh (e.g.
k123). 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=123create harbormaster build plan.
- add build step (
lease host) build plan, use drydock blueprintartifact,linuxplatform. - add second build step build plan (
run command) command want , drydock blueprinthost.
using server cd/ci might option small installations.
Comments
Post a Comment