-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix where providing a SERVICE_NAME for a container with multiple ports exposed would cause services to overwrite each other * Synchornize etcd cluster in registrator on service registration * note on docker hub tags * link to boot2docker * analytics * Default to tcp for PortType if not provided * Allow DEV_RUN_OPTS to be used when calling make dev * Add new version checker Checks for new versions with the "usage" service and automatically displays a standard version message when the "--version" flag is passed. * Adding retries to backend service in the startup Signed-off-by: Marcelo Salazar R <[email protected]> * Added retry parameters documentation Signed-off-by: Marcelo Salazar R <[email protected]> * Upgrade to alpine:3.2 and go 1.4 go 1.4 is now required (miekg/dns#197) * Refactor bridge for better testability bridge.New no longer attempts to ping an adapter, caller must now use the bridge Ping method. A few simple tests have been added to the bridge pkg * Removed unused attributes * prebump * Adding documentation link * update wording for Weave product family * updating documentation & CHANGELOG * Fix specific port names not overriding port suffix * Actually check metadata from port. Fix ENV variable order dependency * Use exit status to determine if container was killed Instead of using the "kill" and "stop" events, this uses the exit status to check whether the container was terminated via a signal. This will be more reliable since the "kill" event can also be sent for non-fatal signals such as SIGHUP. Fixes #248 * Fix releases link in README * Align SPONSORS text * Add more detailed usage regarding options placement Go's "flag" module only parses options up until the first non-option argument, so additional arguments are left unparsed in "flag.Args()". We only expect one argument, but additional arguments were ignored, leading to some confusion about options that were ignored. This updates the Usage() message with the syntax showing the options before the registry URI, as well as more detail if the registry argument is missing, or additional arguments are found. * Cleanup dangling services When a service was previously registered into the service registry and registrator exits without unregistering, registrator now queries the backend to see which services were registered, and checks against it's internal list to determine which should be unregistered. * Support for Docker multi host networking When using the Docker multi-host networking, IPAddress under NetworkSettings is set to an empty string and the container IP can be retrieved from NetworkSettings.Networks. At this point it is assumed a single Docker network is associated with the container * Update util.go * Using NewVersionedClientFromEnv to create docker client * Initial basic zookeeper backend for registrator * Small docs refurbishment * Note for ignoring individual service on container * Add support for Consul unix sockets * Change default port for etc2 backend to default 2379 * Update docs for etcd backend for default port * *servicePort method add support hostip for overlay network * gofmt bridge * added Consul TCP Health Check * removed sentence that was copied from HTTP health check * Update CHANGELOG * Add image size to readme. Closes #290 * Release prep * Add image size to docs * bump * Have the zookeeper backend use the host port for the service paths, allow publishing services if the base service path already exists, and allow publishing into the root of zookeeper. (#367)
- Loading branch information
Showing
26 changed files
with
548 additions
and
73 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM gliderlabs/alpine:3.1 | ||
FROM gliderlabs/alpine:3.2 | ||
CMD ["/bin/registrator"] | ||
|
||
ENV GOPATH /go | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DigitalOcean http://digitalocean.com | ||
DigitalOcean http://digitalocean.com | ||
Weaveworks http://weave.works |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v6 | ||
v7 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package bridge | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestNewError(t *testing.T) { | ||
bridge, err := New(nil, "", Config{}) | ||
assert.Nil(t, bridge) | ||
assert.Error(t, err) | ||
} | ||
|
||
func TestNewValid(t *testing.T) { | ||
Register(new(fakeFactory), "fake") | ||
// Note: the following is valid for New() since it does not | ||
// actually connect to docker. | ||
bridge, err := New(nil, "fake://", Config{}) | ||
|
||
assert.NotNil(t, bridge) | ||
assert.NoError(t, err) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,4 +139,3 @@ func (ep *adapterFactoryExt) All() map[string]AdapterFactory { | |
} | ||
return all | ||
} | ||
|
Oops, something went wrong.