This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in 1 2 3; do | |
| docker-machine create -d virtualbox node-$i | |
| done | |
| eval $(docker-machine env node-1) | |
| docker swarm init \ | |
| --advertise-addr $(docker-machine ip node-1) | |
| TOKEN=$(docker swarm join-token -q worker) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone https://github.com/vfarcic/cloud-provisioning.git | |
| cd cloud-provisioning | |
| scripts/dm-swarm.sh | |
| eval $(docker-machine env swarm-1) | |
| docker node ls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ # initiate export, will return 202: | |
| $ curl -u evzijst:passwd -X POST -v https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export | |
| [...] | |
| < HTTP/1.1 202 ACCEPTED | |
| [...] | |
| $ # poll for status updates: | |
| $ curl -u evzijst:passwd -X GET https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export | |
| {"status": "ACCEPTED", "count": "1", "total": "4", "phase": "Issues", "pct": "25"} | |
| $ # until it's ready: | |
| $ curl -u evzijst:passwd -X GET https://api.bitbucket.org/1.0/repositories/evzijst/interruptingcow/issues/export |
OlderNewer