Commit Graph

31 Commits

Author SHA1 Message Date
Jacob Williams
3d30b6ca35 remove = after -o in mongodump command
The -o= seems to work fine in 3.x but in 2.x it actually includes the equals sign in the path, resulting in "/=/tmp/tmp.XXXXXX". The mongodump command docs for neither 2.x nor 3.x list the equals sign as part of the -o or --out parameter. It seems to work fine in 3.x with or without the equals sign.

Updated test to reflect change to -o
2015-12-07 23:57:17 -06:00
Jose Diaz-Gonzalez
ab0f4f2fe3 Add support for custom environment variables when starting a service container 2015-11-05 01:29:10 -05:00
Loïc Guitaut
e183572bf0 Fix export when using ssh -t 2015-10-19 11:32:57 +02:00
Loïc Guitaut
3609235d1b Fix the destroy command
Checking for container with its service name instead of ID.
Doing a chmod 777 on `/data` before removing data from the service.
2015-10-12 10:58:12 +02:00
Jose Diaz-Gonzalez
cbd49a633f Remove quotes on $MONGO_CONFIG_OPTIONS to allow for variable expansion 2015-10-11 02:39:18 -04:00
Jose Diaz-Gonzalez
e5276c4118 Use MONGO_CONFIG_OPTIONS env var when running mongodb 2015-10-05 14:05:06 -04:00
Jose Diaz-Gonzalez
35944a2325 Merge pull request #28 from dokku/lg-revamp-link-unlink
Revamp link/unlink commands
2015-10-05 13:55: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
Edgars Beigarts
7f7a156482 Fix /data/db volume mount point 2015-10-05 09:51:59 +03:00
Jose Diaz-Gonzalez
75f5e9b65c Add mongo:help command 2015-09-27 17:19:08 -04:00
Loïc Guitaut
34fd421d4c Use our own image to wait for services 2015-09-24 11:42:49 +02:00
Loïc Guitaut
22fa6bd92d Do not always allocate a tty on connect 2015-09-21 10:12:55 +02:00
Loïc Guitaut
ed884da6f8 Fix compatibility with dokku 0.4+ 2015-09-16 23:48:58 +02:00
Loïc Guitaut
31cefc9387 Use authentication when creating database 2015-09-15 22:38:19 +02:00
Loïc Guitaut
61f2afb099 Implement export, import and clone commands 2015-09-14 23:12:40 +02:00
Loïc Guitaut
1acba04ade Compatibility with dokku 0.3.x & 0.4.x for help output 2015-09-11 23:27:52 +02:00
Loïc Guitaut
1f0905d353 Use aanand/wait image to wait for service to be ready 2015-09-09 19:26:23 +02:00
Loïc Guitaut
7ac355a0d2 Remove call to docker kill 2015-09-09 19:21:39 +02:00
Loïc Guitaut
674d705250 Use mongo from docker image 2015-09-09 14:08:45 +02:00
Loïc Guitaut
ad3f4e9df1 Use $PLUGIN_PATH instead of dirname 2015-09-09 12:15:57 +02:00
Jose Diaz-Gonzalez
bcfcb36fda make test 2015-09-06 22:55:28 -04:00
Jose Diaz-Gonzalez
0e06e6756a Properly implement port expose/unexpose 2015-09-06 21:56:13 -04:00
Jose Diaz-Gonzalez
693222cd54 Move alias, link, unlink and logs commands into functions 2015-08-29 03:19:24 -04:00
Jose Diaz-Gonzalez
8980163b13 Move service checks into commands file 2015-08-29 02:58:51 -04:00
Jose Diaz-Gonzalez
e90217c9cd Move info and list commands into shared functions
Also add better output formatting for both commands
2015-08-29 02:53:06 -04:00
Jose Diaz-Gonzalez
ceb4dfa9b9 use config for ports 2015-08-29 02:37:30 -04:00
Jose Diaz-Gonzalez
653bb8828b Use central config for env vars 2015-08-29 01:54:00 -04:00
Jose Diaz-Gonzalez
df26f142c7 quiet grep output 2015-08-28 23:25:33 -04:00
Jose Diaz-Gonzalez
d71f89b76c Ensure container exists before attempting to kill it 2015-08-25 17:21:24 -04:00
Jose Diaz-Gonzalez
6ce580a812 Fix logs subcommand 2015-08-23 22:07:17 -04:00
Jose Diaz-Gonzalez
7652f45d99 initial commit 2015-08-23 21:42:15 -04:00