mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 12:07:45 +01:00
This is useful when there is a service not managed by Dokku but should be exposed via the Dokku routing layer. As an example, some binaries (consul, nomad, vault) expose web uis, and are traditionally run on the host directly vs in a container. Closes #4665
24 lines
537 B
Bash
Executable File
24 lines
537 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
cmd-scheduler-null-help() {
|
|
declare desc="help command"
|
|
declare CMD="$1"
|
|
local plugin_name="scheduler-null"
|
|
local plugin_description="No-op scheduler plugin"
|
|
|
|
if [[ "$CMD" == "${plugin_name}:help" ]]; then
|
|
echo -e "Usage: dokku ${plugin_name}[:COMMAND]"
|
|
echo ''
|
|
echo "$plugin_description"
|
|
echo ''
|
|
elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then
|
|
true
|
|
else
|
|
cat <<help_desc
|
|
$plugin_name, $plugin_description
|
|
help_desc
|
|
fi
|
|
}
|