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
ehazlett .dotfiles> docker run --rm -v /var/run/docker.sock:/var/run/docker.sock shipyard/deploy start | |
Pulling image: shipyard/rethinkdb | |
Starting Rethinkdb Data | |
Starting Rethinkdb | |
Starting Shipyard | |
Pulling image: shipyard/shipyard:latest | |
Shipyard Stack started successfully | |
Username: admin Password: shipyard | |
ehazlett .dotfiles> docker ps | grep shipyard | |
1b41cdf642a1 shipyard/shipyard:2.0.8 "/app/controller" 8 seconds ago Up 8 seconds 0.0.0.0:8080->8080/tcp shipyard |
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
#!/bin/bash | |
git log --no-merges --pretty="%cn|%s" $1..$2 | sort | awk -F '|' '$1==x{ printf "\n %s", $2; next }{ x=$1; printf "\n\n%s\n %s", $1, $2;} END { printf "\n"}' | tail -n +3 |
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
ehazlett machine> ./script/build -os="linux" -arch="amd64" | |
Sending build context to Docker daemon 6.463 MB | |
Sending build context to Docker daemon | |
Step 0 : FROM golang:1.3-cross | |
---> d162748e3e05 | |
Step 1 : RUN apt-get update && apt-get install -y --no-install-recommends openssh-client | |
---> Using cache | |
---> 50f1be697ea4 | |
Step 2 : RUN go get github.com/mitchellh/gox | |
---> Using cache |
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
ehazlett machine> ./script/build -os="linux" | |
Sending build context to Docker daemon 6.463 MB | |
Sending build context to Docker daemon | |
Step 0 : FROM golang:1.3-cross | |
---> d162748e3e05 | |
Step 1 : RUN apt-get update && apt-get install -y --no-install-recommends openssh-client | |
---> Using cache | |
---> 50f1be697ea4 | |
Step 2 : RUN go get github.com/mitchellh/gox | |
---> Using cache |
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
ehazlett machine> ./script/build | |
Sending build context to Docker daemon 6.463 MB | |
Sending build context to Docker daemon | |
Step 0 : FROM golang:1.3-cross | |
---> d162748e3e05 | |
Step 1 : RUN apt-get update && apt-get install -y --no-install-recommends openssh-client | |
---> Using cache | |
---> 50f1be697ea4 | |
Step 2 : RUN go get github.com/mitchellh/gox | |
---> Using cache |
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
[ehazlett@ejh-mbpr machine]$ ./machine ls | |
INFO[0000] Connecting to vCloud Air to fetch vApp Status... | |
NAME ACTIVE DRIVER STATE URL | |
test-vcloud * vmwarevcloudair Running tcp://23.92.243.104:2376 | |
[ehazlett@ejh-mbpr machine]$ docker $(machine config test-vcloud) ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
[ehazlett@ejh-mbpr machine]$ docker $(machine config test-vcloud) run -ti busybox echo hello machine | |
Unable to find image 'busybox:latest' locally |
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
ehazlett@ejh-mbp ~/Sync> ./machine-darwin create -d virtualbox machine-test | |
INFO[0000] Downloading boot2docker... | |
INFO[0005] Creating SSH key... | |
INFO[0005] Creating VirtualBox VM... | |
INFO[0010] Starting VirtualBox VM... | |
INFO[0011] Waiting for VM to start... | |
INFO[0046] "machine-test" has been created and is now the active machine. To point Docker at this machine, run: export DOCKER_HOST=$(machine url) DOCKER_AUTH=identity | |
ehazlett@ejh-mbp ~/Sync> ./machine-darwin ls | |
NAME ACTIVE DRIVER STATE URL | |
machine-test * virtualbox Running tcp://192.168.99.100:2376 |
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
dev@machine ~/d/g/s/g/d/machine> ./machine ls | |
NAME ACTIVE DRIVER STATE URL | |
docker-machine * amazonec2 Running tcp://54.172.130.76:2376 | |
dev@machine ~/d/g/s/g/d/machine> ./machine url | |
NAME: | |
url - Get the URL of a machine | |
USAGE: | |
command url [arguments...] |
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
#!/bin/bash | |
apt-get update | |
apt-get install -y curl | |
curl get.docker.io | sh - | |
# uncomment if you want remote api access | |
#echo 'DOCKER_OPTS="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"' >> /etc/default/docker | |
service docker restart |
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
dev@shipyard ~/d/g/s/g/s/s/controller> go test | |
? github.com/shipyard/shipyard/controller [no test files] | |
dev@shipyard ~/d/g/s/g/s/s/controller> go test -v | |
? github.com/shipyard/shipyard/controller [no test files] | |
dev@shipyard ~/d/g/s/g/s/s/controller> go test ./... | |
? github.com/shipyard/shipyard/controller [no test files] | |
ok github.com/shipyard/shipyard/controller/manager 10.440s | |
? github.com/shipyard/shipyard/controller/middleware/access [no test files] | |
ok github.com/shipyard/shipyard/controller/middleware/auth 0.003s | |
dev@shipyard ~/d/g/s/g/s/s/controller> go test ./... |