Commit Graph

21 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
c41bcc9c1b 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
02b0c1c7f9 refactor: move unimplemented command detection into config file 2018-04-24 00:27:17 -04:00
Jose Diaz-Gonzalez
94221b71ce refactor: allow usage of the same variable to disable docker pulls 2018-04-23 06:56:41 -04:00
Jose Diaz-Gonzalez
793087097d 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:22:30 -04:00
Jose Diaz-Gonzalez
83df40711c fix: ensure we create the config directory 2017-09-11 07:13:46 -04:00
Jose Diaz-Gonzalez
e03975062a feat: prepare ground for config directory changes 2017-09-11 03:52:56 -04:00
Jose Diaz-Gonzalez
cc5fac0376 feat: add s3 backup support 2016-10-31 11:39:25 -06:00
Jose Diaz-Gonzalez
f4ebe1caf9 Update docker image 2016-08-27 16:27:38 -04:00
Jose Diaz-Gonzalez
01210083dc Only wait for a single port 2016-08-26 23:05:27 -04:00
Jose Diaz-Gonzalez
07e6a7d062 Always remove * directory 2016-05-23 21:13:07 -04:00
Jose Diaz-Gonzalez
2a33fda40f Move setting of PLUGIN_BASE_PATH to config 2016-05-15 18:36:13 -04:00
Jose Diaz-Gonzalez
499d8ba786 Downgrade mysql. Refs #56 2016-05-11 12:36:53 -04:00
Jose Diaz-Gonzalez
4d074fe007 upgrade mariadb to 5.7.12 2016-05-06 14:03:48 -04:00
Jose Diaz-Gonzalez
d8726cc3e6 Upgrade image version to 5.7.10 2016-01-17 01:45:18 -05:00
Loïc Guitaut
13329f3e42 Revamp link/unlink commands
Previously we were exporting `DATABASE_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 `DATABASE_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 `DATABASE_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_MYSQL_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-09-30 23:05:16 +02:00
Jose Diaz-Gonzalez
9146dd21d3 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:44 -04:00
Jose Diaz-Gonzalez
ce2b77c18a Use latest stable mysql image
5.7.x is a preview release
2015-09-15 01:54:28 -07:00
Jose Diaz-Gonzalez
5e50305b2b Require Mysql 5.7.8 2015-09-07 04:18:42 -04:00
Jose Diaz-Gonzalez
376ed47729 Fix tests 2015-09-07 01:00:53 -04:00
Jose Diaz-Gonzalez
a9316bf1f8 Properly implement port expose/unexpose 2015-09-06 21:57:54 -04:00
Jose Diaz-Gonzalez
0db07a676d add central place for configuration 2015-08-29 01:51:08 -04:00