Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91d3d884ba | ||
|
|
e024260fe6 | ||
|
|
6f4728b1a7 | ||
|
|
88c60fd878 | ||
|
|
850ae71a0d | ||
|
|
ae702634dd |
@@ -1,4 +1,4 @@
|
|||||||
# dokku mysql [](https://github.com/dokku/dokku-mysql/actions/workflows/ci.yml?query=branch%3Amaster) [](https://webchat.libera.chat/?channels=dokku)
|
# dokku mysql [](https://github.com/dokku/dokku-mysql/actions/workflows/ci.yml?query=branch%3Amaster) [](https://webchat.libera.chat/?channels=dokku)
|
||||||
|
|
||||||
Official mysql plugin for dokku. Currently defaults to installing [mysql 8.0.31](https://hub.docker.com/_/mysql/).
|
Official mysql plugin for dokku. Currently defaults to installing [mysql 8.0.31](https://hub.docker.com/_/mysql/).
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ def header(service):
|
|||||||
return " ".join(
|
return " ".join(
|
||||||
[
|
[
|
||||||
f"# dokku {service}",
|
f"# dokku {service}",
|
||||||
f'[](https://github.com/dokku/dokku-{service}/actions/workflows/ci.yml?query=branch%3Amaster)',
|
f'[](https://github.com/dokku/dokku-{service}/actions/workflows/ci.yml?query=branch%3Amaster)',
|
||||||
f'[](https://webchat.libera.chat/?channels=dokku)',
|
f'[](https://webchat.libera.chat/?channels=dokku)',
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
3
config
3
config
@@ -3,7 +3,8 @@ _DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
export MYSQL_IMAGE=${MYSQL_IMAGE:="$(awk -F '[ :]' '{print $2}' "${_DIR}/Dockerfile")"}
|
export MYSQL_IMAGE=${MYSQL_IMAGE:="$(awk -F '[ :]' '{print $2}' "${_DIR}/Dockerfile")"}
|
||||||
export MYSQL_IMAGE_VERSION=${MYSQL_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' "${_DIR}/Dockerfile")"}
|
export MYSQL_IMAGE_VERSION=${MYSQL_IMAGE_VERSION:="$(awk -F '[ :]' '{print $3}' "${_DIR}/Dockerfile")"}
|
||||||
export MYSQL_ROOT=${MYSQL_ROOT:="$DOKKU_LIB_ROOT/services/mysql"}
|
export MYSQL_ROOT=${MYSQL_ROOT:="$DOKKU_LIB_ROOT/services/mysql"}
|
||||||
export MYSQL_HOST_ROOT=${MYSQL_HOST_ROOT:=$MYSQL_ROOT}
|
export DOKKU_LIB_HOST_ROOT=${DOKKU_LIB_HOST_ROOT:=$DOKKU_LIB_ROOT}
|
||||||
|
export MYSQL_HOST_ROOT=${MYSQL_HOST_ROOT:="$DOKKU_LIB_HOST_ROOT/services/mysql"}
|
||||||
|
|
||||||
export PLUGIN_UNIMPLEMENTED_SUBCOMMANDS=()
|
export PLUGIN_UNIMPLEMENTED_SUBCOMMANDS=()
|
||||||
export PLUGIN_COMMAND_PREFIX="mysql"
|
export PLUGIN_COMMAND_PREFIX="mysql"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[plugin]
|
[plugin]
|
||||||
description = "dokku mysql service plugin"
|
description = "dokku mysql service plugin"
|
||||||
version = "1.26.0"
|
version = "1.26.2"
|
||||||
[plugin.config]
|
[plugin.config]
|
||||||
|
|||||||
@@ -38,6 +38,16 @@ service-upgrade-cmd() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! service_image_exists "$SERVICE"; then
|
||||||
|
if [[ "$PLUGIN_DISABLE_PULL" == "true" ]]; then
|
||||||
|
dokku_log_warn "${PLUGIN_DISABLE_PULL_VARIABLE} environment variable detected. Not running pull command." 1>&2
|
||||||
|
dokku_log_warn " docker pull ${IMAGE}" 1>&2
|
||||||
|
dokku_log_warn "$PLUGIN_SERVICE service $SERVICE upgrade failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
docker pull "$PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION" || dokku_log_fail "$PLUGIN_SERVICE image $PLUGIN_IMAGE:$PLUGIN_IMAGE_VERSION pull failed"
|
||||||
|
fi
|
||||||
|
|
||||||
service_commit_config "$SERVICE"
|
service_commit_config "$SERVICE"
|
||||||
|
|
||||||
dokku_log_info2 "Upgrading $SERVICE to $NEW_PLUGIN_IMAGE_TAG"
|
dokku_log_info2 "Upgrading $SERVICE to $NEW_PLUGIN_IMAGE_TAG"
|
||||||
|
|||||||
Reference in New Issue
Block a user