这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/development/plugin-creation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The below plugin is a dummy `dokku hello` plugin. If your plugin exposes command
```shell
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

case "$1" in
hello)
Expand Down
6 changes: 3 additions & 3 deletions docs/development/pluginhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x

set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x

source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

dokku_log_info1" Installing GraphicsMagick..."

Expand All @@ -279,7 +279,7 @@ docker commit $ID $IMAGE > /dev/null

set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x

source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

dokku_log_info1" Installing $CONTAINER_PACKAGE..."

Expand Down Expand Up @@ -360,7 +360,7 @@ fi

set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x

source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

APP="$1"
IMAGE="dokku/$APP"
Expand Down
2 changes: 1 addition & 1 deletion plugins/00_dokku-standard/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

case "$1" in
build)
Expand Down
2 changes: 1 addition & 1 deletion plugins/20_events/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

PLUGIN_DIR="$(dirname $0)"

Expand Down
2 changes: 1 addition & 1 deletion plugins/20_events/hook
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

[[ ! "$DOKKU_EVENTS" ]] || dokku_log_pluginhook_call "$(basename $0)" "$@"
2 changes: 1 addition & 1 deletion plugins/20_events/install
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

DOKKU_RSYSLOG_FILTER=/etc/rsyslog.d/99-dokku.conf
DOKKU_LOGROTATE_FILE=/etc/logrotate.d/dokku
Expand Down
2 changes: 1 addition & 1 deletion plugins/apps/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

case "$1" in
apps)
Expand Down
2 changes: 1 addition & 1 deletion plugins/build-env/pre-build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

APP="$1"; IMAGE="dokku/$APP"; BUILD_ENV=""

Expand Down
2 changes: 1 addition & 1 deletion plugins/checks/check-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#

set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

APP="$1"; DOKKU_APP_CONTAINER_ID="$2"; DOKKU_APP_CONTAINER_TYPE="$3"; DOKKU_APP_LISTEN_PORT="$4"; DOKKU_APP_LISTEN_IP="$5"
if [[ -z "$DOKKU_APP_LISTEN_PORT" ]] && [[ -f "$DOKKU_ROOT/$APP/PORT" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion plugins/config/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

config_create () {
[ -f $ENV_FILE ] || {
Expand Down
2 changes: 1 addition & 1 deletion plugins/config/docker-args-deploy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

STDIN=$(cat); APP="$1"; IMAGE="dokku/$APP"
DOCKERFILE_ENV_FILE="$DOKKU_ROOT/$APP/DOCKERFILE_ENV_FILE"
Expand Down
2 changes: 1 addition & 1 deletion plugins/docker-options/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

PHASES=(build deploy run)

Expand Down
2 changes: 1 addition & 1 deletion plugins/domains/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

RE_IPV4="([0-9]{1,3}[\.]){3}[0-9]{1,3}"

Expand Down
2 changes: 1 addition & 1 deletion plugins/git/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

git_build_app_repo() {
verify_app_name "$1"
Expand Down
2 changes: 1 addition & 1 deletion plugins/git/receive-app
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

APP="$1"; REV="$2"

Expand Down
2 changes: 1 addition & 1 deletion plugins/nginx-vhosts/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

validate_nginx () {
set +e
Expand Down
2 changes: 1 addition & 1 deletion plugins/nginx-vhosts/post-deploy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

APP="$1"
if [[ -f "$DOKKU_ROOT/$APP/IP.web.1" ]] && [[ -f "$DOKKU_ROOT/$APP/PORT.web.1" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion plugins/nginx-vhosts/post-domains-update
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

APP="$1"

Expand Down
2 changes: 1 addition & 1 deletion plugins/ps/commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"
source "$(dirname $0)/functions"

case "$1" in
Expand Down
4 changes: 2 additions & 2 deletions plugins/ps/functions
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"

release_and_deploy() {
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"
local APP="$1"; local IMAGE="dokku/$APP"

if verify_image "$IMAGE"; then
Expand Down
2 changes: 1 addition & 1 deletion plugins/ps/pre-deploy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
source "$PLUGIN_PATH/common/functions"
source "$(dirname $0)/functions"

APP="$1"
Expand Down