Commit Graph

14 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
e1d1b9c832 Update docker binstub 2016-08-27 03:12:57 -04:00
Jose Diaz-Gonzalez
e6d819e6ef Add a dummy lsb_release command to test binaries
This should allow us to run tests on os x using the current dokku binary
2016-05-08 03:00:40 -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
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
Loïc Guitaut
8949686410 Display image & version in list 2015-09-16 17:42:26 +02: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
12557fbaa1 Add tests for every implemented command 2015-09-10 16:21:35 +02:00
Jose Diaz-Gonzalez
a3a14a4393 Update docker ps output 2015-09-08 12:14:12 -04:00
Jose Diaz-Gonzalez
927ef2bbca Make binaries executable 2015-09-07 01:26:19 -04:00
Jose Diaz-Gonzalez
0471559830 Update mongo binstubs 2015-09-07 01:19:48 -04:00
Jose Diaz-Gonzalez
6190b8a341 Fix tests 2015-09-07 01:00:59 -04:00
Jose Diaz-Gonzalez
3ad074d8d9 Travis testing 2015-09-07 00:39:18 -04:00