Commit Graph

89 Commits

Author SHA1 Message Date
Alexey Zagarin
ab65ac7f1f config dir & disable performance schema 2015-12-01 15:20:01 +03:00
Jose Diaz-Gonzalez
01f24c4d4a Merge pull request #38 from dokku/lg-fix-tests
Fix tests setup
2015-11-30 11:40:54 -05:00
Loïc Guitaut
f32685e809 Fix tests setup 2015-11-30 17:21:32 +01:00
Jose Diaz-Gonzalez
99e3ef6245 Merge pull request #34 from dokku/container-environment-variables
Add support for custom environment variables when starting a service container
2015-11-05 02:04:58 -05:00
Jose Diaz-Gonzalez
ad42950980 Add support for custom environment variables when starting a service container 2015-11-05 01:21:43 -05:00
Jose Diaz-Gonzalez
cfb9fa2499 Update README.md -> <file> arg for export command 2015-10-29 15:56:35 -04:00
Jose Diaz-Gonzalez
a7142aeb23 Merge pull request #31 from dokku/lg-update-readme
Update README about docker env var
2015-10-21 14:09:08 -04:00
Loïc Guitaut
fab263e0fa Update README about docker env var 2015-10-21 16:23:10 +02:00
Jose Diaz-Gonzalez
4f73e40028 Merge pull request #30 from dokku/lg-fix-export-over-ssh
Fix export when using `ssh -t`
2015-10-19 06:04:50 -04:00
Loïc Guitaut
3f789ad349 Fix export when using ssh -t 2015-10-19 11:38:45 +02:00
Jose Diaz-Gonzalez
40c50f0690 Merge pull request #29 from dokku/lg-list-in-columns
Display infos from `list` command in columns
2015-10-13 04:38:39 -04: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
Jose Diaz-Gonzalez
26ef30670f Merge pull request #28 from dokku/lg-fix-destroy
Fix the `destroy` command
2015-10-12 14:09:20 -04:00
Loïc Guitaut
d09d7cedf0 Fix the destroy command
Checking for container with its service name instead of ID.
Doing a chmod 777 on `/data` before removing data from the service.
2015-10-12 11:05:55 +02:00
Jose Diaz-Gonzalez
3f155d9b16 Merge pull request #27 from dokku/lg-revamp-link-unlink
Revamp link/unlink commands
2015-09-30 17:24:24 -04: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
faa7fa4399 Merge pull request #26 from dokku/josegonzalez-patch-1
Add mysql:help command
2015-09-27 17:26:52 -04:00
Jose Diaz-Gonzalez
077d87ed58 Add mysql:help command 2015-09-27 17:18:28 -04:00
Jose Diaz-Gonzalez
f12047b78b Update README.md
Add a note explaining how to examine the environment variables (through `dokku run my-app env` rather than `dokku config my-app`)
2015-09-24 12:06:47 -04:00
Jose Diaz-Gonzalez
bbc98a4557 Merge pull request #25 from dokku/lg-fix-wait-image
Use our own image to wait for services
2015-09-24 11:47:20 -04:00
Loïc Guitaut
7c867da3dc Use our own image to wait for services 2015-09-24 11:44:42 +02:00
Jose Diaz-Gonzalez
d3e3a702fc Merge pull request #24 from dokku/josegonzalez-patch-1
Fix overlapping exported config
2015-09-23 15:07:41 -04: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
Jose Diaz-Gonzalez
9146dd21d3 Fix overlapping exported config
If using multiple official dokku datastorage plugins, it is possible to get into a case where the `PLUGIN_DATA_ROOT` would be set incorrectly for other plugins.

