Commit Graph

650 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
35d5e9cab4 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:24 -05:00
Jose Diaz-Gonzalez
876ff0c330 chore: minor consolidation in functions files 2019-03-09 15:54:24 -05:00
Jose Diaz-Gonzalez
e328b4c566 fix: correct ID check
It may be true in tests because we mock docker itself...
2019-03-09 15:24:20 -05:00
Jose Diaz-Gonzalez
d319ecf145 fix: correct check to see if service is running
This sometimes bizarrely returned a value of 'true' when it wasn't....
2019-03-09 15:09:14 -05:00
Jose Diaz-Gonzalez
28ff40a507 refactor: call service_container_rm from subcommands/destroy 2019-03-08 23:27:55 -05:00
Jose Diaz-Gonzalez
c4f5fe37eb Release 1.4.11 1.4.11 2018-12-02 16:18:13 -05:00
Jose Diaz-Gonzalez
c5c681a95d fix: correct issues where docker ps is truncated
This should actually be refactored to avoid the grep call completely, but the current fix will correct the issue for now.

Refs dokku/dokku-postgres#131
2018-12-02 14:29:24 -05:00
Jose Diaz-Gonzalez
ebb6e6f807 fix: correct issues where docker ps is truncated
This should actually be refactored to avoid the grep call completely, but the current fix will correct the issue for now.

