Commit Graph

106 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
44c0d80e31 chore: move retry-docker-command to common-functions 2019-05-30 11:11:02 -04:00
Jose Diaz-Gonzalez
238f09dae0 chore: run shfmt 2019-05-30 11:06:25 -04:00
Jose Diaz-Gonzalez
2a2803754a fix: update docker-s3backup image to fix backups to s3 2019-03-28 05:23:39 -04:00
Jose Diaz-Gonzalez
fa15a7231e feat: update to latest dokku/s3backup image 2019-03-25 13:47:03 -04:00
Jose Diaz-Gonzalez
7604d5bc32 feat: switch to updated ambassador image 2019-03-25 12:46:01 -04:00
Jose Diaz-Gonzalez
e666251bde chore: unify with other plugins 2019-03-19 14:58:28 -04:00
Jose Diaz-Gonzalez
9b8fabc2e7 feat: Real docker-based testing
This pull request switches testing to use an actual docker daemon, vs mocking everything out.

It may also catch actual breaking issues in our tests, which is great!
2019-03-18 14:44:27 -04:00
Jose Diaz-Gonzalez
f84f3f070b fix: correct check to see if container exists 2019-03-16 20:40:07 -04:00
Jose Diaz-Gonzalez
bc6a5422d6 fix: correct the validation message 2019-03-09 16:39:34 -05:00
Jose Diaz-Gonzalez
cd5b3a14b8 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:21 -05:00
Jose Diaz-Gonzalez
1733c7a6c8 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
42ded61b2b 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
ea33fded40 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
0619249d2c fix: clean up backup containers after use
Closes dokku/dokku#104
2018-12-02 04:46:52 -05:00
Jose Diaz-Gonzalez
2f6c493fdd fix: correct issues in upgrade and fix tests 2018-10-11 14:16:47 -04:00
Jose Diaz-Gonzalez
2d52ae2fb4 feat: allow removal of header from :list subcommand 2018-10-10 23:54:08 -04:00
Jose Diaz-Gonzalez
b030fe9cce 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
87b27db240 fix: handle case where container being removed does not exist 2018-10-10 22:03:44 -04:00
Jose Diaz-Gonzalez
b66e047cfa chore: correct verbiage around upgrades 2018-10-10 02:54:34 -04:00
Jose Diaz-Gonzalez
82ec62b3bc fix: correct check for existing image 2018-10-10 02:42:43 -04:00
Jose Diaz-Gonzalez
4ae25c179c feat: add ability to upgrade service image and image-version 2018-10-10 00:13:56 -04:00
Jose Diaz-Gonzalez
ba2774ae83 feat: add command to list linked services for a given app 2018-07-21 16:31:53 -04:00
Jose Diaz-Gonzalez
7867e9baee fix: properly set SERVICE_ALIAS 2018-04-24 15:05:47 -04:00
Jose Diaz-Gonzalez
e25e2bfc11 feat: properly handle custom aliases and error states for alias usage when calling link subcommand. Refs dokku/dokku-redis#64 2018-04-24 03:21:52 -04:00
Jose Diaz-Gonzalez
6380a5db56 refactor: make variable as dns hostname more clear 2018-04-24 02:54:42 -04:00
Jose Diaz-Gonzalez
e297e08ad9 fix: remove an infinite loop. Refs dokku/dokku-redis#64 2018-04-24 02:18:23 -04:00
Jose Diaz-Gonzalez
4f849b99ce feat: implement link querystring flags. Refs dokku/dokku-redis#64 2018-04-24 01:40:18 -04:00
Jose Diaz-Gonzalez
df593ec155 refactor: move unimplemented command detection into config file 2018-04-24 00:27:14 -04:00
Jose Diaz-Gonzalez
4ec1a06dc6 fix: set SERVICE_ROOT variable for backups 2018-04-23 18:11:21 -04:00
Jose Diaz-Gonzalez
3913499c4a fix: set ID variable for backups 2018-04-23 18:08:26 -04:00
Jose Diaz-Gonzalez
f59f7fbe53 chore: standardize on single method of setting backup root. Refs dokku/dokku-redis#91 2018-04-23 17:36:43 -04:00
Jose Diaz-Gonzalez
15f29c11ec fix: properly handle use-iam flag. Closes dokku/dokku-redis#88 2018-04-23 17:11:30 -04:00
Jose Diaz-Gonzalez
fd004ec62a fix: silence errors when a container does not exist. Closes dokku/dokku-redis#85 2018-04-23 15:51:58 -04:00
Jose Diaz-Gonzalez
43e7150365 feat: create backup-schedule-cat subcommand 2018-04-23 14:39:21 -04:00
Jose Diaz-Gonzalez
91570bd195 feat: implement exists and linked subcommands 2018-02-25 15:42:54 -05:00
Jose Diaz-Gonzalez
61d6c9726a fix: allow unlinking a service regardless of config status
Closes dokku/dokku-redis#92
2018-01-11 22:55:35 -05:00
Jose Diaz-Gonzalez
bfa7e0d31e fix: ensure we create the config directory 2017-09-11 07:13:41 -04:00
Jose Diaz-Gonzalez
7fdff8e9a3 feat: add support for -u flag as alias for --use-iam 2017-09-10 19:14:27 -04:00
Jose Diaz-Gonzalez
925aef4c78 feat: add support for --tail 2017-09-10 01:20:41 -04:00
Jose Diaz-Gonzalez
d45123b8c4 feat: Adds possibility to set encryption for s3 2017-09-09 14:32:14 -04:00
Jose Diaz-Gonzalez
40a6bab3a3 fix: correct shellcheck error 2017-08-28 11:45:47 -04:00
Jose Diaz-Gonzalez
f2616b1700 fix: skip removing the ambassador container when it isn't running. Closes dokku/dokku-mongo#90 2017-08-27 18:55:22 -04:00
Jose Diaz-Gonzalez
014d7b1e76 feat: add ability to specify custom flags on clone/create
Refs dokku/dokku-redis#64
2017-08-26 18:10:36 -04:00
Jose Diaz-Gonzalez
54c436d042 feat: Add a --use-iam flag to backup subcommand 2017-08-26 04:22:32 -04:00
Jose Diaz-Gonzalez
c4b0235936 Adds parameters to backup-auth for region support and non AWS endpoint support
Refs dokku/dokku-mariadb#61
2017-08-26 00:03:36 -04:00
Jose Diaz-Gonzalez
cfe18140f7 fix: use updated dokkupaas/s3backup image to fix backup issues. Closes dokku/dokku-postgres#109 2017-04-13 19:56:21 -06:00
Jose Diaz-Gonzalez
f198425c2c feat: enable uploading backups to any region 2017-04-11 09:50:14 -06:00
Jose Diaz-Gonzalez
e1d4f85974 Fixed temp dir cleanup in service_backup() 2017-03-19 17:50:52 -06:00
Jose Diaz-Gonzalez
797352e007 feat: ensure permissions are set properly on cron files 2017-01-12 01:53:43 -07:00
Jose Diaz-Gonzalez
f001535060 feat: add s3 backup support 2016-10-31 11:39:22 -06:00