Commit Graph

50 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
6b25da8d43 fix: use assert_contains 2018-04-23 18:25:47 -04:00
Jose Diaz-Gonzalez
f1f5aaaaf7 fix: correct test check 2018-02-26 00:07:13 -05:00
Jose Diaz-Gonzalez
2a2f8a7723 fix: correct tests for 0.7.0 2018-01-12 12:30:05 -05:00
Jose Diaz-Gonzalez
0eeb17823c fix: set proper check_value for docker-options:report 2018-01-12 12:05:06 -05:00
Jose Diaz-Gonzalez
5f03b39aef fix: call options correctly 2018-01-12 10:42:32 -05:00
Jose Diaz-Gonzalez
c6f38b2c1b fix: Properly handle updated config functions
Closes dokku/dokku-redis#90
2018-01-12 06:11:53 -05:00
Jose Diaz-Gonzalez
83df40711c fix: ensure we create the config directory 2017-09-11 07:13:46 -04:00
Jose Diaz-Gonzalez
ab73db4c81 fix: call -rf in the proper order 2017-08-26 05:04:47 -04:00
Jose Diaz-Gonzalez
0143c34af6 feat: upgrade plugn 2017-08-26 04:19:35 -04:00
Youri van der Lans
db956c3bbf Suppress mysqldump password error. 2017-03-14 14:50:43 +01:00
Jose Diaz-Gonzalez
ac17961a65 feat: ensure permissions are set properly on cron files 2017-01-12 01:53:47 -07:00
Jose Diaz-Gonzalez
cc5fac0376 feat: add s3 backup support 2016-10-31 11:39:25 -06:00
Jose Diaz-Gonzalez
7f8a9ee554 Add --service-root flag to info command 2016-08-29 05:53:48 -04:00
Jose Diaz-Gonzalez
ff5459d299 Add --internal-ip flag to info command 2016-08-28 23:24:20 -04:00
Jose Diaz-Gonzalez
0b7be2d039 Fix expose tests 2016-08-28 22:15:07 -04:00
Jose Diaz-Gonzalez
f7d461fbf9 Document exposed ports when an invalid number of arguments are specified 2016-08-28 21:24:48 -04:00
Jose Diaz-Gonzalez
c5233dee1b Update docker binstub 2016-08-28 20:37:49 -04:00
Jose Diaz-Gonzalez
1841aa258c Add --id flag 2016-08-28 17:55:51 -04:00
Jose Diaz-Gonzalez
7a8d24931a Add support for flags on the service:info command 2016-08-28 05:37:34 -04:00
Jose Diaz-Gonzalez
3c045b11ab Make install hook quiet when there is nothing to do 2016-08-28 02:08:00 -04:00
Jose Diaz-Gonzalez
f4ebe1caf9 Update docker image 2016-08-27 16:27:38 -04:00
Jose Diaz-Gonzalez
2c6f28283c Fix failing tests on master and test all .0 minor releases 2016-08-27 05:13:52 -04:00
Jose Diaz-Gonzalez
5df8c88cbd Update docker binstub 2016-08-27 03:13:00 -04:00
Jose Diaz-Gonzalez
80bd81adfd Fix test setup to create proper directory structure for plugin 2016-05-15 18:59:11 -04:00
Jose Diaz-Gonzalez
499d8ba786 Downgrade mysql. Refs #56 2016-05-11 12:36:53 -04:00
Jose Diaz-Gonzalez
a55726a55a 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:02:35 -04:00
Jose Diaz-Gonzalez
4b6ac41189 Download correct version of plugn when running tests under OS X 2016-05-08 03:02:29 -04:00
Jose Diaz-Gonzalez
4d074fe007 upgrade mariadb to 5.7.12 2016-05-06 14:03:48 -04:00
Peter West
d1a1450b48 Rename DATABASE_SCHEME to MYSQL_DATABASE_SCHEME 2016-03-19 10:17:48 +00:00
Peter West
90791f536a Change DATABASE_ADAPTER to DATABASE_SCHEME 2016-03-08 09:03:20 +00:00
Peter West
b7b25c91a0 Read DATABASE_ADAPTER variable from app when setting DATABASE_URL 2016-03-04 12:37:02 +00:00
Edgars Beigarts
33b233aca0 Fix exit code for mysql:export when SSH_TTY is not present 2016-02-24 09:25:31 +02:00
Jose Diaz-Gonzalez
ce4f7f3d40 Upgrade plugn 2016-01-17 21:37:50 -05:00
Jose Diaz-Gonzalez
d8726cc3e6 Upgrade image version to 5.7.10 2016-01-17 01:45:18 -05:00
Loïc Guitaut
f32685e809 Fix tests setup 2015-11-30 17:21:32 +01:00
Loïc Guitaut
318c3afb03 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:29:39 +02:00
Loïc Guitaut
13329f3e42 Revamp link/unlink commands
Previously we were exporting `DATABASE_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 `DATABASE_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 `DATABASE_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_MYSQL_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-09-30 23:05:16 +02:00
Jose Diaz-Gonzalez
12c7bef14c Set MYSQL_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:37 -04:00
Loïc Guitaut
5cced02b01 Do not always allocate a tty on connect 2015-09-21 10:15:00 +02:00
Loïc Guitaut
21a5d29581 Display image & version in list 2015-09-16 17:45:25 +02:00
Loïc Guitaut
bdecf99645 Add compatibility for tests with dokku 0.4+ 2015-09-15 23:04:25 +02:00
Jose Diaz-Gonzalez
ce2b77c18a Use latest stable mysql image
5.7.x is a preview release
2015-09-15 01:54:28 -07:00
Loïc Guitaut
d8b13298b7 Add import, clone commands
Fix dump and connect commands
2015-09-14 17:09:08 +02:00
Loïc Guitaut
547653b27e Add tests for every implemented command 2015-09-10 14:21:27 +02:00
Jose Diaz-Gonzalez
7d726f84b0 Update docker ps output 2015-09-08 12:14:23 -04:00
Jose Diaz-Gonzalez
45819a1910 Make binaries executable 2015-09-07 01:25:56 -04:00
Jose Diaz-Gonzalez
a9b1836a9e Update mysql binstubs 2015-09-07 01:19:33 -04:00
Jose Diaz-Gonzalez
376ed47729 Fix tests 2015-09-07 01:00:53 -04:00
Jose Diaz-Gonzalez
7a558e0df7 Travis testing 2015-09-07 00:39:10 -04:00
Jose Diaz-Gonzalez
3481b5a95f make test 2015-09-06 22:55:50 -04:00