feat: integrate resource plugin with scheduler-docker-local

This commit is contained in:
Jose Diaz-Gonzalez
2019-04-08 11:30:45 -04:00
parent 3f0126a471
commit 243d5ecc43
7 changed files with 173 additions and 3 deletions

View File

@@ -1199,6 +1199,22 @@ fi
plugn trigger receive-app $APP $newrev
```
### `resource-get-property`
- Description: Fetches a given resource property value
- Invoked by:
- Arguments: `$APP` `$PROC_TYPE` `$RESOURCE_TYPE` `$PROPERTY`
- Example:
```shell
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
APP="$1"; PROC_TYPE="$2" RESOURCE_TYPE="$3" PROPERTY="$4"
# TODO
```
### `retire-container-failed`
- Description: Allows you to run commands if/when retiring old containers has failed