Jose Diaz-Gonzalez
85ceaee1d1
Pin dokkupaas/wait:0.2
2016-09-21 01:27:01 -06:00
Jose Diaz-Gonzalez
757ae311f9
Move link creation up
2016-08-29 10:47:23 -04:00
Jose Diaz-Gonzalez
87084e7135
Refactor common functions into separate file
2016-08-29 02:36:09 -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
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
2c26bf8896
Use cat and double-quotes when retrieving the password
2016-08-27 01:34:58 -04:00
Jose Diaz-Gonzalez
1eb8d990e2
Add missing SERVICE_ROOT env var
2016-08-27 01:10:32 -04:00
Jose Diaz-Gonzalez
37dcf26ba8
Output the config/data directories when performing service:info
2016-08-27 00:57:08 -04:00
Jose Diaz-Gonzalez
01210083dc
Only wait for a single port
2016-08-26 23:05:27 -04:00
Jose Diaz-Gonzalez
e58c187889
Fix calls to docker-options plugin under all 0.4.x releases
2016-06-09 12:31:42 -04:00
Jose Diaz-Gonzalez
2a2132eb0b
Alphabetize functions to improve organization
2016-05-16 02:28:41 -04:00
Jose Diaz-Gonzalez
69779da97d
Remove remaining direct dokku calls
2016-05-16 00:24:38 -04:00
Jose Diaz-Gonzalez
f1731bac00
Remove call to dokku service:info in favor of service_info
2016-05-15 19:36:08 -04:00
Jose Diaz-Gonzalez
3e4409fcfb
Use docker-options functions directly to avoid setting DOKKU_APP_NAME twice
2016-05-15 19:29:45 -04:00
Jose Diaz-Gonzalez
4e32b0a154
Revert "Escape dashed names for older versions of mysql"
...
This reverts commit 47398f84d6 .
2016-05-12 12:05:02 -04:00
Jose Diaz-Gonzalez
b448a83c1e
quote SERVICE_NAME value
2016-05-08 15:00:01 -04:00
Jose Diaz-Gonzalez
14c5dc8ebe
use an extension for sed calls on os x
2016-05-08 14:59:51 -04:00
Jose Diaz-Gonzalez
4bddb3954c
trim whitespace from url
2016-05-08 14:59:20 -04:00
Jose Diaz-Gonzalez
6cebc4c92e
shellcheck disable
2016-05-08 14:59:10 -04:00
Jose Diaz-Gonzalez
d6582fe3b0
use config functions properly
2016-05-08 14:58:54 -04:00
Jose Diaz-Gonzalez
424a725c8d
Quote more variables
2016-05-08 03:02:42 -04:00
Jose Diaz-Gonzalez
ca5421012b
quote $APP variable
2016-05-08 03:02:15 -04:00
Jose Diaz-Gonzalez
11615bea77
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:01:59 -04:00
Jose Diaz-Gonzalez
47398f84d6
Escape dashed names for older versions of mysql
...
Closes #47
Closes #48
2016-05-04 02:12:51 -04:00
Jose Diaz-Gonzalez
54e24ab582
create container if not exists on service:start
2016-05-04 01:01:30 -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
ab7cc8c1a1
Use config_get from config functions
2016-03-04 12:37:02 +00:00
Peter West
b7b25c91a0
Read DATABASE_ADAPTER variable from app when setting DATABASE_URL
2016-03-04 12:37:02 +00: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
Loïc Guitaut
21a5d29581
Display image & version in list
2015-09-16 17:45:25 +02:00
Jose Diaz-Gonzalez
1b16812012
Display which ports are exposed in list
2015-09-07 18:57:09 -04:00
Jose Diaz-Gonzalez
3481b5a95f
make test
2015-09-06 22:55:50 -04:00
Jose Diaz-Gonzalez
26a1c3db6f
Fix link name
2015-09-06 22:08:56 -04:00
Jose Diaz-Gonzalez
a9316bf1f8
Properly implement port expose/unexpose
2015-09-06 21:57:54 -04:00
Jose Diaz-Gonzalez
6557f711b0
Move alias, link, unlink and logs commands into functions
2015-08-29 03:19:35 -04:00
Jose Diaz-Gonzalez
a7543b5a31
Move service checks into commands file
2015-08-29 02:58:48 -04:00
Jose Diaz-Gonzalez
35c9ad5318
Move info and list commands into shared functions
...
Also add better output formatting for both commands
2015-08-29 02:53:16 -04:00
Jose Diaz-Gonzalez
83e1dac6d6
Remove service verification from service_url function
...
It is not necessary to do so in a function that is called from other places that already verify the name.
2015-08-29 02:49:41 -04:00
Jose Diaz-Gonzalez
3bc7404aac
Use central config for env vars
2015-08-29 01:53:43 -04:00
Jose Diaz-Gonzalez
1fcd7dee4a
initial commit
2015-08-23 18:56:11 -04:00