Skip to content

Commit

Permalink
Rebuild scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jan 13, 2017
1 parent 4c9d8c1 commit 5dcb5ff
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
18 changes: 11 additions & 7 deletions scripts/test-infra/consul
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# docker service rm consul0 consul1
docker service rm consul0 consul1

docker service create \
--name consul0 \
Expand All @@ -15,14 +15,17 @@ docker service create \
--replicas 2 \
progrium/consul -server -join consul0

# docker service rm dkron-consul-0 dkron-consul
sleep 10

docker service rm dkron-consul0 dkron-consul

docker service create \
--name dkron-consul-0 \
--name dkron-consul0 \
--network my-net \
--publish 8090:8080 \
dkron/dkron \
agent -server -bind=0.0.0.0:8946 -backend=consul -backend-machine=consul0:8500 -join=dkron-consul-0:8946 -log-level=debug
--container-label beta="1" \
dkron/dkron:v0.9.3-beta \
agent -server -bind=0.0.0.0:8946 -backend=consul -backend-machine=consul0:8500 -join=dkron-consul0:8946 -dog-statsd-addr=dd-agent:8125 -log-level=debug

sleep 5

Expand All @@ -31,5 +34,6 @@ docker service create \
--network my-net \
--replicas 5 \
--publish 8091:8080 \
dkron/dkron \
agent -server -bind=0.0.0.0:8946 -backend=consul -backend-machine=consul0:8500 -join=dkron-consul-0:8946 -log-level=debug
--container-label beta="1" \
dkron/dkron:v0.9.3-beta \
agent -server -bind=0.0.0.0:8946 -backend=consul -backend-machine=consul0:8500 -join=dkron-consul0:8946 -dog-statsd-addr=dd-agent:8125 -log-level=debug
6 changes: 4 additions & 2 deletions scripts/test-infra/etcd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# docker service rm etcd0 etcd1 etcd2
docker service rm etcd0 etcd1 etcd2

docker service create \
--name etcd0 \
Expand Down Expand Up @@ -43,7 +43,9 @@ quay.io/coreos/etcd etcd \
-initial-cluster etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380 \
-initial-cluster-state new

# docker service rm dkron-etcd0 dkron-etcd
sleep 10

docker service rm dkron-etcd0 dkron-etcd

docker service create \
--name dkron-etcd0 \
Expand Down
16 changes: 10 additions & 6 deletions scripts/test-infra/zookeeper
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

# docker service rm zoo1 zoo2 zoo3
docker service rm zoo1 zoo2 zoo3

docker service create \
--name zoo1 \
Expand All @@ -23,14 +23,17 @@ docker service create \
--env ZOO_SERVERS='server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=0.0.0.0:2888:3888' \
zookeeper

# docker service rm dkron-zoo0 dkron-zoo
sleep 10

docker service rm dkron-zoo0 dkron-zoo

docker service create \
--name dkron-zoo0 \
--network my-net \
--publish 9090:8080 \
dkron/dkron \
agent -server -bind=0.0.0.0:8946 -backend=zk -backend-machine=zoo1:2181 -join=dkron-zoo0:8946 -log-level=debug
--container-label beta="1" \
dkron/dkron:v0.9.3-beta \
agent -server -bind=0.0.0.0:8946 -backend=zk -backend-machine=zoo1:2181 -join=dkron-zoo0:8946 -dog-statsd-addr=dd-agent:8125 -log-level=debug

sleep 10

Expand All @@ -39,8 +42,9 @@ docker service create \
--network my-net \
--replicas 5 \
--publish 9091:8080 \
dkron/dkron \
agent -server -bind=0.0.0.0:8946 -backend=zk -backend-machine=zoo1:2181 -join=dkron-zoo0:8946 -log-level=debug
--container-label beta="1" \
dkron/dkron:v0.9.3-beta \
agent -server -bind=0.0.0.0:8946 -backend=zk -backend-machine=zoo1:2181 -join=dkron-zoo0:8946 -dog-statsd-addr=dd-agent:8125 -log-level=debug

# docker service create \
# --mount type=bind,source=/tmp,destination=/opt/local/dkron/config \
Expand Down

0 comments on commit 5dcb5ff

Please sign in to comment.