Page MenuHomeDevCentral

run-shipyard

Authored By
dereckson
Jan 1 2016, 20:19
Size
1 KB
Referenced Files
None
Subscribers
None

run-shipyard

#!/bin/sh
ETCD_INSTANCE=triangulum
# Proxy to provide as http://shipyard-proxy:2375 a TCP access to Docker Engine
docker run -it -d --hostname=$HOSTNAME --name shipyard-proxy -v /var/run/docker.sock:/var/run/docker.sock -e PORT=2375 ehazlett/docker-proxy:latest socat TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
# Datastore
docker run -it -d --name shipyard-rethinkdb rethinkdb
# etcd - that gives us swarm leader election
# Well... we need a K/V store for Nasqueron, so why not?
docker run -it -d -p 4001:4001 -p 7001:7001 -v /data/${ETCD_INSTANCE}:/data --name ${ETCD_INSTANCE} microbox/etcd -name ${ETCD_INSTANCE}
# Swarm - one agent, one manager
docker run -it -d --name shipyard-swarm-manager swarm:latest manage --host tcp://0.0.0.0:3375 etcd://triangulum.nasqueron.org:4001
docker run -it -d --name shipyard-swarm-agent --link shipyard-proxy:docker swarm:latest join --addr 172.17.0.135:2375 etcd://triangulum.nasqueron.org:4001
# Shipyard
docker run -it -d --name shipyard-controller --link shipyard-rethinkdb:rethinkdb --link shipyard-swarm-manager:swarm -p 30080:8080 shipyard/shipyard:latest server -d tcp://swarm:3375

File Metadata

Mime Type
text/x-shellscript
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13934
Default Alt Text
run-shipyard (1 KB)

Event Timeline

dereckson changed the visibility from "All Users" to "Public (No Login Required)".Jan 1 2016, 20:21