Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8632f05449 | ||
|
|
415c46a1b0 | ||
|
|
bb4ebfd74b | ||
|
|
54e172dc6b | ||
|
|
d81a1bed26 | ||
|
|
f31800ffa7 | ||
|
|
1ddb84f358 | ||
|
|
aa8e145d9b | ||
|
|
33d6f2dc7b |
@@ -1 +1 @@
|
|||||||
FROM mysql:8.0.28
|
FROM mysql:8.0.29
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# 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.27](https://hub.docker.com/_/mysql/).
|
Official mysql plugin for dokku. Currently defaults to installing [mysql 8.0.28](https://hub.docker.com/_/mysql/).
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ flags:
|
|||||||
- `-C|--custom-env "USER=alpha;HOST=beta"`: semi-colon delimited environment variables to start the service with
|
- `-C|--custom-env "USER=alpha;HOST=beta"`: semi-colon delimited environment variables to start the service with
|
||||||
- `-i|--image IMAGE`: the image name to start the service with
|
- `-i|--image IMAGE`: the image name to start the service with
|
||||||
- `-I|--image-version IMAGE_VERSION`: the image version to start the service with
|
- `-I|--image-version IMAGE_VERSION`: the image version to start the service with
|
||||||
- `-m|--memory MEMORY`: container memory limit (default: unlimited)
|
- `-m|--memory MEMORY`: container memory limit in megabytes (default: unlimited)
|
||||||
- `-p|--password PASSWORD`: override the user-level service password
|
- `-p|--password PASSWORD`: override the user-level service password
|
||||||
- `-r|--root-password PASSWORD`: override the root-level service password
|
- `-r|--root-password PASSWORD`: override the root-level service password
|
||||||
- `-s|--shm-size SHM_SIZE`: override shared memory size for mysql docker container
|
- `-s|--shm-size SHM_SIZE`: override shared memory size for mysql docker container
|
||||||
@@ -441,7 +441,7 @@ flags:
|
|||||||
- `-C|--custom-env "USER=alpha;HOST=beta"`: semi-colon delimited environment variables to start the service with
|
- `-C|--custom-env "USER=alpha;HOST=beta"`: semi-colon delimited environment variables to start the service with
|
||||||
- `-i|--image IMAGE`: the image name to start the service with
|
- `-i|--image IMAGE`: the image name to start the service with
|
||||||
- `-I|--image-version IMAGE_VERSION`: the image version to start the service with
|
- `-I|--image-version IMAGE_VERSION`: the image version to start the service with
|
||||||
- `-m|--memory MEMORY`: container memory limit (default: unlimited)
|
- `-m|--memory MEMORY`: container memory limit in megabytes (default: unlimited)
|
||||||
- `-p|--password PASSWORD`: override the user-level service password
|
- `-p|--password PASSWORD`: override the user-level service password
|
||||||
- `-r|--root-password PASSWORD`: override the root-level service password
|
- `-r|--root-password PASSWORD`: override the root-level service password
|
||||||
- `-s|--shm-size SHM_SIZE`: override shared memory size for mysql docker container
|
- `-s|--shm-size SHM_SIZE`: override shared memory size for mysql docker container
|
||||||
|
|||||||
7
install
7
install
@@ -24,10 +24,10 @@ plugin-install() {
|
|||||||
pull-docker-image "$PLUGIN_WAIT_IMAGE"
|
pull-docker-image "$PLUGIN_WAIT_IMAGE"
|
||||||
|
|
||||||
mkdir -p "$PLUGIN_DATA_ROOT" || echo "Failed to create $PLUGIN_SERVICE data directory"
|
mkdir -p "$PLUGIN_DATA_ROOT" || echo "Failed to create $PLUGIN_SERVICE data directory"
|
||||||
chown dokku:dokku "$PLUGIN_DATA_ROOT"
|
chown "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "$PLUGIN_DATA_ROOT"
|
||||||
|
|
||||||
mkdir -p "$PLUGIN_CONFIG_ROOT" || echo "Failed to create $PLUGIN_SERVICE config directory"
|
mkdir -p "$PLUGIN_CONFIG_ROOT" || echo "Failed to create $PLUGIN_SERVICE config directory"
|
||||||
chown dokku:dokku "$PLUGIN_CONFIG_ROOT"
|
chown "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "$PLUGIN_CONFIG_ROOT"
|
||||||
|
|
||||||
rm -f "/etc/sudoers.d/dokku-${PLUGIN_COMMAND_PREFIX}*"
|
rm -f "/etc/sudoers.d/dokku-${PLUGIN_COMMAND_PREFIX}*"
|
||||||
_SUDOERS_FILE="/etc/sudoers.d/dokku-${PLUGIN_COMMAND_PREFIX}"
|
_SUDOERS_FILE="/etc/sudoers.d/dokku-${PLUGIN_COMMAND_PREFIX}"
|
||||||
@@ -56,8 +56,11 @@ EOL
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chown "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "$SERVICE_ROOT/IMAGE" "$SERVICE_ROOT/IMAGE_VERSION"
|
||||||
|
|
||||||
if [[ -f "$SERVICE_ROOT/${PLUGIN_VARIABLE}_CONFIG_OPTIONS" ]]; then
|
if [[ -f "$SERVICE_ROOT/${PLUGIN_VARIABLE}_CONFIG_OPTIONS" ]]; then
|
||||||
mv "$SERVICE_ROOT/${PLUGIN_VARIABLE}_CONFIG_OPTIONS" "$SERVICE_ROOT/CONFIG_OPTIONS"
|
mv "$SERVICE_ROOT/${PLUGIN_VARIABLE}_CONFIG_OPTIONS" "$SERVICE_ROOT/CONFIG_OPTIONS"
|
||||||
|
chown "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "$SERVICE_ROOT/CONFIG_OPTIONS"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[plugin]
|
[plugin]
|
||||||
description = "dokku mysql service plugin"
|
description = "dokku mysql service plugin"
|
||||||
version = "1.19.1"
|
version = "1.19.5"
|
||||||
[plugin.config]
|
[plugin.config]
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ service-clone-cmd() {
|
|||||||
#F -C|--custom-env "USER=alpha;HOST=beta", semi-colon delimited environment variables to start the service with
|
#F -C|--custom-env "USER=alpha;HOST=beta", semi-colon delimited environment variables to start the service with
|
||||||
#F -i|--image IMAGE, the image name to start the service with
|
#F -i|--image IMAGE, the image name to start the service with
|
||||||
#F -I|--image-version IMAGE_VERSION, the image version to start the service with
|
#F -I|--image-version IMAGE_VERSION, the image version to start the service with
|
||||||
#F -m|--memory MEMORY, container memory limit (default: unlimited)
|
#F -m|--memory MEMORY, container memory limit in megabytes (default: unlimited)
|
||||||
#F -p|--password PASSWORD, override the user-level service password
|
#F -p|--password PASSWORD, override the user-level service password
|
||||||
#F -r|--root-password PASSWORD, override the root-level service password
|
#F -r|--root-password PASSWORD, override the root-level service password
|
||||||
#F -s|--shm-size SHM_SIZE, override shared memory size for $PLUGIN_COMMAND_PREFIX docker container
|
#F -s|--shm-size SHM_SIZE, override shared memory size for $PLUGIN_COMMAND_PREFIX docker container
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ service-create-cmd() {
|
|||||||
#F -C|--custom-env "USER=alpha;HOST=beta", semi-colon delimited environment variables to start the service with
|
#F -C|--custom-env "USER=alpha;HOST=beta", semi-colon delimited environment variables to start the service with
|
||||||
#F -i|--image IMAGE, the image name to start the service with
|
#F -i|--image IMAGE, the image name to start the service with
|
||||||
#F -I|--image-version IMAGE_VERSION, the image version to start the service with
|
#F -I|--image-version IMAGE_VERSION, the image version to start the service with
|
||||||
#F -m|--memory MEMORY, container memory limit (default: unlimited)
|
#F -m|--memory MEMORY, container memory limit in megabytes (default: unlimited)
|
||||||
#F -p|--password PASSWORD, override the user-level service password
|
#F -p|--password PASSWORD, override the user-level service password
|
||||||
#F -r|--root-password PASSWORD, override the root-level service password
|
#F -r|--root-password PASSWORD, override the root-level service password
|
||||||
#F -s|--shm-size SHM_SIZE, override shared memory size for $PLUGIN_COMMAND_PREFIX docker container
|
#F -s|--shm-size SHM_SIZE, override shared memory size for $PLUGIN_COMMAND_PREFIX docker container
|
||||||
|
|||||||
Reference in New Issue
Block a user