Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f90d6ca6b | ||
|
|
603af87bd1 | ||
|
|
1a6536d398 | ||
|
|
412b300953 | ||
|
|
05d5e6e1fb | ||
|
|
707bccbb96 | ||
|
|
46312ff3df | ||
|
|
2e2034d4d8 | ||
|
|
0dc904c85f | ||
|
|
8fa1c65aa5 | ||
|
|
0fe00ee95b | ||
|
|
6cccf014ab | ||
|
|
09f1b1a858 |
2
.github/workflows/tagged-release.yml
vendored
2
.github/workflows/tagged-release.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2.2.2
|
uses: softprops/action-gh-release@v2.3.2
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
make_latest: "true"
|
make_latest: "true"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
FROM redis:8.0.1
|
FROM redis:8.2.0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# dokku redis [](https://github.com/dokku/dokku-redis/actions/workflows/ci.yml?query=branch%3Amaster) [](https://webchat.libera.chat/?channels=dokku)
|
# dokku redis [](https://github.com/dokku/dokku-redis/actions/workflows/ci.yml?query=branch%3Amaster) [](https://webchat.libera.chat/?channels=dokku)
|
||||||
|
|
||||||
Official redis plugin for dokku. Currently defaults to installing [redis 8.0.1](https://hub.docker.com/_/redis/).
|
Official redis plugin for dokku. Currently defaults to installing [redis 8.2.0](https://hub.docker.com/_/redis/).
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
|
|||||||
@@ -47,10 +47,12 @@ service_create() {
|
|||||||
mkdir -p "$SERVICE_ROOT/$PLUGIN_CONFIG_SUFFIX" || dokku_log_fail "Unable to create service config directory"
|
mkdir -p "$SERVICE_ROOT/$PLUGIN_CONFIG_SUFFIX" || dokku_log_fail "Unable to create service config directory"
|
||||||
touch "$LINKS_FILE"
|
touch "$LINKS_FILE"
|
||||||
|
|
||||||
|
REDIS_SERVICE_CONFIG="$SERVICE_ROOT/$PLUGIN_CONFIG_SUFFIX/redis.conf"
|
||||||
|
|
||||||
if [[ -z $REDIS_CONFIG_PATH ]]; then
|
if [[ -z $REDIS_CONFIG_PATH ]]; then
|
||||||
curl -sSLf "https://raw.githubusercontent.com/redis/redis/${PLUGIN_IMAGE_VERSION:0:3}/redis.conf" >"$SERVICE_ROOT/$PLUGIN_CONFIG_SUFFIX/redis.conf" || dokku_log_fail "Unable to download the default redis.conf to the config directory"
|
echo "# requirepass" > $REDIS_SERVICE_CONFIG
|
||||||
else
|
else
|
||||||
cp "$REDIS_CONFIG_PATH" "$SERVICE_ROOT/$PLUGIN_CONFIG_SUFFIX/redis.conf" || dokku_log_fail "Unable to copy the ${REDIS_CONFIG_PATH} to the config directory"
|
cp "$REDIS_CONFIG_PATH" "$REDIS_SERVICE_CONFIG" || dokku_log_fail "Unable to copy the ${REDIS_CONFIG_PATH} to the config directory"
|
||||||
fi
|
fi
|
||||||
PASSWORD=$(openssl rand -hex 32)
|
PASSWORD=$(openssl rand -hex 32)
|
||||||
if [[ -n "$SERVICE_PASSWORD" ]]; then
|
if [[ -n "$SERVICE_PASSWORD" ]]; then
|
||||||
@@ -59,7 +61,7 @@ service_create() {
|
|||||||
fi
|
fi
|
||||||
echo "$PASSWORD" >"$SERVICE_ROOT/PASSWORD"
|
echo "$PASSWORD" >"$SERVICE_ROOT/PASSWORD"
|
||||||
chmod 640 "$SERVICE_ROOT/PASSWORD"
|
chmod 640 "$SERVICE_ROOT/PASSWORD"
|
||||||
sed -i.bak "s/# requirepass.*/requirepass ${PASSWORD}/" "$SERVICE_ROOT/$PLUGIN_CONFIG_SUFFIX/redis.conf" && rm "$SERVICE_ROOT/$PLUGIN_CONFIG_SUFFIX/redis.conf.bak"
|
sed -i.bak "s/# requirepass.*/requirepass ${PASSWORD}/" "$REDIS_SERVICE_CONFIG" && rm "$SERVICE_ROOT/$PLUGIN_CONFIG_SUFFIX/redis.conf.bak"
|
||||||
|
|
||||||
service_commit_config "$SERVICE"
|
service_commit_config "$SERVICE"
|
||||||
write_database_name "$SERVICE"
|
write_database_name "$SERVICE"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[plugin]
|
[plugin]
|
||||||
description = "dokku redis service plugin"
|
description = "dokku redis service plugin"
|
||||||
version = "1.40.0"
|
version = "1.40.3"
|
||||||
[plugin.config]
|
[plugin.config]
|
||||||
|
|||||||
Reference in New Issue
Block a user