Refs dokku/dokku-redis#20
2015-09-23 14:37:44 -04:00
Jose Diaz-Gonzalez
1b53acf30a Update installation documentation 2015-09-22 12:07:32 -04:00
Jose Diaz-Gonzalez
b01ce10010 Merge pull request #23 from dokku/lg-fix-install
Fix wrong version check on docker wait image
2015-09-22 11:57:23 -04:00
Loïc Guitaut
fd5bddfcb7 Fix wrong version check on docker wait image 2015-09-22 16:02:37 +02:00
Jose Diaz-Gonzalez
167056e614 Merge pull request #22 from dokku/lg-check-images
Add checks for all docker images in install hook
2015-09-21 10:16:27 -04:00
Jose Diaz-Gonzalez
f1d4258ffd Merge pull request #20 from dokku/lg-docker-args-hooks
Use docker-args-* hooks instead of deprecated one
2015-09-21 10:16:17 -04:00
Jose Diaz-Gonzalez
f458704ad6 Merge pull request #21 from dokku/lg-tty-on-connect
Do not always allocate a tty on `connect`
2015-09-21 10:13:04 -04:00
Loïc Guitaut
d03d2757d8 Add checks for all docker images in install hook 2015-09-21 14:18:17 +02:00
Loïc Guitaut
5cced02b01 Do not always allocate a tty on connect 2015-09-21 10:15:00 +02:00
Loïc Guitaut
fe3f91e286 Use docker-args-* hooks instead of deprecated one 2015-09-21 09:50:41 +02:00
Jose Diaz-Gonzalez
ec3aa1fe0f Merge pull request #17 from dokku/josegonzalez-patch-1
Remove completed todos
2015-09-16 15:14:00 -07:00
Jose Diaz-Gonzalez
7970106c58 Remove completed todos 2015-09-16 15:11:33 -07:00
Jose Diaz-Gonzalez
0fbf72bbd6 Merge pull request #16 from dokku/lg-fix-for-0.4
Fix compatibility with dokku 0.4+
2015-09-16 14:59:19 -07:00
Jose Diaz-Gonzalez
9de49f097f Merge pull request #15 from dokku/lg-display-version-in-list
Display image & version in `list`
2015-09-16 14:51:55 -07:00
Loïc Guitaut
0e02670639 Fix compatibility with dokku 0.4+ 2015-09-16 23:49:45 +02:00
Loïc Guitaut
21a5d29581 Display image & version in list 2015-09-16 17:45:25 +02:00
Jose Diaz-Gonzalez
3a824c38ca Merge pull request #14 from dokku/lg-fix-tests-0.4
Add compatibility for tests with dokku 0.4+
2015-09-15 14:08:12 -07:00
Loïc Guitaut
bdecf99645 Add compatibility for tests with dokku 0.4+ 2015-09-15 23:04:25 +02:00
Jose Diaz-Gonzalez
40155bd9e9 Mention that the plugin defaults to installing a version 2015-09-15 02:02:15 -07:00
Jose Diaz-Gonzalez
b952f812e6 Merge pull request #12 from dokku/josegonzalez-patch-1
Use latest stable mysql image
2015-09-15 01:59:01 -07: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
Jose Diaz-Gonzalez
c2528e98ff Merge pull request #11 from dokku/josegonzalez-patch-1
Fix documentation on export/import/clone
2015-09-14 19:51:20 -04:00
Jose Diaz-Gonzalez
d1ae986d8c Fix documentation on export/import/clone 2015-09-14 19:43:30 -04:00
Jose Diaz-Gonzalez
04273cb893 Merge pull request #10 from Flink/lg-import-clone
Add `import`, `clone` commands
2015-09-14 11:20:06 -04:00
Loïc Guitaut
d8b13298b7 Add import, clone commands
Fix dump and connect commands
2015-09-14 17:09:08 +02:00
Jose Diaz-Gonzalez
7988e03c0e Merge pull request #9 from Flink/lg-help-output
Compatibility with dokku 0.3.x & 0.4.x for help output
2015-09-11 17:54:25 -04:00
Loïc Guitaut
b5ec6ca12c Compatibility with dokku 0.3.x & 0.4.x for help output 2015-09-11 23:29:40 +02:00