Mercurial > hg > orthanc-python
annotate Resources/Builders/Debian/docker-bullseye-compile.sh @ 150:3c98306828de
todo cleanup
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 22 Jan 2024 17:58:48 +0100 |
parents | 81a0975a2479 |
children | 3678a028f1f6 |
rev | line source |
---|---|
0 | 1 #!/bin/bash |
2 | |
3 set -ex | |
4 | |
5 if [ "$1" != "Debug" -a "$1" != "Release" ]; then | |
6 echo "Please provide build type: Debug or Release" | |
7 exit -1 | |
8 fi | |
9 | |
10 if [ -t 1 ]; then | |
11 # TTY is available => use interactive mode | |
12 DOCKER_FLAGS='-i' | |
13 fi | |
14 | |
15 ROOT_DIR=`dirname $(readlink -f $0)`/../../.. | |
16 | |
88
81a0975a2479
distinguishing Debian docker-based builds between buster and bullseye
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
17 mkdir -p ${ROOT_DIR}/docker-build-bullseye/ |
0 | 18 |
88
81a0975a2479
distinguishing Debian docker-based builds between buster and bullseye
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
19 docker pull debian:bullseye-slim |
0 | 20 |
21 docker run -t ${DOCKER_FLAGS} --rm \ | |
22 -v ${ROOT_DIR}:/source:ro \ | |
88
81a0975a2479
distinguishing Debian docker-based builds between buster and bullseye
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
23 -v ${ROOT_DIR}/docker-build-bullseye:/target:rw \ |
81a0975a2479
distinguishing Debian docker-based builds between buster and bullseye
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
24 debian:bullseye-slim \ |
81a0975a2479
distinguishing Debian docker-based builds between buster and bullseye
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
25 bash /source/Resources/Builders/Debian/docker-internal.sh $1 3.9 $(id -u) $(id -g) |
0 | 26 |
88
81a0975a2479
distinguishing Debian docker-based builds between buster and bullseye
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
27 ls -lR ${ROOT_DIR}/docker-build-bullseye/ |