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
Victor Vieux
43accba357
refactor swarmd
2014-11-18 00:46:58 +00:00
Andrea Luzzardi
670dc7f59b
Node: Fix a bug in containers update.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 16:49:05 -08:00
Victor Vieux
a0841874c5
add basic discovery client
2014-11-17 21:46:03 +00:00
Andrea Luzzardi
855598f2ac
swarmd: Switch to bin packing by default.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:35:24 -08:00
Andrea Luzzardi
cb66a5d8fe
Scheduling: Experimental bin packing algorithm.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:59 -08:00
Andrea Luzzardi
0577135ea9
scheduler: Pass the strategy and filters as a creation argument.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:59 -08:00
Andrea Luzzardi
6585d4cfb6
Node: Expose reserved memory and CPUs.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:08 -08:00
Andrea Luzzardi
004450a910
Make the random placement strategy truly random.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:08 -08:00
Andrea Luzzardi
a387265978
Embed the extended container information into Container.
...
At startup, inspect all containers and store the data into the
Container. When new containers are detected, inspect them as well.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:08 -08:00
Andrea Luzzardi
3241872d75
Node.Pull() naming cleanup.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:08 -08:00
Victor Vieux
b4f2216f22
use scheduler when removing container
2014-11-15 01:17:19 +00:00
Victor Vieux
42198c779e
prevent container scheduling without -c/-m
2014-11-15 01:14:43 +00:00
Victor Vieux
60a80c0c84
add EventsListeners in docker info
2014-11-15 00:16:50 +00:00
Victor Vieux
de6a1d9c1a
events
2014-11-15 00:05:55 +00:00
Andrea Luzzardi
c6af7ce445
Integrate the scheduler into the API.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-14 15:56:17 -08:00
Andrea Luzzardi
006f5e7118
Initial scheduler implementation.
...
The scheduler is composed of filters (to apply constraints) and a
placement strategy (random, bin packing, ...).
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-14 15:51:39 -08:00
Victor Vieux
23fa208ab9
cleanup docker info
2014-11-14 22:09:55 +00:00
Victor Vieux
6ccc94fa01
use private types
2014-11-14 00:40:36 +00:00
Victor Vieux
2a4635a1a5
allow future CORS
2014-11-14 00:37:03 +00:00
Victor Vieux
0a969d2be7
add log fataler to swarmd
2014-11-14 00:15:13 +00:00
Victor Vieux
498543bfd2
replace print by log
2014-11-13 19:42:18 +00:00
Victor Vieux
39b83819aa
append node ID to names
2014-11-13 02:52:00 +00:00
Victor Vieux
2aa28cf8a1
replace 0.0.0.0 by node IP
2014-11-13 02:42:13 +00:00
Victor Vieux
7cfc20a662
add pause/unpause
2014-11-13 02:07:20 +00:00
Andrea Luzzardi
56729ae150
API: docker start support.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-12 17:54:53 -08:00
Andrea Luzzardi
cd7b9e571c
API: Pass an HttpApiContext to every handler.
...
Instead of directly passing a cluster to every handler, pass a struct
the API owns. This makes adding additional data easier.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-12 17:52:05 -08:00
Victor Vieux
9e60bdd877
fix with the new dockerclient version
2014-11-13 00:46:51 +00:00
Victor Vieux
6d8ecbeff6
add basic remove
2014-11-12 01:56:08 +00:00
Victor Vieux
8f5f76ae41
add logrus
2014-11-12 01:37:01 +00:00
Victor Vieux
741f7adb56
add back inspect and the redirections
2014-11-11 21:41:13 +00:00
Victor Vieux
fcb7bd97ad
add info
2014-11-11 17:33:15 +00:00
Victor Vieux
66ebc5fd0a
remove image.go
2014-11-11 02:59:24 +00:00
Victor Vieux
a913f40d39
inherit from sync
2014-11-11 01:54:48 +00:00
Andrea Luzzardi
8390cc6ef7
API: Add support for ps.
...
Implemented simple support for docker ps. The only flag currently
handled is -a.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-10 16:27:28 -08:00
Andrea Luzzardi
4a7068d94a
Cluster: Implemented support to return a list of all containers
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-10 16:25:09 -08:00
Andrea Luzzardi
74c23faeeb
node: Put a reference to the node in containers
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-10 16:23:42 -08:00
Andrea Luzzardi
43a328c060
container: Embed a copy of the dockerclient.Container
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-10 16:22:59 -08:00
Andrea Luzzardi
e4fc142d73
Node UTs: Verify the containers by id in state tests.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-10 16:21:52 -08:00
Andrea Luzzardi
2a755a1c1a
Upgraded dockerclient API.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-10 14:11:33 -08:00
Andrea Luzzardi
05864a3b2a
Initial commit.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-07 16:41:33 -08:00