Commit Graph

94 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
797352e007 feat: ensure permissions are set properly on cron files 2017-01-12 01:53:43 -07:00
Jose Diaz-Gonzalez
f001535060 feat: add s3 backup support 2016-10-31 11:39:22 -06:00
Jose Diaz-Gonzalez
a13bbe0bf9 Add --service-root flag to info command 2016-08-29 05:53:47 -04:00
Jose Diaz-Gonzalez
59fe01c0cf Add --internal-ip flag to info command 2016-08-28 23:24:15 -04:00
Jose Diaz-Gonzalez
c2ba33bcdd Fix expose tests 2016-08-28 22:15:01 -04:00
Jose Diaz-Gonzalez
4e4629a7c5 Document exposed ports when an invalid number of arguments are specified 2016-08-28 21:24:44 -04:00
Jose Diaz-Gonzalez
089f8e700c Update docker binstub 2016-08-28 20:37:46 -04:00
Jose Diaz-Gonzalez
bd3cda4e42 Add --id flag 2016-08-28 17:55:44 -04:00
Jose Diaz-Gonzalez
c806328cc8 Add support for flags on the service:info command 2016-08-28 05:38:03 -04:00
Jose Diaz-Gonzalez
f02aaf39d8 Make install hook quiet when there is nothing to do 2016-08-28 02:05:02 -04:00
Jose Diaz-Gonzalez
b18797ed3e Update docker image 2016-08-27 16:27:28 -04:00
Jose Diaz-Gonzalez
36ea73f7a8 Fix failing tests on master and test all .0 minor releases 2016-08-27 05:13:37 -04:00
Jose Diaz-Gonzalez
e1d1b9c832 Update docker binstub 2016-08-27 03:12:57 -04:00
Jose Diaz-Gonzalez
6fb3589833 Add tests for connect-admin 2016-07-24 14:40:04 -04:00
Jose Diaz-Gonzalez
38e1805b55 Fix test setup to create proper directory structure for plugin 2016-05-15 18:58:01 -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
e1de34807f Download correct version of plugn when running tests under OS X 2016-05-08 03:00:34 -04:00
Jose Diaz-Gonzalez
6eba229b7f upgrade mongo to 3.2.6 2016-05-06 14:15:31 -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
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
0655721182 Upgrade plugn 2016-01-17 21:37:53 -05: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
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
Loïc Guitaut
51cf3b0abc Fix tests setup 2015-11-30 17:16:03 +01: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
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
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
Loïc Guitaut
22fa6bd92d Do not always allocate a tty on connect 2015-09-21 10:12:55 +02:00
Loïc Guitaut
8949686410 Display image & version in list 2015-09-16 17:42:26 +02:00
Loïc Guitaut
bd37ebe527 Add compatibility for tests with dokku 0.4+ 2015-09-15 22:47:47 +02:00
Loïc Guitaut
31cefc9387 Use authentication when creating database 2015-09-15 22:38:19 +02:00
Loïc Guitaut
c982923233 Add database name in DSN 2015-09-15 10:52:54 +02: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
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
Jose Diaz-Gonzalez
bcfcb36fda make test 2015-09-06 22:55:28 -04:00