97 Commits

Author SHA1 Message Date
Aanand Prasad
0cafdc9c6c plum -> fig 2013-12-20 20:28:24 +00:00
Aanand Prasad
4d35d47969 Fix a couple of typos in README 2013-12-20 20:04:37 +00:00
Aanand Prasad
13a30c327a Container.name strips the leading slash 2013-12-20 19:33:41 +00:00
Aanand Prasad
8291d36eaf Fix stray test regression 2013-12-20 19:30:31 +00:00
Aanand Prasad
08e4468bdb Clean up the help banners a bit 2013-12-20 19:15:12 +00:00
Aanand Prasad
94cae10417 ps and logs can filter by service too 2013-12-20 19:13:55 +00:00
Aanand Prasad
d3346fa174 up, start, stop, kill and rm all accept a list of services 2013-12-20 18:32:55 +00:00
Aanand Prasad
81093627fe Implement kill and rm 2013-12-20 18:30:59 +00:00
Aanand Prasad
a4710fa9e1 'plum up' is now the special magic
'start' and 'stop' are now analogous to their Docker namesakes.
2013-12-20 18:30:59 +00:00
Aanand Prasad
3bebd18de7 Show help banner if no command given 2013-12-20 18:30:59 +00:00
Ben Firshman
791028866c Update readme to reflect how it currently works 2013-12-20 18:10:30 +00:00
Ben Firshman
507940535f Tag built images and use them when starting
A basic measure to get round the fact that adding isn't cached. Once
Docker supports cached adds, this is probably redundant.
2013-12-20 16:23:40 +00:00
Ben Firshman
76b6354173 Add requirements-dev.txt 2013-12-20 16:18:44 +00:00
Ben Firshman
abfb3b800f Interactive plum run 2013-12-20 15:03:01 +00:00
Ben Firshman
326438b170 Pick correct numbers for one off containers 2013-12-20 12:55:45 +00:00
Ben Firshman
15f12c6e2c Ignore containers without names 2013-12-20 12:51:32 +00:00
Aanand Prasad
86e551f2e2 Attach with websocket and do manual line buffering
This works around the odd byte sequences we see at the beginning of
every chunk when attaching via the streaming HTTP endpoint and a plain
socket.
2013-12-20 11:13:26 +00:00
Aanand Prasad
aa7a5a1487 Small refactor for clarity 2013-12-20 11:13:26 +00:00
Ben Firshman
4a729fe47f Document logs command 2013-12-20 10:57:28 +00:00
Ben Firshman
ea09ec672c Add detached mode to run 2013-12-20 10:53:07 +00:00
Ben Firshman
2f28265d10 Add support for differentiating one-off containers
This is a basic start, the API is pretty shonky.
2013-12-20 10:46:55 +00:00
Ben Firshman
68e4341fbf Compile name regex 2013-12-19 20:09:54 +00:00
Ben Firshman
bdf99cd443 Move log messages to container 2013-12-19 18:20:48 +00:00
Ben Firshman
5a46278f79 Fix project name getting overridden with service 2013-12-19 16:56:58 +00:00
Ben Firshman
2d2d81d33f Rename "service collection" to "project" 2013-12-19 16:55:12 +00:00
Aanand Prasad
818728b825 Mount volumes 2013-12-19 15:53:43 +00:00
Ben Firshman
d6db049b42 Generate project name based on current dir 2013-12-19 15:32:24 +00:00
Ben Firshman
c488710625 Add project option to services 2013-12-19 15:16:17 +00:00
Ben Firshman
6c551a200b Do not allow underscores in names 2013-12-19 14:47:43 +00:00
Aanand Prasad
9f1d08c54b Implement --version flag 2013-12-19 13:06:31 +00:00
Aanand Prasad
9e9a20b227 Remove unused imports 2013-12-19 13:06:31 +00:00
Ben Firshman
9cf1d232b2 Better ps output 2013-12-19 13:03:44 +00:00
Aanand Prasad
bac37a19e3 Fix method name in start() 2013-12-19 12:39:23 +00:00
Aanand Prasad
ae0fa0c447 Hide stack traces for Docker API errors 2013-12-19 12:36:38 +00:00
Aanand Prasad
fb69512008 Set port_bindings to None when starting a one-off container in 'plum run' 2013-12-19 12:26:58 +00:00
Aanand Prasad
beaa1dbc14 Fix run: use Container.logs(), explicitly start container 2013-12-19 12:26:13 +00:00
Aanand Prasad
730f9772f9 plum start runs in foreground by default
Also fixed LogPrinter regressions. Sorry for not doing that in a
separate commit.

Also made 'plum logs' show backlog. Yep, rolled that right in too. Gonna
go whip myself now.
2013-12-18 19:03:34 +00:00
Ben Firshman
26ea08087a Remove build target from logs 2013-12-18 18:46:53 +00:00
Ben Firshman
dd767aef34 Remove extraneous new lines when building 2013-12-18 18:45:25 +00:00
Ben Firshman
f89e4bc70f Add quotes to build output 2013-12-18 18:44:33 +00:00
Ben Firshman
a5fc880d10 Refactor service to add a container object 2013-12-18 18:37:48 +00:00
Ben Firshman
5e1e4a71e0 Rename ServiceTest 2013-12-18 17:01:50 +00:00
Aanand Prasad
e5642bd8b7 Show a sensible error when an unknown service name is given to 'run' 2013-12-18 16:20:03 +00:00
Aanand Prasad
4cc906fcd2 ps only lists running containers 2013-12-18 16:20:03 +00:00
Aanand Prasad
64253a8290 Basic log output 2013-12-18 16:20:03 +00:00
Aanand Prasad
23c3dc430b Add texttable to requirements.txt 2013-12-18 16:20:03 +00:00
Aanand Prasad
f0df5c6079 Refactor container retrieval / name parsing 2013-12-18 16:20:03 +00:00
Ben Firshman
3458dd2fad Print build output 2013-12-18 16:12:53 +00:00
Ben Firshman
cb366eed7a Add logging to start and stop 2013-12-18 13:13:40 +00:00
Ben Firshman
90130eec65 Ignore non-plum containers 2013-12-18 12:01:54 +00:00