Mercurial > hg > orthanc-python
changeset 263:57a625025651
added builder scripts for Debian 13 (trixie)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 12 Aug 2025 09:12:04 +0200 |
parents | ed1fadb22c61 |
children | 0687ab1d087e |
files | NEWS Resources/Builders/Debian/docker-internal.sh Resources/Builders/Debian/docker-trixie-compile.sh |
diffstat | 3 files changed, 58 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Tue Aug 12 08:57:38 2025 +0200 +++ b/NEWS Tue Aug 12 09:12:04 2025 +0200 @@ -3,10 +3,11 @@ => Minimum SDK version: 1.12.9 <= -* Added Windows builder for Python 3.13 * New methods imported from SDK 1.12.9 (TODO: sync again once released) - AuditLog() - SetStableStatus() +* Added Windows builder for Python 3.13 +* Added Docker-based builder scripts for Debian 13 (trixie) Version 5.0 (2025-01-22)
--- a/Resources/Builders/Debian/docker-internal.sh Tue Aug 12 08:57:38 2025 +0200 +++ b/Resources/Builders/Debian/docker-internal.sh Tue Aug 12 09:12:04 2025 +0200 @@ -37,6 +37,11 @@ groupadd -g ${GROUP_ID} -r orthanc useradd -u ${USER_ID} -r -g orthanc orthanc +# This line is needed since the release of Debian 13 (trixie) +if [ "${DEBIAN_VERSION}" = "buster" ]; then + sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list +fi + if [ "${DEBIAN_VERSION}" = "bullseye" ]; then MERCURIAL_PACKAGES=python else
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/Builders/Debian/docker-trixie-compile.sh Tue Aug 12 09:12:04 2025 +0200 @@ -0,0 +1,51 @@ +#!/bin/bash + +# SPDX-FileCopyrightText: 2020-2023 Osimis S.A., 2024-2025 Orthanc Team SRL, 2021-2025 Sebastien Jodogne, ICTEAM UCLouvain +# SPDX-License-Identifier: AGPL-3.0-or-later + +## +## Python plugin for Orthanc +## Copyright (C) 2020-2023 Osimis S.A., Belgium +## Copyright (C) 2024-2025 Orthanc Team SRL, Belgium +## Copyright (C) 2021-2025 Sebastien Jodogne, ICTEAM UCLouvain, Belgium +## +## This program is free software: you can redistribute it and/or +## modify it under the terms of the GNU Affero General Public License +## as published by the Free Software Foundation, either version 3 of +## the License, or (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## Affero General Public License for more details. +## +## You should have received a copy of the GNU Affero General Public License +## along with this program. If not, see <http://www.gnu.org/licenses/>. +## + + +set -ex + +if [ "$1" != "Debug" -a "$1" != "Release" ]; then + echo "Please provide build type: Debug or Release" + exit -1 +fi + +if [ -t 1 ]; then + # TTY is available => use interactive mode + DOCKER_FLAGS='-i' +fi + +ROOT_DIR=`dirname $(readlink -f $0)`/../../.. + +mkdir -p ${ROOT_DIR}/docker-build-trixie/ + +docker pull debian:trixie-slim + +docker run -t ${DOCKER_FLAGS} --rm \ + -v ${ROOT_DIR}:/source:ro \ + -v ${ROOT_DIR}/docker-build-trixie:/target:rw \ + debian:trixie-slim \ + bash /source/Resources/Builders/Debian/docker-internal.sh $1 trixie 3.13 $(id -u) $(id -g) + +ls -lR ${ROOT_DIR}/docker-build-trixie/