Commit Graph

38 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
6d373b9a62 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
58be2cc4bf feat: update all related images to add arm/arm64 support 2022-10-11 23:59:25 -04:00
Jose Diaz-Gonzalez
4d6972fd4b tests: refactor source again 2021-02-26 00:45:09 -05:00
Jose Diaz-Gonzalez
6822c923a0 tests: fix path to Dockerfile when sourcing config for tests 2021-02-26 00:27:52 -05:00
Jose Diaz-Gonzalez
aa2b3c8b86 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
31ade32c05 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
22dd667b2c feat: upgrade tertiary container images 2020-03-30 20:12:18 -04:00
Jose Diaz-Gonzalez
61664799dd 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:03 -04:00
Jose Diaz-Gonzalez
fdd9ec0ee4 feat: update patch release of mongo 2019-11-22 19:20:04 -05:00
Jose Diaz-Gonzalez
c36d9d37b9 feat: upgrade to 3.6.13 2019-07-11 13:25:30 -07:00
Jose Diaz-Gonzalez
70b5e3d0d2 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
856dbcb93d feat: upgrade image version in use 2019-04-19 12:48:07 -04:00
Jose Diaz-Gonzalez
9b8fabc2e7 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:27 -04:00
Jose Diaz-Gonzalez
df593ec155 refactor: move unimplemented command detection into config file 2018-04-24 00:27:14 -04:00
Jose Diaz-Gonzalez
58557dcd91 refactor: allow usage of the same variable to disable docker pulls 2018-04-23 06:56:36 -04:00
Jose Diaz-Gonzalez
c14cff0342 feat: support a separate data root for Docker bind mounts
This does not fix the :backup subcommand, which uses a temporary directory mounted to /backup.
2018-04-10 23:10:24 -04:00
Joseph Cutrono
824ac954d2 Revert "Merge pull request #1 from jtcmedia/master"
This reverts commit 06fbe91786, reversing
changes made to 75571ad7f2.
2017-11-30 23:03:13 -05:00
Joseph Cutrono
1db219ca86 using 3.4.10 2017-11-30 22:34:28 -05:00
Joseph Cutrono
75571ad7f2 using gzip as standard for backup and restore. upgrading mongo version. 2017-10-23 00:13:04 -04:00
Jose Diaz-Gonzalez
bfa7e0d31e fix: ensure we create the config directory 2017-09-11 07:13:41 -04:00
Jose Diaz-Gonzalez
bc37291bcb feat: prepare ground for config directory changes 2017-09-11 03:52:52 -04:00
Jose Diaz-Gonzalez
f001535060 feat: add s3 backup support 2016-10-31 11:39:22 -06:00
Jose Diaz-Gonzalez
b18797ed3e Update docker image 2016-08-27 16:27:28 -04:00
Jose Diaz-Gonzalez
df77033516 Only wait for a single port 2016-08-26 23:05:22 -04:00
Jose Diaz-Gonzalez
f5962b2b68 Always remove * directory 2016-05-23 21:12:48 -04:00
Jose Diaz-Gonzalez
3ed0c73bd9 Move setting of PLUGIN_BASE_PATH to config 2016-05-15 18:36:44 -04:00
Jose Diaz-Gonzalez
6eba229b7f upgrade mongo to 3.2.6 2016-05-06 14:15:31 -04:00
Jose Diaz-Gonzalez
c1b6b7217e Upgrade image version to 3.2.1 2016-01-17 01:54:00 -05:00
Elliot Chong
97b624ccbc Upgrading default MongoDB version to 3.2.0 2015-12-18 12:50:07 -08:00
Jose Diaz-Gonzalez
277a5c08b3 Default to wiredTiger storage engine 2015-10-05 14:05:33 -04:00
Jose Diaz-Gonzalez
d4e05464e6 Add MONGO_CONFIG_OPTIONS env var
This will allow users to configure runtime options for mongodb
2015-10-05 14:04:27 -04:00
Loïc Guitaut
5eed4378aa Revamp link/unlink commands
Previously we were exporting `MONGO_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 `MONGO_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 `MONGO_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_MONGO_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 18:11:25 +02:00
Jose Diaz-Gonzalez
9e227852fb 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:37:53 -04:00
Loïc Guitaut
0125d62529 Use latest stable release of MongoDB
3.0.6 is latest stable, 3.1.7 is a development version.
2015-09-14 23:32:54 +02:00
Jose Diaz-Gonzalez
118166012f Upgrade mongo version 2015-09-07 04:19:47 -04:00
Jose Diaz-Gonzalez
6190b8a341 Fix tests 2015-09-07 01:00:59 -04:00
Jose Diaz-Gonzalez
0e06e6756a Properly implement port expose/unexpose 2015-09-06 21:56:13 -04:00
Jose Diaz-Gonzalez
f6b98c1066 add central place for configuration 2015-08-29 01:51:09 -04:00