Commit Graph

66 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
19f09a1aa7 hack: skip service_import success for now 2019-03-19 17:32:53 -04:00
Jose Diaz-Gonzalez
e666251bde chore: unify with other plugins 2019-03-19 14:58:28 -04:00
Jose Diaz-Gonzalez
57ea7c1a14 fix: skip hanging connect test in travis 2019-03-18 16:36:46 -04:00
Jose Diaz-Gonzalez
d59f4243b8 fix: skip hanging connect test in travis 2019-03-18 16:35:47 -04:00
Jose Diaz-Gonzalez
9b8fabc2e7 feat: Real docker-based testing
This pull request switches testing to use an actual docker daemon, vs mocking everything out.

It may also catch actual breaking issues in our tests, which is great!
2019-03-18 14:44:27 -04:00
Jose Diaz-Gonzalez
e446e64295 feat: increase minimum dokku version 2019-03-16 21:45:35 -04:00
Jose Diaz-Gonzalez
bc6a5422d6 fix: correct the validation message 2019-03-09 16:39:34 -05:00
Jose Diaz-Gonzalez
cd5b3a14b8 fix: Strictly validate service names
We previously allowed a wide range of service names. As the service name is sometimes used to name databases, the name was actually more restricted than any character, resulting in services that wouldn't start. Going forward, only alphanumeric and underscore characters are allowed.

This only impacts service creation. Any services with invalid names should be migrated to a new service, with the data exported and imported as normal.

Closes dokku/dokku-redis#99
Closes dokku/dokku-mysql#47
Closes dokku/dokku-mongo#86
Closes dokku/dokku-redis#81
2019-03-09 15:54:21 -05:00
Jose Diaz-Gonzalez
2f6c493fdd fix: correct issues in upgrade and fix tests 2018-10-11 14:16:47 -04:00
Jose Diaz-Gonzalez
b50c082f87 fix: add tests for custom link aliases 2018-04-24 13:21:24 -04:00
Jose Diaz-Gonzalez
04464001fc fix: correct test 2018-04-24 03:03:44 -04:00
Jose Diaz-Gonzalez
4f849b99ce feat: implement link querystring flags. Refs dokku/dokku-redis#64 2018-04-24 01:40:18 -04:00
Jose Diaz-Gonzalez
07da76d7af fix: use assert_contains 2018-04-23 18:25:42 -04:00
Jose Diaz-Gonzalez
ae0f3acad7 fix: correct broken tests 2018-04-10 23:55:12 -04:00
Jose Diaz-Gonzalez
f67db8dd53 Merge pull request #93 from jcutrono/master
using gzip as standard for backup and restore. upgrading mongo version.
2018-02-26 00:36:25 -05:00
Jose Diaz-Gonzalez
91570bd195 feat: implement exists and linked subcommands 2018-02-25 15:42:54 -05:00
Joseph Cutrono
824ac954d2 Revert "Merge pull request #1 from jtcmedia/master"
This reverts commit 06fbe91786, reversing
changes made to 75571ad7f2.
2017-11-30 23:03:13 -05:00
Joseph Cutrono
1db219ca86 using 3.4.10 2017-11-30 22:34:28 -05:00
Joseph Cutrono
75571ad7f2 using gzip as standard for backup and restore. upgrading mongo version. 2017-10-23 00:13:04 -04:00
Jose Diaz-Gonzalez
bfa7e0d31e fix: ensure we create the config directory 2017-09-11 07:13:41 -04:00
Jose Diaz-Gonzalez
4019b83bc3 fix: call -rf in the proper order 2017-08-26 05:04:46 -04:00
Jose Diaz-Gonzalez
19f77df2b9 feat: upgrade plugn 2017-08-26 04:19:33 -04:00
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