Commit Graph

121 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
b1f3673ecd Update README.md -> <file> arg for export command 2015-10-29 15:56:36 -04:00
Loïc Guitaut
f1d92b60c1 Update README about docker env var 2015-10-21 16:22:42 +02:00
Jose Diaz-Gonzalez
08c7165084 Document MONGO_CONFIG_OPTIONS for older versions of mongodb
Refs #25
Refs #29
2015-10-20 22:58:31 -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
0aad4e9c82 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:05:55 -04:00
Jose Diaz-Gonzalez
5bd4f4f708 Update README.md 2015-09-22 12:08:30 -04:00
Jose Diaz-Gonzalez
975643861d Remove completed todos 2015-09-16 15:12:11 -07:00
Loïc Guitaut
31cefc9387 Use authentication when creating database 2015-09-15 22:38:19 +02:00
Jose Diaz-Gonzalez
a362278962 Fix MONGO_URL in readme 2015-09-15 02:05:40 -07:00
Jose Diaz-Gonzalez
2bc1257baf Mention that the plugin defaults to installing a version 2015-09-15 02:00:53 -07:00
Jose Diaz-Gonzalez
467495d994 $PLUGIN_SERVICE => mongo 2015-09-14 19:51:07 -04:00
Jose Diaz-Gonzalez
20a458cc45 Merge pull request #6 from Flink/lg-import-export-clone
Implement `export`, `import` and `clone` commands
2015-09-14 19:36:08 -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
Loïc Guitaut
61f2afb099 Implement export, import and clone commands 2015-09-14 23:12:40 +02:00
Jose Diaz-Gonzalez
cc7ba55176 Add link to docker hub entry 2015-09-07 04:20:05 -04:00
Jose Diaz-Gonzalez
77f57c6d3a 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:58 -04:00
Jose Diaz-Gonzalez
07ead225cb Add badges 2015-09-07 01:15:28 -04:00
Jose Diaz-Gonzalez
0e06e6756a Properly implement port expose/unexpose 2015-09-06 21:56:13 -04:00
Jose Diaz-Gonzalez
dc1ab9489b Remove -plugin suffix from clone url 2015-08-25 14:04:55 -04:00
Jose Diaz-Gonzalez
4315cf74e9 Fix alternate image version 2015-08-23 22:17:49 -04:00
Jose Diaz-Gonzalez
7652f45d99 initial commit 2015-08-23 21:42:15 -04:00