Commit Graph

16 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
ad42950980 Add support for custom environment variables when starting a service container 2015-11-05 01:21:43 -05:00
Jose Diaz-Gonzalez
cfb9fa2499 Update README.md -> <file> arg for export command 2015-10-29 15:56:35 -04:00
Loïc Guitaut
fab263e0fa Update README about docker env var 2015-10-21 16:23:10 +02: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
f12047b78b Update README.md
Add a note explaining how to examine the environment variables (through `dokku run my-app env` rather than `dokku config my-app`)
2015-09-24 12:06:47 -04:00
Jose Diaz-Gonzalez
1b53acf30a Update installation documentation 2015-09-22 12:07:32 -04:00
Jose Diaz-Gonzalez
7970106c58 Remove completed todos 2015-09-16 15:11:33 -07:00
Jose Diaz-Gonzalez
40155bd9e9 Mention that the plugin defaults to installing a version 2015-09-15 02:02:15 -07: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
d1ae986d8c Fix documentation on export/import/clone 2015-09-14 19:43:30 -04:00
Jose Diaz-Gonzalez
4db5ca7050 Add link to docker hub entry 2015-09-07 04:19:04 -04:00
Jose Diaz-Gonzalez
a91af619f5 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:14:01 -04:00
Jose Diaz-Gonzalez
63a15aa51c Add badges 2015-09-07 01:15:38 -04:00
Jose Diaz-Gonzalez
a9316bf1f8 Properly implement port expose/unexpose 2015-09-06 21:57:54 -04:00
Jose Diaz-Gonzalez
1c33231773 Remove -plugin suffix from clone url 2015-08-25 14:04:35 -04:00
Jose Diaz-Gonzalez
1fcd7dee4a initial commit 2015-08-23 18:56:11 -04:00