Commit Graph

122 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
1b3daa861e Upgrade image version to 3.0.6 2016-01-17 01:08:06 -05:00
Jose Diaz-Gonzalez
e3b0228881 Add support for custom environment variables when starting a service container 2015-11-05 01:23:17 -05:00
Jose Diaz-Gonzalez
4aeb0f1e8c Update README.md -> <file> arg for export command 2015-10-29 15:56:30 -04:00
Jose Diaz-Gonzalez
02b412bc9d Merge pull request #31 from dokku/josegonzalez-patch-1
Use redis 3.0.5
2015-10-26 22:17:58 -04:00
Jose Diaz-Gonzalez
2e7a3ce709 Use redis 3.0.5
Closes #30
2015-10-26 22:00:25 -04:00
Loïc Guitaut
4e606e88b5 Update README about docker env var 2015-10-21 16:24:55 +02: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
John Franey
5a8df6f1c3 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 09:19:41 -03:00
Jose Diaz-Gonzalez
2cc967c1c5 Update README.md 2015-09-22 12:08:46 -04:00
Jose Diaz-Gonzalez
0b0f90a92a Remove completed todos 2015-09-16 15:12:40 -07:00
Jose Diaz-Gonzalez
0f9a938b97 Mention that the plugin defaults to installing a version 2015-09-15 02:02:21 -07:00
Jose Diaz-Gonzalez
d10e951165 Upgrade to redis 3.0.4 2015-09-15 01:50:54 -07:00
Loïc Guitaut
57e4b08158 Add export, import and clone commands 2015-09-13 23:43:04 +02:00
Jose Diaz-Gonzalez
a2609c2a3c Add link to docker hub entry 2015-09-07 04:21:14 -04:00
Jose Diaz-Gonzalez
c8875b5d3e 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:13:51 -04:00
Jose Diaz-Gonzalez
09e8c0925e Use master branch 2015-09-07 01:17:23 -04:00
Jose Diaz-Gonzalez
6cb0901ec9 Add badges 2015-09-07 01:13:07 -04:00
Jose Diaz-Gonzalez
c2f115df86 fix name of container in readme 2015-09-06 18:19:22 -04:00
Jose Diaz-Gonzalez
a311957af3 Update docs on start/stop/restart commands 2015-09-06 18:08:24 -04:00
Jose Diaz-Gonzalez
cf9b8a9a59 Add expose/unexpose to readme 2015-09-06 18:08:02 -04:00
Jose Diaz-Gonzalez
52114da734 Remove -plugin suffix from clone url 2015-08-25 14:04:45 -04:00
Jose Diaz-Gonzalez
c64b7c07be initial commit 2015-08-23 19:17:51 -04:00