Skip to content

ejholmes/swarm-ecs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swarm ECS

This is a simple Go program that generates a text file suitable for the swarm file discovery backend

Installation

go get -u github.com/ejholmes/swarm-ecs/cmd/swarm-ecs

Usage

List the hosts within the cluster:

$ swarm-ecs list
<node_ip1:2375>
<node_ip2:2375>
<node_ip3:2375>

Periodically write it to a file that swarm is watching:

$ swarm manage -H tcp://<swarm_ip:swarm_port> file:///tmp/my_cluster &
$ while true; do swarm-ecs list > /tmp/my_cluster; sleep 1; done

About

Generate a text file from ECS container hosts for Docker Swarm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published