Mercurial > hg > orthanc-python
annotate Resources/Builders/Debian/docker-buster-compile.sh @ 88:81a0975a2479
distinguishing Debian docker-based builds between buster and bullseye
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Aug 2021 11:11:55 +0200 |
parents | Resources/Builders/DebianStable/docker-compile.sh@dac0f23f85c2 |
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-buster/ |
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:buster-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-buster:/target:rw \ |
81a0975a2479
distinguishing Debian docker-based builds between buster and bullseye
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
8
diff
changeset
|
24 debian:buster-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.7 $(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-buster/ |