Jose Diaz-Gonzalez
3edec37f54
Rework how config vars are sourced
...
- ensure we source config/functions from the correct directory
- move config sourcing up before DOKKU_TRACE to reduce trace output
2016-05-08 03:00:05 -04:00
Jose Diaz-Gonzalez
ea9971404f
Add testing for all supported versions of dokku
...
Also drop support for 0.3.x
2016-05-08 02:59:32 -04:00
Jose Diaz-Gonzalez
b91d7a5792
Merge pull request #62 from dokku/upgrade-mongo
...
upgrade mongo to 3.2.6
2016-05-08 01:24:22 -04:00
Jose Diaz-Gonzalez
6eba229b7f
upgrade mongo to 3.2.6
2016-05-06 14:15:31 -04:00
Jose Diaz-Gonzalez
41ad540b39
Merge pull request #61 from dokku/start-container
...
create container if not exists on service:start
2016-05-04 02:06:06 -04:00
Jose Diaz-Gonzalez
27ded0dca0
create container if not exists on service:start
2016-05-04 01:02:14 -04:00
Jose Diaz-Gonzalez
aafd54eb49
Merge pull request #60 from dokku/database-adapter
...
Read MONGO_DATABASE_SCHEME variable from app when setting MONGO_URL
2016-04-19 15:38:49 -04:00
Jose Diaz-Gonzalez
9a7c88550d
Read MONGO_DATABASE_SCHEME variable from app when setting MONGO_URL
2016-04-19 15:11:51 -04:00
Jose Diaz-Gonzalez
196cf4acc0
Merge pull request #58 from treythomas123/master
...
Automatically pull image if it's not already downloaded
2016-04-18 20:48:47 -04:00
Trey Thomas
06ad8a15a4
Automatically pull image if it's not already downloaded
2016-04-18 16:45:37 -06:00
Jose Diaz-Gonzalez
825cab7c62
Merge pull request #57 from MozMorris/patch-1
...
Fixup import docs
2016-04-10 06:05:22 -04:00
Moz Morris
021cd11942
Fixup import docs
2016-04-10 10:43:31 +01:00
Jose Diaz-Gonzalez
a1c7e11554
Merge pull request #51 from mak-it/export-fix
...
Fix exit code for mongo:export when SSH_TTY is not present
2016-02-25 01:34:30 -05:00
Edgars Beigarts
822a0259f9
Fix exit code for mongo:export when SSH_TTY is not present
2016-02-24 09:16:59 +02:00
Jose Diaz-Gonzalez
9d49ee0edc
Ignore .vagrant directory
2016-01-17 21:40:10 -05:00
Jose Diaz-Gonzalez
0655721182
Upgrade plugn
2016-01-17 21:37:53 -05:00
Jose Diaz-Gonzalez
81619282c5
Add vagrant setup for local testing
2016-01-17 21:34:36 -05:00
Jose Diaz-Gonzalez
b0efaebdbe
Remove invalid service directory during command runs
...
Closes dokku/dokku-mongo#40
2016-01-17 21:29:19 -05:00
Jose Diaz-Gonzalez
8764b333ff
Upgrade testing environment to trusty
2016-01-17 21:27:21 -05:00
Jose Diaz-Gonzalez
618dc9ff42
Merge pull request #49 from dokku/version-upgrade
...
Upgrade image version to 3.2.1
2016-01-17 02:02:34 -05:00
Jose Diaz-Gonzalez
c1b6b7217e
Upgrade image version to 3.2.1
2016-01-17 01:54:00 -05:00
Jose Diaz-Gonzalez
2aff7d8d0e
Merge pull request #48 from ElliotChong/feature/docker-pull-instructions
...
Adding a note about pulling the mongo docker image for versions other than the default
2015-12-18 16:12:19 -05:00
Jose Diaz-Gonzalez
f45bf82bfb
Merge pull request #47 from ElliotChong/feature/mongo-version-bump
...
Upgrading default MongoDB version to 3.2.0
2015-12-18 16:12:06 -05:00
Elliot Chong
8d3c11cd0f
Adding a note about pulling the mongo docker image for versions other than the default
2015-12-18 12:51:57 -08:00
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