Commit Graph

65 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
18ad9bb441 Add sleep before removing container 2015-09-06 18:14:28 -04:00
Jose Diaz-Gonzalez
418c7bfc66 Add docker kill statement back 2015-09-06 18:10:08 -04:00
Jose Diaz-Gonzalez
a311957af3 Update docs on start/stop/restart commands 2015-09-06 18:08:24 -04:00
Loïc Guitaut
16fb91cf16 Enable working expose/unexpose commands
`expose` and `unexpose` commands are now fully functionnal using the
ambassador pattern. This has the advantage to be a 100% docker solution
and to not have to restart the service container. Multiple ports are
exposed when service specify them.

`start` and `stop` commands have been made more robust. When calling
`start` or `stop` on an already started (or stopped) service, an error
will be printed out instead of issuing failing commands.

Exposed services will still be exposed after a `restart`. Also the
service containers (and ambassador containers) will start automatically
when docker boot up.
2015-09-06 15:23:04 +02:00
Loïc Guitaut
b2051f86fa Use $PLUGIN_PATH instead of dirname 2015-09-03 00:43:07 +02:00
Jose Diaz-Gonzalez
ac50d9c37c first - broken - pass at start/stop commands and working expose/expose commands
note that at the moment the iptables calls complete successfully but the container isn't actually exposed. We'll probably need to use the ambassador pattern to do this properly.
2015-08-31 15:29:23 -04:00
Jose Diaz-Gonzalez
075a39fe13 Move alias, link, unlink and logs commands into functions 2015-08-29 03:18:34 -04:00
Jose Diaz-Gonzalez
3fcdb0b869 Move service checks into commands file 2015-08-29 02:58:38 -04:00
Jose Diaz-Gonzalez
08f90bf4c6 Move info and list commands into shared functions
Also add better output formatting for both commands
2015-08-29 02:53:39 -04:00
Jose Diaz-Gonzalez
ce5e9086c2 use config for ports 2015-08-29 02:37:50 -04:00
Jose Diaz-Gonzalez
5736336276 Use central config for env vars 2015-08-29 01:52:55 -04:00
Jose Diaz-Gonzalez
53e54f0938 quiet grep output 2015-08-28 23:26:05 -04:00
Jose Diaz-Gonzalez
f13cdb52da Ensure container exists before attempting to kill it 2015-08-25 17:21:29 -04:00
Jose Diaz-Gonzalez
1f3d9a7d91 Fix logs subcommand 2015-08-23 22:07:12 -04:00
Jose Diaz-Gonzalez
c64b7c07be initial commit 2015-08-23 19:17:51 -04:00