Commit Graph

704 Commits

Author SHA1 Message Date
Elliot Chong
97b624ccbc Upgrading default MongoDB version to 3.2.0 2015-12-18 12:50:07 -08:00
Jose Diaz-Gonzalez
356b30e290 Merge pull request #43 from singlow/mongo-2.6-compat
Mongodump 2.6 compatibility
2015-12-08 11:26:09 -05:00
Jacob Williams
179b4984a3 Redirect mongodump stdout to stderr
In version 3.x, the output of mongodump is on stderr, but on 2.6.x
it writes information to stdout. This change doesn't break 3.x in
my tests but prevents extraneous junk in beginning of the tar file
when exporting in 2.6.x.

Updated test to match redirect in exec command.
2015-12-07 23:59:55 -06:00
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
da4b355052 Document unlink command 2015-12-01 16:31:13 -05:00
Jose Diaz-Gonzalez
aa5c1807c5 Merge pull request #42 from dokku/lg-fix-tests
Fix tests setup
2015-11-30 11:40:30 -05:00
Loïc Guitaut
51cf3b0abc Fix tests setup 2015-11-30 17:16:03 +01:00
Jose Diaz-Gonzalez
1a07a8c108 Merge pull request #36 from dokku/container-environment-variables
Add support for custom environment variables when starting a service container
2015-11-05 02:05:09 -05:00
Jose Diaz-Gonzalez
ab0f4f2fe3 Add support for custom environment variables when starting a service container 2015-11-05 01:29:10 -05:00
Jose Diaz-Gonzalez
b1f3673ecd Update README.md -> <file> arg for export command 2015-10-29 15:56:36 -04:00
Jose Diaz-Gonzalez
9529b02c1c Merge pull request #34 from dokku/lg-update-readme
Update README about docker env var
2015-10-21 14:09:02 -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
Jose Diaz-Gonzalez
aba4ed1d77 Merge pull request #33 from dokku/lg-fix-export-over-ssh
Fix export when using `ssh -t`
2015-10-19 06:04:39 -04:00
Loïc Guitaut
e183572bf0 Fix export when using ssh -t 2015-10-19 11:32:57 +02:00
Jose Diaz-Gonzalez
39dfec9edf Merge pull request #31 from dokku/lg-list-in-columns
Display infos from `list` command in columns
2015-10-13 04:31:43 -04:00
Loïc Guitaut
8b3e78f5bd Display infos from list command in columns
Also add a LINKS column to easily view which services are linked to
which apps
2015-10-13 10:24:05 +02:00
Jose Diaz-Gonzalez
472b4e1aea Merge pull request #30 from dokku/lg-fix-destroy
Fix the `destroy` command
2015-10-12 14:09:27 -04: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
60ee3c9b3d Merge pull request #29 from dokku/jdg-mongo-2
Add configurable support for mongo 2 images
2015-10-11 15:55:38 -04: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
277a5c08b3 Default to wiredTiger storage engine 2015-10-05 14:05:33 -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
d4e05464e6 Add MONGO_CONFIG_OPTIONS env var
This will allow users to configure runtime options for mongodb
2015-10-05 14:04:27 -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
Jose Diaz-Gonzalez
ed8a2e6302 Merge pull request #26 from mak-it/volume
Fix /data/db volume mount point
2015-10-05 10:35:12 -04:00
Edgars Beigarts
7f7a156482 Fix /data/db volume mount point 2015-10-05 09:51:59 +03:00
Jose Diaz-Gonzalez
9038ffc684 Merge pull request #24 from dokku/josegonzalez-patch-1
Add mongo:help command
2015-09-27 17:27:05 -04:00
Jose Diaz-Gonzalez
75f5e9b65c Add mongo:help command 2015-09-27 17:19:08 -04: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
4a771bd8d9 Merge pull request #23 from dokku/lg-fix-wait-image
Use our own image to wait for services
2015-09-24 11:48:41 -04:00
Loïc Guitaut
34fd421d4c Use our own image to wait for services 2015-09-24 11:42:49 +02:00
Jose Diaz-Gonzalez
7905c134e5 Merge pull request #22 from dokku/josegonzalez-patch-1
Fix overlapping exported config
2015-09-23 15:08:23 -04:00
Jose Diaz-Gonzalez
7c5cefb7c7 Set MONGO_ROOT environment variable as well
Since PLUGIN_DATA_ROOT is not directly overrideable anymore, we need to *also* set this env var here.
2015-09-23 15:03:44 -04:00
Jose Diaz-Gonzalez
9e227852fb Fix overlapping exported config
If using multiple official dokku datastorage plugins, it is possible to get into a case where the `PLUGIN_DATA_ROOT` would be set incorrectly for other plugins.

Refs dokku/dokku-redis#20
2015-09-23 14:37:53 -04:00
Jose Diaz-Gonzalez
5bd4f4f708 Update README.md 2015-09-22 12:08:30 -04:00
Jose Diaz-Gonzalez
358928263c Merge pull request #21 from dokku/lg-fix-install
Fix wrong version check on docker wait image
2015-09-22 11:57:25 -04:00
Loïc Guitaut
4a8c584d6c Fix wrong version check on docker wait image 2015-09-22 16:01:51 +02:00
Jose Diaz-Gonzalez
97bc990978 Merge pull request #19 from dokku/lg-check-images
Add checks for all docker images in install hook
2015-09-21 10:16:47 -04:00
Jose Diaz-Gonzalez
a9385fd68e Merge pull request #17 from dokku/lg-docker-args-hooks
Use docker-args-* hooks instead of deprecated one
2015-09-21 10:16:37 -04:00
Jose Diaz-Gonzalez
eab5ec1b14 Merge pull request #18 from dokku/lg-tty-on-connect
Do not always allocate a tty on `connect`
2015-09-21 10:12:36 -04:00
Loïc Guitaut
b2a9bf7a45 Add checks for all docker images in install hook 2015-09-21 14:17:34 +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
e1dba2babd Use docker-args-* hooks instead of deprecated one 2015-09-21 09:47:45 +02:00
Jose Diaz-Gonzalez
b26a612a50 Merge pull request #16 from dokku/josegonzalez-patch-1
Remove completed todos
2015-09-16 15:19:14 -07:00
Jose Diaz-Gonzalez
975643861d Remove completed todos 2015-09-16 15:12:11 -07:00
Jose Diaz-Gonzalez
9528db9c5d Merge pull request #15 from dokku/lg-fix-for-0.4
Fix compatibility with dokku 0.4+
2015-09-16 14:52:01 -07:00
Jose Diaz-Gonzalez
898654fe91 Merge pull request #14 from dokku/lg-display-version-in-list
Display image & version in `list`
2015-09-16 14:50:22 -07:00
Loïc Guitaut
ed884da6f8 Fix compatibility with dokku 0.4+ 2015-09-16 23:48:58 +02:00