curl -o dm-swarm.sh \
https://raw.githubusercontent.com/vfarcic/cloud-provisioning/master/scripts/dm-swarm.sh
chmod +x dm-swarm.sh
eval $(docker-machine env swarm-1)
docker network create --driver overlay proxy
This file contains 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
export DIGITALOCEAN_ACCESS_TOKEN=[...] | |
curl -X GET \ | |
-H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN" \ | |
"https://api.digitalocean.com/v2/regions" \ | |
| jq '.' | |
export DIGITALOCEAN_REGION=sfo2 | |
cd cloud-provisioning |
This file contains 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
cd cloud-provisioning | |
git pull | |
cd terraform/aws-full | |
export AWS_ACCESS_KEY_ID=[...] | |
export AWS_SECRET_ACCESS_KEY=[...] |
This file contains 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
cd cloud-provisioning | |
git pull | |
cd terraform/aws-full | |
export AWS_ACCESS_KEY_ID=[...] | |
export AWS_SECRET_ACCESS_KEY=[...] |
This file contains 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
cd cloud-provisioning | |
git pull | |
scripts/dm-swarm.sh | |
eval $(docker-machine env swarm-1) | |
docker node ls |
This file contains 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
docker-machine create \ | |
-d virtualbox \ | |
swarm | |
eval $(docker-machine env swarm) | |
docker swarm init \ | |
--advertise-addr $(docker-machine ip swarm) | |
docker secret create [OPTIONS] SECRET file|- |
This file contains 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
#!/usr/bin/env bash | |
VERSION=1.6.0-rc-1 | |
wget http://downloads.cloudbees.com/pse/latest/pse_${VERSION}_linux_amd64.tar.gz | |
# https://pse-ci.pse.beescloud.com/job/Tiger/job/cd-release/105/# | |
tar zxvf pse_${VERSION}_linux_amd64.tar.gz |
This file contains 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
INFO global: Vagrant version: 1.9.1 | |
INFO global: Ruby version: 2.2.5 | |
INFO global: RubyGems version: 2.4.5.1 | |
INFO global: VAGRANT_LOG="debug" | |
INFO global: VAGRANT_OLD_ENV_Apple_PubSub_Socket_Render="/private/tmp/com.apple.launchd.6AflqY6br3/Render" | |
INFO global: VAGRANT_OLD_ENV_XPC_FLAGS="0x0" | |
INFO global: VAGRANT_OLD_ENV_TMPDIR="/var/folders/99/kb65vfkd6_5_qxn5_0w4f9pr0000gn/T/" | |
INFO global: VAGRANT_OLD_ENV_PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin" | |
INFO global: VAGRANT_OLD_ENV_XPC_SERVICE_NAME="0" | |
INFO global: VAGRANT_OLD_ENV_OLDPWD="/Users/vfarcic/IdeaProjects/pse-vagrant" |
This file contains 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
func (s IntegrationSwarmTestSuite) Test_ReconfigureWithDefaultBackend() { | |
params := "serviceName=go-demo&servicePath=/xxx&port=8080" | |
s.reconfigureService(params) | |
resp, err := s.sendHelloRequest() | |
s.NoError(err) | |
s.Equal(200, resp.StatusCode, s.getProxyConf()) | |
} |
docker-machine create -d virtualbox test
eval $(docker-machine env test)
docker swarm init \
--advertise-addr $(docker-machine ip test)
docker-machine ssh test