[bitnami/redmine] Release 6.1.2-debian-12-r15 (#94064)

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Bitnami Bot
2026-05-29 18:22:15 +02:00
committed by GitHub
parent 84e13acdcb
commit 654bd1c80b
13 changed files with 42 additions and 22 deletions
+3 -3
View File
@@ -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-05-27T09:12:52Z" \
org.opencontainers.image.created="2026-05-29T16:04:28Z" \
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/redmine/README.md" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/redmine" \
@@ -27,7 +27,7 @@ RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \
DOWNLOADS_URL=${SECRET_DOWNLOADS_URL:-${DOWNLOADS_URL}} ; \
mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
COMPONENTS=( \
"ruby-3.4.9-2-linux-${OS_ARCH}-debian-12" \
"ruby-3.4.9-3-linux-${OS_ARCH}-debian-12" \
"yq-4.53.2-1-linux-${OS_ARCH}-debian-12" \
"postgresql-client-18.4.0-0-linux-${OS_ARCH}-debian-12" \
"mysql-client-12.2.2-0-linux-${OS_ARCH}-debian-12" \
@@ -53,7 +53,7 @@ RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
RUN /opt/bitnami/scripts/redmine/postunpack.sh
ENV APP_VERSION="6.1.2" \
BITNAMI_APP_NAME="redmine" \
IMAGE_REVISION="14" \
IMAGE_REVISION="15" \
LD_LIBRARY_PATH="/opt/bitnami/mariadb/lib:/opt/bitnami/postgresql/lib:$LD_LIBRARY_PATH" \
PATH="/opt/bitnami/ruby/bin:/opt/bitnami/common/bin:/opt/bitnami/postgresql/bin:/opt/bitnami/mysql/bin:$PATH"
@@ -21,6 +21,7 @@ services:
- mariadb
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- REDMINE_PASSWORD=bitnami1
- ALLOW_EMPTY_PASSWORD=yes
- REDMINE_DATABASE_HOST=mariadb
- REDMINE_DATABASE_PORT_NUMBER=3306
@@ -1 +0,0 @@
8cee55181fe9e89068ca2a8984f407d64bd5b0d13cde927dc934c8f0416ea3d5 ruby-3.4.9-2-linux-amd64-debian-12.tar.gz
@@ -1 +0,0 @@
51b3a633dd7e8da6ea7329595d16f67af43bb552d06096d6563469ba0ecfdfd6 ruby-3.4.9-2-linux-arm64-debian-12.tar.gz
@@ -0,0 +1 @@
c918e07e4ea39e841b52eca79f27c262c412860e0164566477c3ce24841c4116 ruby-3.4.9-3-linux-amd64-debian-12.tar.gz
@@ -0,0 +1 @@
41ccd319fa60a236693c9325dd5591ce734ac689e08603780fa2de891f146047 ruby-3.4.9-3-linux-arm64-debian-12.tar.gz
@@ -131,6 +131,7 @@ relativize() {
# -d|--dir-mode - mode for files.
# -u|--user - user
# -g|--group - group
# -n|--no-dereference - do not follow symlinks (use for runtime root chown of daemon-writable dirs)
# Returns:
# None
#########################
@@ -140,6 +141,7 @@ configure_permissions_ownership() {
local file_mode=""
local user=""
local group=""
local follow_symlinks="yes"
# Validate arguments
shift 1
@@ -161,6 +163,9 @@ configure_permissions_ownership() {
shift
group="${1:?missing group}"
;;
-n | --no-dereference)
follow_symlinks="no"
;;
*)
echo "Invalid command line flag $1" >&2
return 1
@@ -169,22 +174,29 @@ configure_permissions_ownership() {
shift
done
# -L: follow symlinks and emits the target path
# This is dangerous at runtime, given a co-located lower-privileged process with write access
# to the target path can redirect the chown/chmod to arbitrary paths. Example:
# Lower-privileged process run: ln -s /etc /tmp/etc
# Then, setup.sh runs: configure_permissions_ownership --dir-mode 775 /tmp
local find_L_flag=(); [[ "$follow_symlinks" == "yes" ]] && find_L_flag=("-L")
# -h: changes symlink inode ownership without touching the target.
local chown_flags=(); [[ "$follow_symlinks" == "no" ]] && chown_flags=("-h")
read -r -a filepaths <<<"$paths"
for p in "${filepaths[@]}"; do
if [[ -e "$p" ]]; then
find -L "$p" -printf ""
if [[ -n $dir_mode ]]; then
find -L "$p" -type d ! -perm "$dir_mode" -print0 | xargs -r -0 chmod "$dir_mode"
find "${find_L_flag[@]}" "$p" -not -type l -type d ! -perm "$dir_mode" -print0 | xargs -r -0 chmod "$dir_mode"
fi
if [[ -n $file_mode ]]; then
find -L "$p" -type f ! -perm "$file_mode" -print0 | xargs -r -0 chmod "$file_mode"
find "${find_L_flag[@]}" "$p" -not -type l -type f ! -perm "$file_mode" -print0 | xargs -r -0 chmod "$file_mode"
fi
if [[ -n $user ]] && [[ -n $group ]]; then
find -L "$p" -print0 | xargs -r -0 chown "${user}:${group}"
find "${find_L_flag[@]}" "$p" -print0 | xargs -r -0 chown "${chown_flags[@]}" "${user}:${group}"
elif [[ -n $user ]] && [[ -z $group ]]; then
find -L "$p" -print0 | xargs -r -0 chown "${user}"
find "${find_L_flag[@]}" "$p" -print0 | xargs -r -0 chown "${chown_flags[@]}" "${user}"
elif [[ -z $user ]] && [[ -n $group ]]; then
find -L "$p" -print0 | xargs -r -0 chgrp "${group}"
find "${find_L_flag[@]}" "$p" -print0 | xargs -r -0 chgrp "${chown_flags[@]}" "${group}"
fi
else
stderr_print "$p does not exist"
@@ -1041,15 +1041,21 @@ mysql_client_extra_opts() {
local -a opts=()
local key value
if is_boolean_yes "${DB_ENABLE_SSL:-no}"; then
ca_file="$(mysql_client_env_value "SSL_CA_FILE")"
if [[ "$(mysql_client_flavor)" = "mysql" ]]; then
opts+=("--ssl-mode=REQUIRED")
if [[ -f "$ca_file " ]]; then
opts+=("--ssl-mode=VERIFY_CA")
else
opts+=("--ssl-mode=REQUIRED")
fi
else
opts+=("--ssl=TRUE")
[[ -f "$ca_file" ]] && opts+=("--ssl-verify-server-cert")
fi
# Add "--ssl-ca", "--ssl-key" and "--ssl-cert" options if the env vars are defined
# Add "--ssl-ca", "--ssl-key" and "--ssl-cert" options if the env vars are defined and the files exist
for key in ca key cert; do
value="$(mysql_client_env_value "SSL_${key^^}_FILE")"
[[ -n "${value}" ]] && opts+=("--ssl-${key}=${value}")
[[ -f "${value}" ]] && opts+=("--ssl-${key}=${value}")
done
else
# Skip SSL validation
@@ -91,12 +91,11 @@ redmine_validate() {
! is_empty_value "$REDMINE_DATABASE_PORT_NUMBER" && check_valid_port "REDMINE_DATABASE_PORT_NUMBER"
# Validate credentials
check_empty_value "REDMINE_PASSWORD"
if is_boolean_yes "${ALLOW_EMPTY_PASSWORD:-}"; then
warn "You set the environment variable ALLOW_EMPTY_PASSWORD=${ALLOW_EMPTY_PASSWORD:-}. For safety reasons, do not use this flag in a production environment."
else
for empty_env_var in "REDMINE_DATABASE_PASSWORD" "REDMINE_PASSWORD"; do
is_empty_value "${!empty_env_var}" && print_validation_error "The ${empty_env_var} environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow a blank password. This is only recommended for development environments."
done
is_empty_value "$REDMINE_DATABASE_PASSWORD" && print_validation_error "The REDMINE_DATABASE_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow a blank password. This is only recommended for development environments."
fi
# Validate SMTP credentials
@@ -104,8 +103,8 @@ redmine_validate() {
for empty_env_var in "REDMINE_SMTP_USER" "REDMINE_SMTP_PASSWORD"; do
is_empty_value "${!empty_env_var}" && warn "The ${empty_env_var} environment variable is empty or not set."
done
is_empty_value "$REDMINE_SMTP_PORT_NUMBER" && print_validation_error "The REDMINE_SMTP_PORT_NUMBER environment variable is empty or not set."
! is_empty_value "$REDMINE_SMTP_PORT_NUMBER" && check_valid_port "REDMINE_SMTP_PORT_NUMBER"
check_empty_value "REDMINE_SMTP_PASSWORD"
check_valid_port "REDMINE_SMTP_PORT_NUMBER"
check_multi_value "REDMINE_SMTP_AUTH" "plain login cram_md5"
if ! is_empty_value "${SMTP_AUTH:-}"; then
warn "The environment variable SMTP_TLS is set. This configuration will be deprecated soon. Please set REDMINE_PROTOCOL=tls to avoid errors in the future."
@@ -137,7 +136,7 @@ redmine_initialize() {
info "Ensuring Redmine directories exist"
ensure_dir_exists "$REDMINE_VOLUME_DIR"
# Use daemon:root ownership for compatibility when running as a non-root user
am_i_root && configure_permissions_ownership "$REDMINE_VOLUME_DIR" -d "775" -f "664" -u "$REDMINE_DAEMON_USER" -g "root"
am_i_root && configure_permissions_ownership "$REDMINE_VOLUME_DIR" -d "775" -f "664" -u "$REDMINE_DAEMON_USER" -g "root" -n
info "Trying to connect to the database server"
local db_type="mysql"
@@ -110,7 +110,7 @@ export REDMINE_QUEUE_ADAPTER="${REDMINE_QUEUE_ADAPTER:-inline}"
# Redmine credentials
export REDMINE_USERNAME="${REDMINE_USERNAME:-user}" # only used during the first initialization
export REDMINE_PASSWORD="${REDMINE_PASSWORD:-bitnami1}" # only used during the first initialization
export REDMINE_PASSWORD="${REDMINE_PASSWORD:-}" # only used during the first initialization
export REDMINE_EMAIL="${REDMINE_EMAIL:-user@example.com}" # only used during the first initialization
export REDMINE_FIRST_NAME="${REDMINE_FIRST_NAME:-UserName}" # only used during the first initialization
export REDMINE_LAST_NAME="${REDMINE_LAST_NAME:-LastName}" # only used during the first initialization
+1 -1
View File
@@ -81,7 +81,7 @@ The following tables list the main variables you can set.
| `REDMINE_SKIP_BOOTSTRAP` | Whether to perform initial bootstrapping for the application. | `nil` |
| `REDMINE_QUEUE_ADAPTER` | Active job queue adapter. You may need to install additional dependencies if you select a value other than "async" or "inline". | `inline` |
| `REDMINE_USERNAME` | Redmine user name. | `user` |
| `REDMINE_PASSWORD` | Redmine user password. | `bitnami1` |
| `REDMINE_PASSWORD` | Redmine user password. | `nil` |
| `REDMINE_EMAIL` | Redmine user e-mail address. | `user@example.com` |
| `REDMINE_FIRST_NAME` | Redmine user first name. | `UserName` |
| `REDMINE_LAST_NAME` | Redmine user last name. | `LastName` |
@@ -20,6 +20,7 @@ services:
- postgresql
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDMINE_PASSWORD=bitnami1
- REDMINE_DATABASE_TYPE=postgresql
- REDMINE_DATABASE_HOST=postgresql
- REDMINE_DATABASE_PORT_NUMBER=5432
+1
View File
@@ -21,6 +21,7 @@ services:
- mariadb
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- REDMINE_PASSWORD=bitnami1
- ALLOW_EMPTY_PASSWORD=yes
- REDMINE_DATABASE_HOST=mariadb
- REDMINE_DATABASE_PORT_NUMBER=3306