Commit Graph

71 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
d2185f2144 feat: add service-specific header to info call 2020-03-20 15:59:03 -04:00
Jose Diaz-Gonzalez
e216b97c23 fix: correct service title 2020-03-06 10:19:43 -05:00
Jose Diaz-Gonzalez
bc9874bc49 refactor: drop full info from :list command
This can be fetched from :info if necessary, and slows down the list quite a bit.
2020-03-03 16:02:51 -05:00
Jose Diaz-Gonzalez
b7cfbd37b4 fix: speed up service_status by reducing container status calls 2020-03-03 15:57:21 -05:00
Jose Diaz-Gonzalez
0cec2f2119 chore: update dokku/ambassador version 2019-12-27 16:55:26 -05:00
Jose Diaz-Gonzalez
233b03e7ca chore: update dokku/s3backup version 2019-12-27 16:53:23 -05:00
Jose Diaz-Gonzalez
312d9298c7 feat: add service:links command
This allows users to script against apps that are linked to a given service
2019-07-15 14:59:05 -07:00
Jose Diaz-Gonzalez
5849f1f19f fix: use correct variable for checking for password file 2019-07-12 12:56:37 -07:00
Jose Diaz-Gonzalez
86e7d53749 chore: move to helper functions for fetching passwords 2019-07-11 16:34:35 -07:00
Jose Diaz-Gonzalez
46bd7f534f feat: update ambassador, s3backup, and wait images 2019-07-11 14:31:47 -07:00
Jose Diaz-Gonzalez
0c4db51565 fix: ensure the tracked container id is up to date
If the ID file contained an incorrect value, calling :start would say the service is started but :info would still show the container as missing.

Also fix an issue where docker inspect leaked stderr when the container was missing.

Refs dokku/dokku-redis#133
2019-06-11 15:44:55 -04:00
Jose Diaz-Gonzalez
6bab5bad28 feat: re-allow dashes in names
This PR allows dashes in service names, while still sanitizing them before they are used as database names. If the datastore is pre-existing, the datatabase name is assumed to be the same as the service name, and returned appropriately.
2019-05-30 17:03:48 -04:00
Jose Diaz-Gonzalez
86ff4b4cfa chore: reorder functions 2019-05-30 11:13:22 -04:00
Jose Diaz-Gonzalez
e8e645f087 chore: move retry-docker-command to common-functions 2019-05-30 11:11:02 -04:00
Jose Diaz-Gonzalez
7ddd0c9201 chore: run shfmt 2019-05-30 11:06:25 -04:00
Jose Diaz-Gonzalez
2ddc21b748 fix: update docker-s3backup image to fix backups to s3 2019-03-28 05:23:39 -04:00
Jose Diaz-Gonzalez
87c89f61af fix: correct issue where aliases were being generated incorrectly 2019-03-27 12:18:18 -04:00
Jose Diaz-Gonzalez
2b4cd95ddd feat: update to latest dokku/s3backup image 2019-03-25 13:47:03 -04:00
Jose Diaz-Gonzalez
0641b7baae feat: switch to updated ambassador image 2019-03-25 12:46:01 -04:00
Jose Diaz-Gonzalez
3742195ad1 chore: unify with other plugins 2019-03-19 15:00:55 -04:00
Jose Diaz-Gonzalez
744e65760b 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:28 -04:00
Jose Diaz-Gonzalez
b28fd26815 fix: correct check to see if container exists 2019-03-16 20:40:07 -04:00
Jose Diaz-Gonzalez
7ce772224a fix: correct the validation message 2019-03-09 16:39:35 -05:00
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
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
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
11c44cb1b2 fix: clean up backup containers after use
Closes dokku/dokku#104
2018-12-02 04:46:52 -05:00
Jose Diaz-Gonzalez
3fc6322b02 fix: correct issues in upgrade and fix tests 2018-10-11 14:16:47 -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
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
b32b037336 chore: correct verbiage around upgrades 2018-10-10 02:54:34 -04:00
Jose Diaz-Gonzalez
86e6e80c01 fix: correct check for existing image 2018-10-10 02:42:43 -04:00
Jose Diaz-Gonzalez
e3be8f1715 feat: add ability to upgrade service image and image-version 2018-10-10 00:14:14 -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
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
8ac361f930 refactor: make variable as dns hostname more clear 2018-04-24 02:54:58 -04:00
Jose Diaz-Gonzalez
e3b9237e59 fix: remove an infinite loop. Refs dokku/dokku-redis#64 2018-04-24 02:18:37 -04:00
Jose Diaz-Gonzalez
4e746fc624 feat: implement link querystring flags. Refs dokku/dokku-redis#64 2018-04-24 01:40:32 -04:00
Jose Diaz-Gonzalez
fdb90b85a3 refactor: move unimplemented command detection into config file 2018-04-24 00:27:28 -04:00
Jose Diaz-Gonzalez
4450474b01 fix: set SERVICE_ROOT variable for backups 2018-04-23 18:11:45 -04:00
Jose Diaz-Gonzalez
4be1c8cf77 fix: set ID variable for backups 2018-04-23 18:08:49 -04:00
Jose Diaz-Gonzalez
a074f239b0 chore: standardize on single method of setting backup root. Refs dokku/dokku-redis#91 2018-04-23 17:37:11 -04:00
Jose Diaz-Gonzalez
a9319fcb0e fix: properly handle use-iam flag. Closes dokku/dokku-redis#88 2018-04-23 17:12:00 -04:00
Jose Diaz-Gonzalez
4c6ceab122 fix: silence errors when a container does not exist. Closes dokku/dokku-redis#85 2018-04-23 15:52:27 -04:00
Jose Diaz-Gonzalez
75ad99415f feat: create backup-schedule-cat subcommand 2018-04-23 14:39:41 -04:00
Jose Diaz-Gonzalez
3f257c4aca feat: implement exists and linked subcommands 2018-02-25 15:42:27 -05:00
Jose Diaz-Gonzalez
99307312c9 fix: Properly handle updated config functions
Closes dokku/dokku-redis#90
2018-01-12 06:08:57 -05:00