[bitnami/pytorch] Release 2.10.0-debian-12-r0 (#90217)

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Bitnami Bot
2026-01-29 14:07:57 +01:00
committed by GitHub
parent af4466cf05
commit 3dde036d5e
4 changed files with 30 additions and 29 deletions

View File

@@ -7,13 +7,13 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
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-11T12:24:30Z" \ org.opencontainers.image.created="2026-01-29T12:31:49Z" \
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/pytorch/README.md" \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/pytorch/README.md" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/pytorch" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/pytorch" \
org.opencontainers.image.title="pytorch" \ org.opencontainers.image.title="pytorch" \
org.opencontainers.image.vendor="Broadcom, Inc." \ org.opencontainers.image.vendor="Broadcom, Inc." \
org.opencontainers.image.version="2.9.1" org.opencontainers.image.version="2.10.0"
ENV HOME="/" \ ENV HOME="/" \
OS_ARCH="${TARGETARCH:-amd64}" \ OS_ARCH="${TARGETARCH:-amd64}" \
@@ -23,13 +23,13 @@ ENV HOME="/" \
COPY prebuildfs / COPY prebuildfs /
SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
# Install required system packages and dependencies # Install required system packages and dependencies
RUN install_packages ca-certificates curl libbz2-1.0 libcom-err2 libcrypt1 libffi8 libgcc-s1 libgomp1 libgssapi-krb5-2 libjemalloc2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblzma5 libncursesw6 libnsl2 libreadline8 libsqlite3-0 libssl3 libstdc++6 libtinfo6 libtirpc3 numactl procps zlib1g RUN install_packages ca-certificates curl libbz2-1.0 libcom-err2 libcrypt1 libffi8 libgcc-s1 libgssapi-krb5-2 libjemalloc2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblzma5 libncursesw6 libnsl2 libreadline8 libsqlite3-0 libssl3 libstdc++6 libtinfo6 libtirpc3 numactl procps zlib1g
RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \ 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=( \
"python-3.12.12-11-linux-${OS_ARCH}-debian-12" \ "python-3.12.12-13-linux-${OS_ARCH}-debian-12" \
"pytorch-2.9.1-0-linux-${OS_ARCH}-debian-12" \ "pytorch-2.10.0-1-linux-${OS_ARCH}-debian-12" \
) ; \ ) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \ for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \ if [ ! -f "${COMPONENT}.tar.gz" ]; then \
@@ -49,9 +49,10 @@ RUN uninstall_packages curl
COPY rootfs / COPY rootfs /
RUN /opt/bitnami/scripts/pytorch/postunpack.sh RUN /opt/bitnami/scripts/pytorch/postunpack.sh
ENV APP_VERSION="2.9.1" \ ENV APP_VERSION="2.10.0" \
BITNAMI_APP_NAME="pytorch" \ BITNAMI_APP_NAME="pytorch" \
IMAGE_REVISION="2" \ IMAGE_REVISION="0" \
LNAME="pytorch" \
PATH="/opt/bitnami/python/bin:$PATH" PATH="/opt/bitnami/python/bin:$PATH"
WORKDIR /app WORKDIR /app

View File

@@ -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}"

View File

@@ -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 #...

View File

@@ -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