[bitnami/wildfly] Release wildfly-36.0.0-debian-12-r4 (#80487)
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
parent
40591c2c17
commit
27d4a9e694
|
|
@ -9,10 +9,10 @@ ARG TARGETARCH
|
|||
|
||||
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
|
||||
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||
org.opencontainers.image.created="2025-04-21T16:37:37Z" \
|
||||
org.opencontainers.image.created="2025-04-22T15:50:05Z" \
|
||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/wildfly/README.md" \
|
||||
org.opencontainers.image.ref.name="36.0.0-debian-12-r3" \
|
||||
org.opencontainers.image.ref.name="36.0.0-debian-12-r4" \
|
||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/wildfly" \
|
||||
org.opencontainers.image.title="wildfly" \
|
||||
org.opencontainers.image.vendor="Broadcom, Inc." \
|
||||
|
|
@ -30,7 +30,7 @@ RUN install_packages ca-certificates curl libaio1 procps zlib1g
|
|||
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
|
||||
COMPONENTS=( \
|
||||
"jre-21.0.7-9-0-linux-${OS_ARCH}-debian-12" \
|
||||
"wildfly-36.0.0-2-linux-${OS_ARCH}-debian-12" \
|
||||
"wildfly-36.0.0-3-linux-${OS_ARCH}-debian-12" \
|
||||
) ; \
|
||||
for COMPONENT in "${COMPONENTS[@]}"; do \
|
||||
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
"arch": "amd64",
|
||||
"distro": "debian-12",
|
||||
"type": "NAMI",
|
||||
"version": "36.0.0-2"
|
||||
"version": "36.0.0-3"
|
||||
}
|
||||
}
|
||||
|
|
@ -163,79 +163,6 @@ wildfly_add_user() {
|
|||
fi
|
||||
}
|
||||
|
||||
########################
|
||||
# Start wildfly in background
|
||||
# Globals:
|
||||
# WILDFLY_*
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# None
|
||||
#########################
|
||||
wildfly_start_bg() {
|
||||
local -r exec="${WILDFLY_BIN_DIR}/standalone.sh"
|
||||
local args=("-b" "127.0.0.1")
|
||||
|
||||
if ! is_wildfly_running; then
|
||||
info "Starting wildfly..."
|
||||
debug_execute "${exec}" "${args[@]}" &
|
||||
sleep 10
|
||||
fi
|
||||
}
|
||||
|
||||
########################
|
||||
# Check if Wildfly is running
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# Boolean
|
||||
#########################
|
||||
is_wildfly_running() {
|
||||
pid="$(get_pid_from_file "$WILDFLY_PID_FILE")"
|
||||
if [[ -n "$pid" ]]; then
|
||||
is_service_running "$pid"
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
########################
|
||||
# Stop Wildfly
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# None
|
||||
#########################
|
||||
wildfly_stop() {
|
||||
! is_wildfly_running && return
|
||||
stop_service_using_pid "$WILDFLY_PID_FILE"
|
||||
}
|
||||
|
||||
#########################
|
||||
# Add and register a JDBC driver module in WildFly.
|
||||
# Arguments:
|
||||
# $1 - Module name (e.g., "postgresql", "mariadb")
|
||||
# $2 - Fully qualified JDBC driver class name
|
||||
# $3 - Path to the JAR file to install
|
||||
# Returns:
|
||||
# None
|
||||
#########################
|
||||
wildfly_add_driver_module() {
|
||||
local name="$1"
|
||||
local driver_class="$2"
|
||||
local jar_file="$3"
|
||||
local -r cmd="${WILDFLY_BIN_DIR}/jboss-cli.sh"
|
||||
local -a register_driver_args=("--connect" "--commands=/subsystem=datasources/jdbc-driver=$name:add(driver-name=$name,dr\
|
||||
iver-module-name=org.$name,driver-class-name=$driver_class)")
|
||||
|
||||
info "Installing $name JDBC driver as a module"
|
||||
# Use this approach to avoid issues with the ',' of dependencies
|
||||
"${cmd}" --connect "${base_args[@]}" > /dev/null 2>&1 <<EOF
|
||||
module add --name=org.$name --resources=$jar_file --dependencies=javax.api,javax.transaction.api
|
||||
EOF
|
||||
"${cmd}" "${register_driver_args[@]}"
|
||||
}
|
||||
|
||||
########################
|
||||
# Ensure WildFly is initialized
|
||||
# Globals:
|
||||
|
|
|
|||
|
|
@ -37,7 +37,4 @@ cp -r "$WILDFLY_DOMAIN_DIR"/* "$WILDFLY_DEFAULT_DOMAIN_DIR"
|
|||
# In order to make the container work with non-root group we need to make
|
||||
# a set of files writable by "other", as by default are owned by wildfly:root
|
||||
chmod o+rX -R "${WILDFLY_DEFAULT_STANDALONE_DIR}"/*
|
||||
chmod o+rX -R "${WILDFLY_DEFAULT_DOMAIN_DIR}"/*
|
||||
|
||||
# Remove unnecessary jdbc-drivers
|
||||
rm -rf "${WILDFLY_BASE_DIR}/jdbc-drivers"
|
||||
chmod o+rX -R "${WILDFLY_DEFAULT_DOMAIN_DIR}"/*
|
||||
Loading…
Reference in New Issue