mirror of
https://github.com/bitnami/containers.git
synced 2026-10-10 12:28:35 +02:00
[bitnami/mastodon] Release 4.5.11-debian-12-r1 (#94464)
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -7,7 +7,7 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
|
||||
ARG TARGETARCH
|
||||
|
||||
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||
org.opencontainers.image.created="2026-06-03T14:21:59Z" \
|
||||
org.opencontainers.image.created="2026-06-09T09:30:04Z" \
|
||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/mastodon/README.md" \
|
||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mastodon" \
|
||||
@@ -29,7 +29,7 @@ RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \
|
||||
mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
|
||||
COMPONENTS=( \
|
||||
"node-22.22.3-0-linux-${OS_ARCH}-debian-12" \
|
||||
"python-3.14.5-2-linux-${OS_ARCH}-debian-12" \
|
||||
"python-3.14.5-3-linux-${OS_ARCH}-debian-12" \
|
||||
"postgresql-client-18.4.0-0-linux-${OS_ARCH}-debian-12" \
|
||||
"wait-for-port-1.0.10-11-linux-${OS_ARCH}-debian-12" \
|
||||
"redis-client-8.8.0-0-linux-${OS_ARCH}-debian-12" \
|
||||
@@ -54,7 +54,7 @@ COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/mastodon/postunpack.sh
|
||||
ENV APP_VERSION="4.5.11" \
|
||||
BITNAMI_APP_NAME="mastodon" \
|
||||
IMAGE_REVISION="0" \
|
||||
IMAGE_REVISION="1" \
|
||||
LD_LIBRARY_PATH="/opt/bitnami/common/lib:/opt/bitnami/postgresql/lib" \
|
||||
PATH="/opt/bitnami/common/bin:/opt/bitnami/node/bin:/opt/bitnami/python/bin:/opt/bitnami/postgresql/bin:/opt/bitnami/redis/bin:/opt/bitnami/ruby/bin:/opt/bitnami/mastodon/bin:$PATH"
|
||||
|
||||
|
||||
-1
@@ -1 +0,0 @@
|
||||
873f755a79e805bb950da235f991af2edbe89c23dad4b13cd33b089e4f1b7ff6 python-3.14.5-2-linux-amd64-debian-12.tar.gz
|
||||
-1
@@ -1 +0,0 @@
|
||||
be023b204af7213748a2bae639e1eec89ce42238b376d68d6262ad364f49c1d3 python-3.14.5-2-linux-arm64-debian-12.tar.gz
|
||||
+1
@@ -0,0 +1 @@
|
||||
d9e352c2f6591c7d95c29056710d9dc76298884fbf9c807bcee738fd304a11f0 python-3.14.5-3-linux-amd64-debian-12.tar.gz
|
||||
+1
@@ -0,0 +1 @@
|
||||
d00d2709bfb3464eb9bfc7647c59a4a42f589c0472436ffa2e8dd3df01238d05 python-3.14.5-3-linux-arm64-debian-12.tar.gz
|
||||
@@ -170,7 +170,7 @@ ensure_user_exists() {
|
||||
if [[ -n "$home" ]]; then
|
||||
mkdir -p "$home"
|
||||
usermod -d "$home" "$user" >/dev/null 2>&1
|
||||
configure_permissions_ownership "$home" -d "775" -f "664" -u "$user" -g "$group"
|
||||
configure_permissions_ownership "$home" -d "775" -f "664" -u "$user" -g "$group" -n
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#########################
|
||||
is_int() {
|
||||
local -r int="${1:?missing value}"
|
||||
if [[ "$int" =~ ^-?[0-9]+ ]]; then
|
||||
if [[ "$int" =~ ^-?[0-9]+$ ]]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
|
||||
@@ -49,3 +49,36 @@ get_sematic_version () {
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
########################
|
||||
# Compares two semantic versions
|
||||
# Arguments:
|
||||
# $1 - version1: first version to compare
|
||||
# $2 - version2: second version to compare
|
||||
# Returns:
|
||||
# -1 if version1 is less than version2
|
||||
# 0 if version1 is equal to version2
|
||||
# 1 if version1 is greater than version2
|
||||
#########################
|
||||
compare_semantic_versions() {
|
||||
local version1="${1:?version1 is required}"
|
||||
local version2="${2:?version2 is required}"
|
||||
local major1 major2 minor1 minor2 patch1 patch2
|
||||
|
||||
major1="$(get_sematic_version "$version1" 1)"
|
||||
major2="$(get_sematic_version "$version2" 1)"
|
||||
minor1="$(get_sematic_version "$version1" 2)"
|
||||
minor2="$(get_sematic_version "$version2" 2)"
|
||||
patch1="$(get_sematic_version "$version1" 3)"
|
||||
patch2="$(get_sematic_version "$version2" 3)"
|
||||
|
||||
if [[ "$major1" -eq "$major2" ]] && [[ "$minor1" -eq "$minor2" ]] && [[ "$patch1" -eq "$patch2" ]]; then
|
||||
echo "0"
|
||||
elif [[ "$major1" -lt "$major2" ]] ||
|
||||
{ [[ "$major1" -eq "$major2" ]] && [[ "$minor1" -lt "$minor2" ]]; } ||
|
||||
{ [[ "$major1" -eq "$major2" ]] && [[ "$minor1" -eq "$minor2" ]] && [[ "$patch1" -lt "$patch2" ]]; }; then
|
||||
echo "-1"
|
||||
else
|
||||
echo "1"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -141,6 +141,9 @@ mastodon_validate() {
|
||||
check_valid_port "MASTODON_REDIS_PORT_NUMBER"
|
||||
|
||||
check_true_false "MASTODON_ALLOW_ALL_DOMAINS"
|
||||
if is_boolean_yes "$MASTODON_ALLOW_ALL_DOMAINS"; then
|
||||
warn "MASTODON_ALLOW_ALL_DOMAINS is set to true which opens up vulnerability to password-reset poisoning attacks. This is not recommended for production environments."
|
||||
fi
|
||||
return "$error_code"
|
||||
}
|
||||
|
||||
@@ -254,7 +257,7 @@ mastodon_ensure_admin_user_exists() {
|
||||
# encrypted_password field set and then we proceed to reset the password
|
||||
# https://github.com/mastodon/mastodon/blob/main/app/models/user.rb#L374
|
||||
mastodon_console_execute <<EOF
|
||||
user = User.find(1)
|
||||
user = User.find_by!(email: '${MASTODON_ADMIN_EMAIL}')
|
||||
user.reset_password!
|
||||
user.reset_password('${MASTODON_ADMIN_PASSWORD}', '${MASTODON_ADMIN_PASSWORD}')
|
||||
EOF
|
||||
|
||||
@@ -135,7 +135,7 @@ export MASTODON_CREATE_ADMIN="${MASTODON_CREATE_ADMIN:-true}"
|
||||
export MASTODON_ADMIN_USERNAME="${MASTODON_ADMIN_USERNAME:-user}"
|
||||
export MASTODON_ADMIN_PASSWORD="${MASTODON_ADMIN_PASSWORD:-}"
|
||||
export MASTODON_ADMIN_EMAIL="${MASTODON_ADMIN_EMAIL:-user@bitnami.org}"
|
||||
export MASTODON_ALLOW_ALL_DOMAINS="${MASTODON_ALLOW_ALL_DOMAINS:-true}"
|
||||
export MASTODON_ALLOW_ALL_DOMAINS="${MASTODON_ALLOW_ALL_DOMAINS:-false}"
|
||||
MASTODON_SECRET_KEY_BASE="${MASTODON_SECRET_KEY_BASE:-"${SECRET_KEY_BASE:-}"}"
|
||||
export MASTODON_SECRET_KEY_BASE="${MASTODON_SECRET_KEY_BASE:-}"
|
||||
export SECRET_KEY_BASE="$MASTODON_SECRET_KEY_BASE"
|
||||
|
||||
@@ -62,7 +62,7 @@ The following tables list the main variables you can set.
|
||||
| `MASTODON_ADMIN_USERNAME` | Mastodon admin username. | `user` |
|
||||
| `MASTODON_ADMIN_PASSWORD` | Mastodon admin password. | `nil` |
|
||||
| `MASTODON_ADMIN_EMAIL` | Mastodon admin email. | `user@bitnami.org` |
|
||||
| `MASTODON_ALLOW_ALL_DOMAINS` | Allow accessing Mastodon with any domain. | `true` |
|
||||
| `MASTODON_ALLOW_ALL_DOMAINS` | Allow accessing Mastodon with any domain. | `false` |
|
||||
| `MASTODON_SECRET_KEY_BASE` | Mastodon secret key base. | `nil` |
|
||||
| `MASTODON_OTP_SECRET` | Mastodon OTP secret. | `nil` |
|
||||
| `MASTODON_HTTPS_ENABLED` | Enable HTTPS in Mastodon. | `false` |
|
||||
|
||||
Reference in New Issue
Block a user