Commit Graph

50 Commits

Author SHA1 Message Date
Alexandre Beslic 59e1e9b942 Change existing discovery backends to 'kv' using metatada storage backends in the store package
Signed-off-by: Alexandre Beslic <abronan@docker.com>
2015-05-11 17:23:55 -07:00
Andrea Luzzardi eebc06aabe Cleanup: Move CLI related files to a subpackage.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-18 20:26:55 -07:00
Andrea Luzzardi d492feb7cc golint: DiscoveryService -> Discovery
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-15 14:26:39 -07:00
Kushal Pisavadia 78dba5d623 Remove prefixes from DiscoveryService implementations
All of these structs are public. Previously when they were used, they'd
look like the following:

 - `consul.ConsulDiscoveryService`
 - `etcd.EtcdDiscoveryService`
 - `file.FileDiscoveryService`
 - `nodes.NodesDiscoveryService`
 - `token.TokenDiscoveryService`
 - `zookeeper.ZkDiscoveryService`

As a result, they stuttered when read. This commit removes the
duplication of the package names on the struct so that they read better.

See also: https://golang.org/ref/spec#Import_declarations

Signed-off-by: Kushal Pisavadia <kushi.p@gmail.com>
2015-04-15 20:58:17 +01:00
Victor Vieux 805b4763f4 disable cluster flag
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-03 16:33:48 -07:00
Matt Bajor d87c48ae4e Fix lint violations
This changeset fixes all lint violations that show up with a
min_confidence of 1

- Issue #500: Run golint on codebase

Signed-off-by: Matt Bajor <matt@notevenremotelydorky.com>
2015-03-27 21:17:44 -06:00
Nick Huanca, Matt Bajor, Matt Knox, Fed Sawyer, Joseph Benavidez, Tom Haschenburger and Wes Morgan 366d234626 Closes #501: Error if unknown args are used in create
Signed-off-by: Matt Bajor <matt@notevenremotelydorky.com>
2015-03-26 02:39:33 +00:00
Victor Vieux ce98e66c63 cluster API instead of scheduler API
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -08:00
Victor Vieux 98a21bd373 initial mesos.go file full fo TODOs
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -08:00
Victor Vieux e38b06fbe8 add VERSION file
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-03 01:53:01 +00:00
Victor Vieux 7c504dc58b add gitcommit to version
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-03 01:15:00 +00:00
Radek Simko a1f4e44f09 Use actual binary name instead of hardcoding it
Signed-off-by: Radek Simko <radek.simko@gmail.com>
2015-01-24 08:27:36 +00:00
Andrea Luzzardi 8d3d71ba41 Re-add support for --debug.
If --debug is set (or $DEBUG) and no log level was specified, enforce
log-level=debug.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-21 17:38:54 -08:00
Andrea Luzzardi 5200e3e764 Replace --debug with --log-level
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-21 16:16:44 -08:00
Andrea Luzzardi 3607fc47c3 Merge pull request #265 from vieux/no_discovery_flag
replace --discovery by argument
2015-01-21 14:28:40 -08:00
Victor Vieux 3fe99c7067 replace --discovery by argument
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-21 19:59:27 +00:00
Andrea Luzzardi 5f578aa7e0 Change app description to match GH.
Running **swarm** will yield:
```
NAME:
   swarm - a Docker-native clustering system
```

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-21 11:53:27 -08:00
Andrea Luzzardi 31a41509a4 Bump version to 0.1.0
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-21 11:52:16 -08:00
Andrea Luzzardi 6410f9ad35 Store requested state persistently.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-15 23:10:50 +00:00
Victor Vieux d8b609c161 Move overcommit outside of binpacking and use 105 instead of 0.05
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-14 00:33:49 +00:00
Victor Vieux cccbd0baea lowercase help
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-13 21:58:15 +00:00
Victor Vieux f8825b644b rename list to nodes
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-13 19:56:53 +00:00
Victor Vieux 957fce6a6c use list of IPs as a discovery
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-13 19:47:36 +00:00
Chanwit Kaewkasi 3564e38d80 add zookeeper discovery
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-01-08 19:34:46 +07:00
JChien 1a21de143f add consul support as a disovery backend
Signed-off-by: JChien <jeffchien13@gmail.com>
2014-12-31 00:16:03 +00:00
Victor Vieux 827cdf19f6 add --filter flag to specify which filter to use
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-16 21:05:15 +00:00
Andrea Luzzardi 50c194cf1f Merge pull request #174 from vieux/bind_multiple_hosts
--addr -> multiple -H + unix
2014-12-16 12:54:20 -08:00
Victor Vieux 61acf9e2d2 remove dummy author
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-16 20:46:33 +00:00
Victor Vieux 6e39962998 -addr -> multiple -H + unix
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-15 23:02:23 +00:00
Victor Vieux 875f9e7214 fix swarm create
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-13 21:10:29 +00:00
Victor Vieux b1e80ce157 add --strategy to choose the strategy to use
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-12 23:57:27 +00:00
Victor Vieux 1f9eac7fd1 Initialize in the interface
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 23:23:10 +00:00
Victor Vieux f95f943b4a use 1.5*heartbeat as TTL in etcd
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 22:18:54 +00:00
Victor Vieux c38f621425 add etcd
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 01:24:19 +00:00
Victor Vieux 3d39101ff7 allow custom url on token
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 01:24:19 +00:00
Victor Vieux 0aeb1771bd add watch interface 2014-12-11 01:24:19 +00:00
Victor Vieux ef9b509d07 add file
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 01:24:19 +00:00
Victor Vieux bb7f69fd9c First step toward modular discoevery services
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 01:24:19 +00:00
Andrea Luzzardi 39fe73a231 TLS support.
TLS authentication support between the CLI and Swarm but also between
Swarm and the Docker nodes.

Closes #148.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-12-09 13:43:25 -08:00
Victor Vieux 926e8e11f1 add --api-enable-cors on swarm manage
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-06 23:04:08 +00:00
Victor Vieux a64cf5821c fix list cluster 2014-11-20 23:59:53 +00:00
Victor Vieux 80cc51c9be fix heartbeat 2014-11-20 23:56:42 +00:00
Victor Vieux d5f6c55892 move logs 2014-11-19 01:13:54 +00:00
Victor Vieux 0f507fb783 fix package name 2014-11-18 21:40:38 +00:00
Victor Vieux 323cab0581 add 'list' 2014-11-18 19:37:28 +00:00
Victor Vieux 8411d0ed94 split main 2014-11-18 03:05:37 +00:00
Victor Vieux 216c2a7507 fix imports 2014-11-18 02:52:51 +00:00
Victor Vieux 45ca8472f1 add create command 2014-11-18 01:34:08 +00:00
Victor Vieux 05e95dfc7e cleanup main 2014-11-18 01:27:48 +00:00
Victor Vieux ed2db9a85b swarmd -> swarm
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-11-18 00:57:05 +00:00