Commit Graph

86 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
470840739d Add support for flags on the service:info command 2016-08-28 05:34:55 -04:00
Jose Diaz-Gonzalez
c418c9f69c Make install hook quiet when there is nothing to do 2016-08-28 02:04:51 -04:00
Jose Diaz-Gonzalez
1a598944df Update docker image 2016-08-27 16:28:13 -04:00
Jose Diaz-Gonzalez
1a6ce26129 Fix failing tests on master and test all .0 minor releases 2016-08-27 05:14:18 -04:00
Jose Diaz-Gonzalez
2ebbeb67f4 Update docker binstub 2016-08-27 03:13:08 -04:00
Jose Diaz-Gonzalez
777c95f8c2 Fix tests 2016-05-15 21:54:44 -04:00
Jose Diaz-Gonzalez
15ce61939a Fix test setup to create proper directory structure for plugin 2016-05-15 19:48:41 -04:00
Jose Diaz-Gonzalez
f93db55069 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:11:10 -04:00
Jose Diaz-Gonzalez
5de702ea7a Download correct version of plugn when running tests under OS X 2016-05-08 03:11:05 -04:00
Jose Diaz-Gonzalez
dbd2ef36c0 upgrade postgres to 9.5.2 2016-05-06 14:11:51 -04:00
Jose Diaz-Gonzalez
23d10ad09c Read POSTGRES_DATABASE_SCHEME variable from app when setting DATABASE_URL 2016-04-19 14:51:53 -04:00
Edgars Beigarts
b6240f7089 Fix exit code for postgres:export when SSH_TTY is not present 2016-02-21 23:35:14 +02:00
Jose Diaz-Gonzalez
1881b7347d Upgrade plugn 2016-01-17 21:37:49 -05:00
Jose Diaz-Gonzalez
cd5987342c Merge pull request #54 from dokku/version-upgrade
Upgrade image version to 9.5.0
2016-01-17 01:52:42 -05:00
Jose Diaz-Gonzalez
ecb9a7c7b6 Upgrade image version to 9.5.0 2016-01-17 01:43:34 -05:00
Loïc Guitaut
3441be809d Enable SSL for connections to database
Since the database can be exposed to the outer world, it seems better to
have an encrypted connection to it.
We automatically generate a self-signed certificate since it's only used
to encrypt the connection but one can easily replace it by a custom one,
just overwrite `server.crt` and `server.key` in the
/var/lib/dokku/services/postgres/DB_NAME/data directory.
2015-12-07 11:16:07 +01:00
Loïc Guitaut
fc8bb77539 Fix tests setup 2015-11-30 17:10:41 +01:00
Loïc Guitaut
9e37cefbbf Display infos from list command in columns
Also add a LINKS column to easily view which services are linked to
which apps
2015-10-12 12:01:48 +02:00
Jose Diaz-Gonzalez
5c542287a3 Merge pull request #30 from dokku/lg-unlink-on-app-destroy
Remove linked app from links file when destroying app
2015-09-30 10:56:12 -04:00
Loïc Guitaut
bb7d44f39e Remove linked app from links file when destroying app 2015-09-29 23:10:26 +02:00
Loïc Guitaut
f0a647053b Replace underscore by dash in exposed hostname
Fixes #28
2015-09-29 18:51:49 +02:00
Loïc Guitaut
63047297ea 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_POSTGRES_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-28 18:21:52 +02:00
Jose Diaz-Gonzalez
b8abc90885 Set POSTGRES_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:04:10 -04:00
Loïc Guitaut
06e075d3a1 Do not always allocate a tty on connect
To import SQL files `connect` has to be used instead of `import`. Doing
so can’t work with the `-t` docker option, so now we check for a tty
before using this option.

Fixes #18
2015-09-19 00:52:33 +02:00
Loïc Guitaut
e9618101e5 Display image & version in list 2015-09-16 00:05:18 +02:00
Loïc Guitaut
25820403e2 Add compatibility for tests with dokku 0.4+ 2015-09-15 23:05:56 +02:00
Jose Diaz-Gonzalez
b7cbb54712 Pin version to 9.4.4 2015-09-15 01:53:09 -07:00
Loïc Guitaut
fd60d30631 Use latest stable release of PostgreSQL
9.4 branch is latest stable, 9.5 is a development version.
2015-09-14 23:35:42 +02:00
Loïc Guitaut
153b1b826e Implement postgres:clone command 2015-09-11 02:55:52 +02:00
Loïc Guitaut
35da137071 Implement postgres:import command 2015-09-11 02:09:45 +02:00
Loïc Guitaut
ca88f2bdce Add tests for every implemented command 2015-09-10 11:57:24 +02:00
Jose Diaz-Gonzalez
316fe8f7f0 Make binaries executable 2015-09-07 01:25:07 -04:00
Jose Diaz-Gonzalez
ef22aa2ca2 Update postgres binstubs 2015-09-07 01:22:59 -04:00
Jose Diaz-Gonzalez
e0655a683d Fix tests 2015-09-07 01:01:06 -04:00
Jose Diaz-Gonzalez
b3156c5553 Travis testing 2015-09-07 00:39:28 -04:00
Jose Diaz-Gonzalez
ac2652fd92 make test 2015-09-06 22:53:02 -04:00