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
Ben Firshman
24a98b0552
Pull images if they do not exist
2013-12-18 11:37:51 +00:00
Ben Firshman
785cb12833
Add missing format var in error
2013-12-18 11:15:59 +00:00
Ben Firshman
87c46e281c
Add support for specifying external port
2013-12-18 11:14:34 +00:00
Ben Firshman
120d57e856
Change plum up to plum start
2013-12-17 15:42:46 +00:00