Refs dokku/dokku-postgres#131
2018-12-02 05:21:10 -05:00
Jose Diaz-Gonzalez
a080b57221 fix: ensure any backup cron files are deleted when the service is destroyed
Closes dokku/dokku-redis#118
2018-12-02 05:10:07 -05:00
Jose Diaz-Gonzalez
11c44cb1b2 fix: clean up backup containers after use
Closes dokku/dokku#104
2018-12-02 04:46:52 -05:00
Jose Diaz-Gonzalez
1af32de972 fix: correct documentation around the passphrase parameter
Closes dokku/dokku-mysql#101
2018-12-02 04:33:58 -05:00
Jose Diaz-Gonzalez
2a9739451f Release 1.4.10 1.4.10 2018-10-11 14:53:29 -04:00
Jose Diaz-Gonzalez
5fb9de0d7d Revert "Adds --sysctl vm.overcommit_memory=1 flag" 2018-10-11 14:24:24 -04:00
Jose Diaz-Gonzalez
44d75f56d2 fix: correct issue where help output isnt colorized by default 2018-10-11 14:20:03 -04:00
Jose Diaz-Gonzalez
3fc6322b02 fix: correct issues in upgrade and fix tests 2018-10-11 14:16:47 -04:00
Jose Diaz-Gonzalez
5e3aa18765 Release 1.4.9 1.4.9 2018-10-11 00:05:40 -04:00
Jose Diaz-Gonzalez
800ff323e7 feat: skip upgrade if service is already up to date 2018-10-11 00:04:52 -04:00
Jose Diaz-Gonzalez
474c0dab6c Release 1.4.8 1.4.8 2018-10-10 23:54:54 -04:00
Jose Diaz-Gonzalez
5af1d630c6 feat: allow removal of header from :list subcommand 2018-10-10 23:54:08 -04:00
Jose Diaz-Gonzalez
9a166155a3 Release 1.4.7 1.4.7 2018-10-10 23:49:01 -04:00
Jose Diaz-Gonzalez
da8724b283 fix: respect various ways of not wanting 'fancy' output.
Closes dokku/dokku-daemon#19
Closes dokku/dokku-daemon#22
2018-10-10 23:47:46 -04:00
Jose Diaz-Gonzalez
efa82f6347 Release 1.4.6 1.4.6 2018-10-10 23:32:42 -04:00
Jose Diaz-Gonzalez
263d56a606 fix: ensure flags are properly represented in help output 2018-10-10 23:31:52 -04:00
Jose Diaz-Gonzalez
655901b1e0 Release 1.4.5 1.4.5 2018-10-10 23:27:44 -04:00
Jose Diaz-Gonzalez
71743fcad4 fix: correct issue where temp help output files were being placed in incorrect directory 2018-10-10 23:23:10 -04:00
Jose Diaz-Gonzalez
560ec0bb52 Release 1.4.4 1.4.4 2018-10-10 23:19:41 -04:00
Jose Diaz-Gonzalez
894b17ec2a feat: upgrade to redis 4.0.11 2018-10-10 23:19:32 -04:00
Jose Diaz-Gonzalez
a357a81180 Merge pull request #108 from ChrisHacker/master
Adds --sysctl vm.overcommit_memory=1 flag
2018-10-10 23:19:09 -04:00
Jose Diaz-Gonzalez
fb37e292a6 Release 1.4.3 1.4.3 2018-10-10 23:18:49 -04:00
Jose Diaz-Gonzalez
1086979e7d feat: add support for restarting containers to ensure links continue to work properly when the application has resolved dns of the link 2018-10-10 23:14:45 -04:00
Jose Diaz-Gonzalez
89d7241812 fix: handle case where container being removed does not exist 2018-10-10 22:03:44 -04:00
Jose Diaz-Gonzalez
5294c07294 Release 1.4.2 1.4.2 2018-10-10 03:03:48 -04:00
Jose Diaz-Gonzalez
bd63bc9e82 fix: correct short-flag for image-version and custom-env 2018-10-10 03:02:56 -04:00
Jose Diaz-Gonzalez
250343c7be Release 1.4.1 1.4.1 2018-10-10 03:01:25 -04:00
Jose Diaz-Gonzalez
d8fe8e200e fix: correct name for upgrade flags in help output 2018-10-10 03:00:22 -04:00
Jose Diaz-Gonzalez
33804dd483 Release 1.4.0 1.4.0 2018-10-10 02:59:32 -04:00
Jose Diaz-Gonzalez
b32b037336 chore: correct verbiage around upgrades 2018-10-10 02:54:34 -04:00
Jose Diaz-Gonzalez
b6c0dd9841 fix: pass correct variable for upgrade command 2018-10-10 02:49:31 -04:00
Jose Diaz-Gonzalez
86e6e80c01 fix: correct check for existing image 2018-10-10 02:42:43 -04:00
Jose Diaz-Gonzalez
046cee9856 fix: do not force-set plugin image and version to existing image and version 2018-10-10 02:39:11 -04:00
Jose Diaz-Gonzalez
6ba9b82a3f chore: remove unnecessary call 2018-10-10 02:32:59 -04:00
Jose Diaz-Gonzalez
e4d7198cd3 Merge pull request #112 from dokku/upgrade-service-image-version
feat: add ability to upgrade service image and image-version
2018-10-10 02:29:47 -04:00
Jose Diaz-Gonzalez
e3be8f1715 feat: add ability to upgrade service image and image-version 2018-10-10 00:14:14 -04:00
Chris
0dcc65963b Adds --sysctl vm.overcommit_memory=1 flag
Added in service_create_container call
2018-08-07 13:48:25 -05:00
Jose Diaz-Gonzalez
8eada2351f Release 1.3.0 1.3.0 2018-07-21 16:34:29 -04:00
Jose Diaz-Gonzalez
67c0aecc49 feat: add command to list linked services for a given app 2018-07-21 16:32:07 -04:00
Jose Diaz-Gonzalez
daa57b7948 fix: properly set SERVICE_ALIAS 2018-04-24 15:06:01 -04:00
Jose Diaz-Gonzalez
3573ec5ed7 fix: add tests for custom link aliases 2018-04-24 13:21:42 -04:00
Jose Diaz-Gonzalez
5dba48c638 feat: properly handle custom aliases and error states for alias usage when calling link subcommand. Refs dokku/dokku-redis#64 2018-04-24 03:22:12 -04:00
Jose Diaz-Gonzalez
3616c93797 fix: correct test 2018-04-24 03:04:01 -04:00