comparison Resources/Builders/Debian/docker-bookworm-compile.sh @ 224:49b5413699d3

added Docker-based builder scripts for Debian 12 (bookworm)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 31 Aug 2024 10:14:37 +0200
parents
children
comparison
equal deleted inserted replaced
223:9363da60c3c3 224:49b5413699d3
1 #!/bin/bash
2
3 # SPDX-FileCopyrightText: 2020-2023 Osimis S.A., 2024-2024 Orthanc Team SRL, 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain
4 # SPDX-License-Identifier: AGPL-3.0-or-later
5
6 ##
7 ## Python plugin for Orthanc
8 ## Copyright (C) 2020-2023 Osimis S.A., Belgium
9 ## Copyright (C) 2024-2024 Orthanc Team SRL, Belgium
10 ## Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
11 ##
12 ## This program is free software: you can redistribute it and/or
13 ## modify it under the terms of the GNU Affero General Public License
14 ## as published by the Free Software Foundation, either version 3 of
15 ## the License, or (at your option) any later version.
16 ##
17 ## This program is distributed in the hope that it will be useful, but
18 ## WITHOUT ANY WARRANTY; without even the implied warranty of
19 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 ## Affero General Public License for more details.
21 ##
22 ## You should have received a copy of the GNU Affero General Public License
23 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
24 ##
25
26
27 set -ex
28
29 if [ "$1" != "Debug" -a "$1" != "Release" ]; then
30 echo "Please provide build type: Debug or Release"
31 exit -1
32 fi
33
34 if [ -t 1 ]; then
35 # TTY is available => use interactive mode
36 DOCKER_FLAGS='-i'
37 fi
38
39 ROOT_DIR=`dirname $(readlink -f $0)`/../../..
40
41 mkdir -p ${ROOT_DIR}/docker-build-bookworm/
42
43 docker pull debian:bookworm-slim
44
45 docker run -t ${DOCKER_FLAGS} --rm \
46 -v ${ROOT_DIR}:/source:ro \
47 -v ${ROOT_DIR}/docker-build-bookworm:/target:rw \
48 debian:bookworm-slim \
49 bash /source/Resources/Builders/Debian/docker-internal.sh $1 bookworm 3.11 $(id -u) $(id -g)
50
51 ls -lR ${ROOT_DIR}/docker-build-bookworm/