From 6678a167fe873a320d00aa99be09945ac5f9ca96 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Wed, 2 Sep 2015 21:04:04 -0700 Subject: [PATCH] update discovery url Signed-off-by: Victor Vieux --- discovery/token/README.md | 14 ++++++-------- discovery/token/token.go | 2 +- test/integration/discovery/token.bats | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/discovery/token/README.md b/discovery/token/README.md index 8088169f1d..9b1a758572 100644 --- a/discovery/token/README.md +++ b/discovery/token/README.md @@ -1,31 +1,29 @@ -#discovery-stage.hub.docker.com +#discovery.hub.docker.com Docker Swarm comes with a simple discovery service built into the [Docker Hub](http://hub.docker.com) -The discovery service is still in alpha stage and currently hosted at `https://discovery-stage.hub.docker.com` - #####Create a new cluster -`-> POST https://discovery-stage.hub.docker.com/v1/clusters` +`-> POST https://discovery.hub.docker.com/v1/clusters` `<- ` #####Add new nodes to a cluster -`-> POST https://discovery-stage.hub.docker.com/v1/clusters/?ttl= Request body: ":"` +`-> POST https://discovery.hub.docker.com/v1/clusters/?ttl= Request body: ":"` `<- OK` -`-> POST https://discovery-stage.hub.docker.com/v1/clusters/?ttl= Request body: ":")` +`-> POST https://discovery.hub.docker.com/v1/clusters/?ttl= Request body: ":")` `<- OK` #####List nodes in a cluster -`-> GET https://discovery-stage.hub.docker.com/v1/clusters/` +`-> GET https://discovery.hub.docker.com/v1/clusters/` `<- [":", ":"]` #####Delete a cluster (all the nodes in a cluster) -`-> DELETE https://discovery-stage.hub.docker.com/v1/clusters/` +`-> DELETE https://discovery.hub.docker.com/v1/clusters/` `<- OK` diff --git a/discovery/token/token.go b/discovery/token/token.go index 455b43565e..7a4eaa88a7 100644 --- a/discovery/token/token.go +++ b/discovery/token/token.go @@ -13,7 +13,7 @@ import ( ) // DiscoveryUrl is exported -const DiscoveryURL = "https://discovery-stage.hub.docker.com/v1" +const DiscoveryURL = "https://discovery.hub.docker.com/v1" // Discovery is exported type Discovery struct { diff --git a/test/integration/discovery/token.bats b/test/integration/discovery/token.bats index 894fa3ec76..0cb196e387 100644 --- a/test/integration/discovery/token.bats +++ b/test/integration/discovery/token.bats @@ -8,7 +8,7 @@ DISCOVERY="" function token_cleanup() { [ -z "$TOKEN" ] && return echo "Removing $TOKEN" - curl -X DELETE "https://discovery-stage.hub.docker.com/v1/clusters/$TOKEN" + curl -X DELETE "https://discovery.hub.docker.com/v1/clusters/$TOKEN" } function setup() {