Commit Graph

17 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
43d0987322 feat: add support for network related flags on create, clone, and upgrade
Also add some tests to cover all the network-related functionality.
2023-02-08 00:03:25 -05:00
Jose Diaz-Gonzalez
7ddd0c9201 chore: run shfmt 2019-05-30 11:06:25 -04:00
Jose Diaz-Gonzalez
744e65760b feat: Real docker-based testing
This pull request switches testing to use an actual docker daemon, vs mocking everything out.

It may also catch actual breaking issues in our tests, which is great!
2019-03-18 14:44:28 -04:00
Jose Diaz-Gonzalez
3fc6322b02 fix: correct issues in upgrade and fix tests 2018-10-11 14:16:47 -04:00
Jose Diaz-Gonzalez
99307312c9 fix: Properly handle updated config functions
Closes dokku/dokku-redis#90
2018-01-12 06:08:57 -05:00
Jose Diaz-Gonzalez
178d23617b fix: ensure we create the config directory 2017-09-11 07:14:01 -04:00
Jose Diaz-Gonzalez
cff35dd8bf feat: upgrade plugn 2017-08-26 04:19:37 -04:00
Jose Diaz-Gonzalez
fb3ff0f5a5 Add support for flags on the service:info command 2016-08-28 05:33:28 -04:00
Jose Diaz-Gonzalez
fd112305d9 Download correct version of plugn when running tests under OS X 2016-05-08 01:34:40 -04:00
Jose Diaz-Gonzalez
06ff6c013f Upgrade plugn 2016-01-17 21:06:45 -05:00
Loïc Guitaut
baeea96731 Revamp link/unlink commands
Previously we were exporting `REDIS_URL` via the docker-args* hooks.
This seems to confuse our users (since the env var is not displayed
when calling `dokku config`) and in some cases it also seems that the
env var is not correctly set.
Another problem is if several services are linked to the same app and
if they are exporting `REDIS_URL` as well. Then we don’t know what
will be set.

To resolve theses issues, this patch changes the way we manage the env
vars. We use standard dokku commands (`config` and `docker-options`) so
config is set on the linked application and can be reviewed by the user
easily.
We also handle the case where `REDIS_URL` is already set on the
linked application. When it’s the case, we automatically generate
another env var based on the following pattern: DOKKU_<service
name>_<random unused color>_URL. For example, this can give:
DOKKU_REDIS_BLACK_URL.

Since naming is now handled automatically, the `alias` command has been
removed. If the user wants to set a different env var on her app, it’s
just a matter of using `dokku config:set` and pasting the wanted value.

IP in DSN has been removed in favor of host name exported by docker in
the container. This is more robust and simpler since the IP can change
but the name will remain the same if the service container restarts for
instance.

With all those changes, a new command has been introduced: `promote`.
The goal of this command is to easily set a service as the primary one
when several are linked to an app. (see README for an example)
2015-10-05 15:29:36 +02:00
Jose Diaz-Gonzalez
37b84c3aa9 Set REDIS_ROOT environment variable as well
Since PLUGIN_DATA_ROOT is not directly overrideable anymore, we need to *also* set this env var here.
2015-09-23 15:03:58 -04:00
Loïc Guitaut
b4564e57a1 Add compatibility for tests with dokku 0.4+ 2015-09-15 23:08:57 +02:00
Loïc Guitaut
bd2bad8e1a Add tests for every command 2015-09-09 17:30:14 +02: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
c37e99f77c set PLUGIN_DATA_ROOT to fixtures directory 2015-09-07 00:20:39 -04:00
Jose Diaz-Gonzalez
50f9c2f5ef simplify test structure and add bin stubs 2015-09-06 23:45:57 -04:00