mirror of
https://github.com/bitnami/containers.git
synced 2026-03-27 15:27:48 +08:00
[bitnami/ejbca] Release 9.3.7-debian-12-r2 (#89954)
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -8,7 +8,7 @@ ARG JAVA_EXTRA_SECURITY_DIR="/bitnami/java/extra-security"
|
|||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||||
org.opencontainers.image.created="2026-01-11T07:07:36Z" \
|
org.opencontainers.image.created="2026-01-23T12:43:23Z" \
|
||||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/ejbca/README.md" \
|
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/ejbca/README.md" \
|
||||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/ejbca" \
|
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/ejbca" \
|
||||||
@@ -29,8 +29,8 @@ RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \
|
|||||||
DOWNLOADS_URL=${SECRET_DOWNLOADS_URL:-${DOWNLOADS_URL}} ; \
|
DOWNLOADS_URL=${SECRET_DOWNLOADS_URL:-${DOWNLOADS_URL}} ; \
|
||||||
mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
|
mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
|
||||||
COMPONENTS=( \
|
COMPONENTS=( \
|
||||||
"wildfly-32.0.1-21-linux-${OS_ARCH}-debian-12" \
|
"wildfly-32.0.1-22-linux-${OS_ARCH}-debian-12" \
|
||||||
"jre-21.0.9-15-0-linux-${OS_ARCH}-debian-12" \
|
"jre-21.0.10-10-0-linux-${OS_ARCH}-debian-12" \
|
||||||
"mysql-client-12.1.2-0-linux-${OS_ARCH}-debian-12" \
|
"mysql-client-12.1.2-0-linux-${OS_ARCH}-debian-12" \
|
||||||
"ejbca-9.3.7-0-linux-${OS_ARCH}-debian-12" \
|
"ejbca-9.3.7-0-linux-${OS_ARCH}-debian-12" \
|
||||||
) ; \
|
) ; \
|
||||||
@@ -54,7 +54,7 @@ RUN /opt/bitnami/scripts/ejbca/postunpack.sh
|
|||||||
RUN /opt/bitnami/scripts/java/postunpack.sh
|
RUN /opt/bitnami/scripts/java/postunpack.sh
|
||||||
ENV APP_VERSION="9.3.7" \
|
ENV APP_VERSION="9.3.7" \
|
||||||
BITNAMI_APP_NAME="ejbca" \
|
BITNAMI_APP_NAME="ejbca" \
|
||||||
IMAGE_REVISION="1" \
|
IMAGE_REVISION="2" \
|
||||||
JAVA_HOME="/opt/bitnami/java" \
|
JAVA_HOME="/opt/bitnami/java" \
|
||||||
PATH="/opt/bitnami/wildfly/bin:/opt/bitnami/java/bin:/opt/bitnami/mysql/bin:/opt/bitnami/ejbca/bin:$PATH"
|
PATH="/opt/bitnami/wildfly/bin:/opt/bitnami/java/bin:/opt/bitnami/mysql/bin:/opt/bitnami/ejbca/bin:$PATH"
|
||||||
|
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ CYAN='\033[38;5;6m'
|
|||||||
stderr_print() {
|
stderr_print() {
|
||||||
# 'is_boolean_yes' is defined in libvalidations.sh, but depends on this file so we cannot source it
|
# 'is_boolean_yes' is defined in libvalidations.sh, but depends on this file so we cannot source it
|
||||||
local bool="${BITNAMI_QUIET:-false}"
|
local bool="${BITNAMI_QUIET:-false}"
|
||||||
# comparison is performed without regard to the case of alphabetic characters
|
# converts the string to lowercase
|
||||||
shopt -s nocasematch
|
local bool_val="${bool,,}"
|
||||||
if ! [[ "$bool" = 1 || "$bool" =~ ^(yes|true)$ ]]; then
|
if ! [[ "$bool_val" = 1 || "$bool_val" =~ ^(yes|true)$ ]]; then
|
||||||
printf "%b\\n" "${*}" >&2
|
printf "%b\\n" "${*}" >&2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -40,9 +40,9 @@ stderr_print() {
|
|||||||
#########################
|
#########################
|
||||||
log() {
|
log() {
|
||||||
local color_bool="${BITNAMI_COLOR:-true}"
|
local color_bool="${BITNAMI_COLOR:-true}"
|
||||||
# comparison is performed without regard to the case of alphabetic characters
|
# converts the string to lowercase
|
||||||
shopt -s nocasematch
|
local color_bool_val="${color_bool,,}"
|
||||||
if [[ "$color_bool" = 1 || "$color_bool" =~ ^(yes|true)$ ]]; then
|
if [[ "$color_bool_val" = 1 || "$color_bool_val" =~ ^(yes|true)$ ]]; then
|
||||||
stderr_print "${CYAN}${MODULE:-} ${MAGENTA}$(date "+%T.%2N ")${RESET}${*}"
|
stderr_print "${CYAN}${MODULE:-} ${MAGENTA}$(date "+%T.%2N ")${RESET}${*}"
|
||||||
else
|
else
|
||||||
stderr_print "${MODULE:-} $(date "+%T.%2N ")${*}"
|
stderr_print "${MODULE:-} $(date "+%T.%2N ")${*}"
|
||||||
@@ -58,9 +58,9 @@ log() {
|
|||||||
info() {
|
info() {
|
||||||
local msg_color=""
|
local msg_color=""
|
||||||
local color_bool="${BITNAMI_COLOR:-true}"
|
local color_bool="${BITNAMI_COLOR:-true}"
|
||||||
# comparison is performed without regard to the case of alphabetic characters
|
# converts the string to lowercase
|
||||||
shopt -s nocasematch
|
local color_bool_val="${color_bool,,}"
|
||||||
if [[ "$color_bool" = 1 || "$color_bool" =~ ^(yes|true)$ ]];then
|
if [[ "$color_bool_val" = 1 || "$color_bool_val" =~ ^(yes|true)$ ]]; then
|
||||||
msg_color="$GREEN"
|
msg_color="$GREEN"
|
||||||
fi
|
fi
|
||||||
log "${msg_color}INFO ${RESET} ==> ${*}"
|
log "${msg_color}INFO ${RESET} ==> ${*}"
|
||||||
@@ -75,9 +75,9 @@ info() {
|
|||||||
warn() {
|
warn() {
|
||||||
local msg_color=""
|
local msg_color=""
|
||||||
local color_bool="${BITNAMI_COLOR:-true}"
|
local color_bool="${BITNAMI_COLOR:-true}"
|
||||||
# comparison is performed without regard to the case of alphabetic characters
|
# converts the string to lowercase
|
||||||
shopt -s nocasematch
|
local color_bool_val="${color_bool,,}"
|
||||||
if [[ "$color_bool" = 1 || "$color_bool" =~ ^(yes|true)$ ]];then
|
if [[ "$color_bool_val" = 1 || "$color_bool_val" =~ ^(yes|true)$ ]]; then
|
||||||
msg_color="$YELLOW"
|
msg_color="$YELLOW"
|
||||||
fi
|
fi
|
||||||
log "${msg_color}WARN ${RESET} ==> ${*}"
|
log "${msg_color}WARN ${RESET} ==> ${*}"
|
||||||
@@ -92,9 +92,9 @@ warn() {
|
|||||||
error() {
|
error() {
|
||||||
local msg_color=""
|
local msg_color=""
|
||||||
local color_bool="${BITNAMI_COLOR:-true}"
|
local color_bool="${BITNAMI_COLOR:-true}"
|
||||||
# comparison is performed without regard to the case of alphabetic characters
|
# converts the string to lowercase
|
||||||
shopt -s nocasematch
|
local color_bool_val="${color_bool,,}"
|
||||||
if [[ "$color_bool" = 1 || "$color_bool" =~ ^(yes|true)$ ]];then
|
if [[ "$color_bool_val" = 1 || "$color_bool_val" =~ ^(yes|true)$ ]]; then
|
||||||
msg_color="$RED"
|
msg_color="$RED"
|
||||||
fi
|
fi
|
||||||
log "${msg_color}ERROR${RESET} ==> ${*}"
|
log "${msg_color}ERROR${RESET} ==> ${*}"
|
||||||
@@ -111,9 +111,9 @@ error() {
|
|||||||
debug() {
|
debug() {
|
||||||
local msg_color=""
|
local msg_color=""
|
||||||
local color_bool="${BITNAMI_COLOR:-true}"
|
local color_bool="${BITNAMI_COLOR:-true}"
|
||||||
# comparison is performed without regard to the case of alphabetic characters
|
# converts the string to lowercase
|
||||||
shopt -s nocasematch
|
local color_bool_val="${color_bool,,}"
|
||||||
if [[ "$color_bool" = 1 || "$color_bool" =~ ^(yes|true)$ ]] ;then
|
if [[ "$color_bool_val" = 1 || "$color_bool_val" =~ ^(yes|true)$ ]]; then
|
||||||
msg_color="$MAGENTA"
|
msg_color="$MAGENTA"
|
||||||
fi
|
fi
|
||||||
local debug_bool="${BITNAMI_DEBUG:-false}"
|
local debug_bool="${BITNAMI_DEBUG:-false}"
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ parse_uri() {
|
|||||||
# Solution based on https://tools.ietf.org/html/rfc3986#appendix-B with
|
# Solution based on https://tools.ietf.org/html/rfc3986#appendix-B with
|
||||||
# additional sub-expressions to split authority into userinfo, host and port
|
# additional sub-expressions to split authority into userinfo, host and port
|
||||||
# Credits to Patryk Obara (see https://stackoverflow.com/a/45977232/6694969)
|
# Credits to Patryk Obara (see https://stackoverflow.com/a/45977232/6694969)
|
||||||
local -r URI_REGEX='^(([^:/?#]+):)?(//((([^@/?#]+)@)?([^:/?#]+)(:([0-9]+))?))?(/([^?#]*))?(\?([^#]*))?(#(.*))?'
|
local -r URI_REGEX='^(([^:/?#]+):)?(//((([^@/?#]+)@)?([^:/?#]+|\[[0-9a-fA-F:.]+\])(:([0-9]+))?))?(/([^?#]*))?(\?([^#]*))?(#(.*))?'
|
||||||
# || | ||| | | | | | | | | |
|
# || | ||| | | | | | | | | |
|
||||||
# |2 scheme | ||6 userinfo 7 host | 9 port | 11 rpath | 13 query | 15 fragment
|
# |2 scheme | ||6 userinfo 7 host | 9 port | 11 rpath | 13 query | 15 fragment
|
||||||
# 1 scheme: | |5 userinfo@ 8 :... 10 path 12 ?... 14 #...
|
# 1 scheme: | |5 userinfo@ 8 :... 10 path 12 ?... 14 #...
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ is_positive_int() {
|
|||||||
#########################
|
#########################
|
||||||
is_boolean_yes() {
|
is_boolean_yes() {
|
||||||
local -r bool="${1:-}"
|
local -r bool="${1:-}"
|
||||||
# comparison is performed without regard to the case of alphabetic characters
|
# converts the string to lowercase
|
||||||
shopt -s nocasematch
|
local bool_val="${bool,,}"
|
||||||
if [[ "$bool" = 1 || "$bool" =~ ^(yes|true)$ ]]; then
|
if [[ "$bool_val" = 1 || "$bool_val" =~ ^(yes|true)$ ]]; then
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ done
|
|||||||
|
|
||||||
chmod g+rw "$EJBCA_WILDFLY_STANDALONE_CONF_FILE"
|
chmod g+rw "$EJBCA_WILDFLY_STANDALONE_CONF_FILE"
|
||||||
|
|
||||||
|
# Add a symlink to the ejbca base directory in /etc/ejbca as the .ear file will check for configuration there
|
||||||
|
ln -s "$EJBCA_BASE_DIR" "/etc/ejbca"
|
||||||
|
|
||||||
# Copy all initially generated configuration files and standalone to the default directory
|
# Copy all initially generated configuration files and standalone to the default directory
|
||||||
# (this is to avoid breaking when entrypoint is being overridden)
|
# (this is to avoid breaking when entrypoint is being overridden)
|
||||||
cp -r "$EJBCA_CONF_DIR"/* "$EJBCA_DEFAULT_CONF_DIR"
|
cp -r "$EJBCA_CONF_DIR"/* "$EJBCA_DEFAULT_CONF_DIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user