Commit Graph

40 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
dbaeebb3f8 feat: enable env overrides for support images and update all to latest 2024-11-24 19:15:23 -05:00
Jose Diaz-Gonzalez
470e3506ec feat: respect DOKKU_LIB_HOST_ROOT for mounted data volumes
This change allows folks to change where dokku mounts data from for all official plugins, removing the need to specify the configuration on a one-off basis.

Refs dokku/dokku#5468
2022-12-26 23:49:28 -05:00
Jose Diaz-Gonzalez
66554c22d6 feat: update all related images to add arm/arm64 support 2022-10-11 23:59:25 -04:00
Jose Diaz-Gonzalez
720ddea579 feat: add ability to set container config options during create/clone/upgrade actions
Also add to documentation where possible.

Closes dokku/dokku-mongo#131
2021-09-12 22:16:14 -04:00
Jose Diaz-Gonzalez
9eca41dcd5 tests: refactor source again 2021-02-26 00:45:09 -05:00
Jose Diaz-Gonzalez
6f392df029 tests: fix path to Dockerfile when sourcing config for tests 2021-02-26 00:27:52 -05:00
Jose Diaz-Gonzalez
f1629b8b51 refactor: move base image reference to Dockerfile
This will allow us to take advantage of automatic update software to auto-pull new versions when they are released to docker hub.
2021-02-25 23:16:23 -05:00
Jose Diaz-Gonzalez
e43904641b fix: allow config directory to be configurable
For postgres, the config directory doesn't actually exist, so adding this configurability allows the plugin's info command to report correctly.
2020-05-16 02:49:34 -04:00
Jose Diaz-Gonzalez
34cbc30f63 feat: upgrade tertiary container images 2020-03-30 20:12:18 -04:00
Jose Diaz-Gonzalez
9ace27266c feat: move all image names to config file
This allows us to more quickly update the image versions in use for tertiary images.
2020-03-30 20:09:04 -04:00
Jose Diaz-Gonzalez
150591eb75 feat: update patch release of redis 2019-11-22 19:16:55 -05:00
Jose Diaz-Gonzalez
b1e5298be0 feat: upgrade to 5.0.5 2019-07-11 13:19:34 -07:00
Jose Diaz-Gonzalez
a8327c9100 fix: drop now unnecessary rm call in config
This was used to delete an errant '*' service that was accidentally created during service deletion. That was fixed in dokku/dokku-redis#126 - and the respective PRs for each service - and is thus no longer necessary.

The fix was done by utilizing pushd when iterating over folders instead of trying to get a subdirectory with a partially quoted path.

Closes dokku/dokku-redis#130
2019-06-08 15:53:54 +02:00
Jose Diaz-Gonzalez
8c00ac34a3 feat: upgrade image version in use 2019-04-19 12:47:38 -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
894b17ec2a feat: upgrade to redis 4.0.11 2018-10-10 23:19:32 -04:00
Jose Diaz-Gonzalez
fdb90b85a3 refactor: move unimplemented command detection into config file 2018-04-24 00:27:28 -04:00
Jose Diaz-Gonzalez
d675c99b80 refactor: allow usage of the same variable to disable docker pulls 2018-04-23 06:57:00 -04:00
Jody McIntyre
deb9317edf Support a separate data root for Docker binds
We run Dokku, and therefore dokku redis, in its own Docker container.
In order to make this work we map a path from the host into the
container as `/var/lib/dokku/services/redis`. Unfortunately the path
on the host is user-configurable, and generally _won't_ be the same
as the path in the container. This means that when we run `docker`
commands (e.g. to spin up Redis containers), the directory used for
bind mounts (the `-v` option) needs to be different.

This commit allows us to do this, but keeps the existing behaviour
(the redis root for Docker binds is the same as the redis root for
other uses) by default.
2018-04-10 20:44:59 -04:00
dhose
8bd08fa2ff Upgrading Redis to version 4.0.8. 2018-02-07 20:31:18 +01:00
Jose Diaz-Gonzalez
178d23617b fix: ensure we create the config directory 2017-09-11 07:14:01 -04:00
Jose Diaz-Gonzalez
740c9379a8 feat: prepare ground for config directory changes 2017-09-11 03:53:10 -04:00
Mike Schroll
34d63fd2c6 Updated all instances of 3.2.5 to 3.2.8 2017-04-21 00:57:47 -04:00
Jakob Krigovsky
79c9542fb8 Update Redis to v3.2.5 2016-12-03 14:01:06 +01:00
Jose Diaz-Gonzalez
fdc927203c feat: add s3 backup support 2016-10-31 11:39:36 -06:00
Jose Diaz-Gonzalez
4427c31e3f Upgrade docker image 2016-08-27 21:44:20 -04:00
Jose Diaz-Gonzalez
5ff2445998 Downgrade redis 2016-08-27 21:20:45 -04:00
Jose Diaz-Gonzalez
36762e69af Update docker image 2016-08-27 16:31:20 -04:00
Jose Diaz-Gonzalez
eee9cb2be5 Only wait for a single port 2016-08-26 23:05:42 -04:00
Jose Diaz-Gonzalez
cacef19db7 Always remove * directory 2016-05-23 21:14:17 -04:00
Jose Diaz-Gonzalez
1600896956 Move setting of PLUGIN_BASE_PATH to config 2016-05-15 18:44:00 -04:00
Mike Schroll
8e47169fb8 Updated to 3.0.7 2016-04-12 10:30:43 -04:00
Jose Diaz-Gonzalez
1b3daa861e Upgrade image version to 3.0.6 2016-01-17 01:08:06 -05:00
Jose Diaz-Gonzalez
2e7a3ce709 Use redis 3.0.5
Closes #30
2015-10-26 22:00:25 -04: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
f16e55e1a2 Fix overlapping exported config
If using multiple official dokku datastorage plugins, it is possible to get into a case where the `PLUGIN_DATA_ROOT` would be set incorrectly for other plugins.

Refs dokku/dokku-redis#20
2015-09-23 14:38:04 -04:00
Jose Diaz-Gonzalez
d10e951165 Upgrade to redis 3.0.4 2015-09-15 01:50:54 -07:00
Jose Diaz-Gonzalez
7592609d07 respect PLUGIN_DATA_ROOT env var 2015-09-07 00:25:03 -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
Jose Diaz-Gonzalez
c2530b3b24 add central place for configuration 2015-08-29 01:51:06 -04:00