feat: add trigger for fetching logs properties

This commit is contained in:
Jose Diaz-Gonzalez
2021-01-23 13:39:29 -05:00
parent ccbe2c719a
commit 815b839eeb
5 changed files with 38 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ dokku logs:failed --all
### Docker Log Retention
Docker log retention can be specified via the `logs:set` command by specifying a value for `max-size`. Log retention is set via injected docker options for all applications, but is also available via a trigger for alternative schedulers.
Docker log retention can be specified via the `logs:set` command by specifying a value for `max-size`. Log retention is set via injected docker options for all applications, but is also available via the `logs-get-property` trigger for alternative schedulers.
```shell
dokku logs:set node-js-app max-size 20m

View File

@@ -699,6 +699,22 @@ if [[ ! -f "$DOKKU_ROOT/HOSTNAME" ]]; then
fi
```
### `logs-get-property`
- Description: Fetches a given logs property value
- Invoked by:
- Arguments: `$APP` `$PROPERTY`
- Example:
```shell
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
APP="$1"; PROPERTY="$2"
# TODO
```
### `network-build-config`
- Description: Rebuilds network configuration