Commit Graph

167 Commits

Author SHA1 Message Date
Loïc Guitaut
bd2bad8e1a Add tests for every command 2015-09-09 17:30:14 +02:00
Loïc Guitaut
cc5c7fee25 Ability to echo back invoked command for docker
By setting `ECHO_DOCKER_COMMAND` to `true`, the mocked docker binary
will echo back the command used to call it instead of mocking a
response.
2015-09-09 17:30:14 +02:00
Loïc Guitaut
2a9f715eed Use aanand/wait image to wait for service to be ready 2015-09-09 17:30:14 +02:00
Jose Diaz-Gonzalez
cb36b55e29 Merge pull request #2 from dokku/lg-remove-docker-kill
Remove call to `docker kill`
2015-09-09 11:26:22 -04:00
Jose Diaz-Gonzalez
491f144086 Merge pull request #4 from dokku/lg-use-cli-from-docker
Remove dependencies & warning
2015-09-08 09:56:19 -04:00
Loïc Guitaut
9c64894ba6 Don’t display a warning when exposing ports 2015-09-08 11:10:47 +02:00
Loïc Guitaut
e76bb13edf Use redis-cli from docker image
Instead of installing dependencies on the host, directly use the binary
shipped with the redis docker image. This will also prevent possible
problems when API change for example.
2015-09-08 10:34:29 +02:00
Jose Diaz-Gonzalez
803b66e8ae Merge pull request #3 from dokku/lg-ports-info-in-list
Display which ports are exposed in `list`
2015-09-07 18:50:50 -04:00
Loïc Guitaut
151520d9ca Display which ports are exposed in list 2015-09-08 00:29:35 +02:00
Jose Diaz-Gonzalez
e1d3651199 Add plugin.toml 2015-09-07 04:29:54 -04:00
Loïc Guitaut
2ecc9df262 Remove call to docker kill 2015-09-07 10:28:23 +02:00
Jose Diaz-Gonzalez
a2609c2a3c Add link to docker hub entry 2015-09-07 04:21:14 -04:00
Jose Diaz-Gonzalez
c8875b5d3e Update requirements
- dokku 0.4.0 does not yet exist, so this should dissuade people from installing this plugin.
- docker 1.8.x cannot be installed with the official dokku debian packages, so this means that for now users will need to install from source.
2015-09-07 04:13:51 -04:00
Jose Diaz-Gonzalez
09e8c0925e Use master branch 2015-09-07 01:17:23 -04:00
Jose Diaz-Gonzalez
6cb0901ec9 Add badges 2015-09-07 01:13:07 -04:00
Jose Diaz-Gonzalez
4f6f9ad5ca update docker binstub output 2015-09-07 00:56:53 -04:00
Jose Diaz-Gonzalez
fa37a78385 formatting 2015-09-07 00:35:07 -04:00
Jose Diaz-Gonzalez
1e37391cb9 use PLUGIN_COMMAND_PREFIX instead of SERVICE for command prefix 2015-09-07 00:35:00 -04:00
Jose Diaz-Gonzalez
7592609d07 respect PLUGIN_DATA_ROOT env var 2015-09-07 00:25:03 -04:00
Jose Diaz-Gonzalez
c37e99f77c set PLUGIN_DATA_ROOT to fixtures directory 2015-09-07 00:20:39 -04:00
Jose Diaz-Gonzalez
8c0bbb3128 binstub for redis-cli 2015-09-07 00:20:28 -04:00
Jose Diaz-Gonzalez
b777ed6793 fix docker ps output 2015-09-07 00:17:49 -04:00
Jose Diaz-Gonzalez
1cc05817b7 Use docker binstub instead of running install and dependencies 2015-09-07 00:15:59 -04:00
Jose Diaz-Gonzalez
ade1765a3a Install dependencies and docker images 2015-09-06 23:51:51 -04:00
Jose Diaz-Gonzalez
50f9c2f5ef simplify test structure and add bin stubs 2015-09-06 23:45:57 -04:00
Jose Diaz-Gonzalez
bbdb6b05b1 Do not allow master to ever fail 2015-09-06 23:40:01 -04:00
Jose Diaz-Gonzalez
909888ec45 Fix paths 2015-09-06 23:39:04 -04:00
Jose Diaz-Gonzalez
2983d4767e fix path 2015-09-06 23:32:38 -04:00
Jose Diaz-Gonzalez
0ec0d8f008 run setup before tests 2015-09-06 23:32:33 -04:00
Jose Diaz-Gonzalez
706ca6d134 move ci-dependencies to setup 2015-09-06 23:32:28 -04:00
Jose Diaz-Gonzalez
2c66d0371b sudo is required 2015-09-06 23:28:44 -04:00
Jose Diaz-Gonzalez
4eb3c9cdd6 Initial test setup 2015-09-06 23:27:34 -04:00
Jose Diaz-Gonzalez
72222dddf9 self-contained "testing" infrastructure 2015-09-06 23:25:07 -04:00
Jose Diaz-Gonzalez
7f8b77d4df reorder shellcheck excludes 2015-09-06 22:50:53 -04:00
Jose Diaz-Gonzalez
e168d5222a make test 2015-09-06 22:49:07 -04:00
Jose Diaz-Gonzalez
81280ea224 Fix lint 2015-09-06 22:48:56 -04:00
Jose Diaz-Gonzalez
89fbc799e2 run linting 2015-09-06 22:36:32 -04:00
Jose Diaz-Gonzalez
89b48a2e3b Service must be started before we can call unpause 2015-09-06 20:42:23 -04:00
Jose Diaz-Gonzalez
75b36f2781 Merge pull request #1 from dokku/service-expose
Service expose/unexpose
2015-09-06 20:21:43 -04:00
Jose Diaz-Gonzalez
f0c800b81d Do not fail on service_start when a service is already started
The desired state already exists, so this isn't strictly an error state.
2015-09-06 19:59:01 -04:00
Jose Diaz-Gonzalez
61d61eae70 Do not fail on service_stop when a service is already stopped
The desired state already exists, so this isn't strictly an error state.
2015-09-06 19:39:41 -04:00
Jose Diaz-Gonzalez
f72bf5402d Label running containers
This will avoid issues where `dokku cleanup` removes the stopped containers (it should not do so, and instead should allow them to stay in stopped mode).

Containers will be labeled as follows:

- service: dokku=service dokku.service=SERVICE_NAME
- ambassador: dokku=ambassador dokku.ambassador=SERVICE_NAME

To destroy the containers, simply run the `service:destroy` command.
2015-09-06 19:29:28 -04:00
Jose Diaz-Gonzalez
2289c5f3dc Allow docker kill command to fail 2015-09-06 19:27:04 -04:00
Jose Diaz-Gonzalez
b457a82256 Ensure container is running before attempting to delete files in the container 2015-09-06 19:26:50 -04:00
Jose Diaz-Gonzalez
f1ac4bbe71 Fix logging output for start/stop of container 2015-09-06 18:23:52 -04:00
Jose Diaz-Gonzalez
d1f6f64f23 Pull the ambassador image 2015-09-06 18:19:35 -04:00
Jose Diaz-Gonzalez
c2f115df86 fix name of container in readme 2015-09-06 18:19:22 -04:00
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