Skip to content

Commit

Permalink
bumping up ucp and dtr versions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yu committed Sep 22, 2017
1 parent 126c993 commit 37b75c3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion scripts/backup_dtr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export UCP_IPADDR=$(cat /vagrant/ucp-node1-ipaddr)
export DTR_IPADDR=$(cat /vagrant/dtr-node1-ipaddr)
export SWARM_JOIN_TOKEN_WORKER=$(cat /vagrant/swarm-join-token-worker)
export DTR_REPLICA_ID=$(cat /vagrant/dtr-replica-id)
export DTR_VERSION=2.3.3

docker run --rm docker/dtr:2.3.2 backup --ucp-url https://${UCP_IPADDR} --existing-replica-id ${DTR_REPLICA_ID} --ucp-username admin --ucp-password ${UCP_PASSWORD} --ucp-ca "$(cat ucp-ca.pem)" > /tmp/backup.tar
docker run --rm docker/dtr:${DTR_VERSION} backup --ucp-url https://${UCP_IPADDR} --existing-replica-id ${DTR_REPLICA_ID} --ucp-username admin --ucp-password ${UCP_PASSWORD} --ucp-ca "$(cat ucp-ca.pem)" > /tmp/backup.tar
2 changes: 1 addition & 1 deletion scripts/install_dtr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export UCP_IPADDR=$(cat /vagrant/ucp-node1-ipaddr)
export UCP_USERNAME=$(cat /vagrant/ucp_username)
export UCP_PASSWORD=$(cat /vagrant/ucp_password)
export DTR_REPLICA_ID=$(cat /vagrant/dtr-replica-id)
export DTR_VERSION=2.3.0
export DTR_VERSION=2.3.3

# Sleep 35 seconds to wait for node registration
sleep 35
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_ucp.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
export UCP_VERSION=2.2.2
export UCP_VERSION=2.2.3

ifconfig enp0s8 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' > /vagrant/ucp-node1-ipaddr
export UCP_IPADDR=$(cat /vagrant/ucp-node1-ipaddr)
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade_dtr.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

export DTR_VERSION=2.3.2
export DTR_VERSION=2.3.3
export UCP_IPADDR=$(cat /vagrant/ucp-vancouver-node1-ipaddr)
export UCP_PASSWORD=$(cat /vagrant/ucp_password)
export DTR_REPLICA_ID=$(cat /vagrant/dtr-replica-id)
Expand Down
11 changes: 10 additions & 1 deletion scripts/visualizer.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# HRM Deployment
docker service create \
--network ucp-hrm \
--name=viz \
--publish=8080:8080/tcp \
--publish=8080 \
--constraint=node.role==manager \
--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
--label com.docker.ucp.mesh.http.8080=external_route=http://visualizer.local,internal_port=8080 \
dockersamples/visualizer

# Non-HRM Deployment
docker service create \
--name=viz \
--publish=8080:8080/tcp \
--constraint=node.role==manager \
--mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
dockersamples/visualizer

0 comments on commit 37b75c3

Please sign in to comment.