comparison Resources/Builders/MinGW64-Python3.10/docker-compile.sh @ 111:6ad5da29f260 OrthancPython-4.0

added Windows builders for Python 3.9, 3.10 and 3.11
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 28 Mar 2023 17:27:06 +0200
parents
children 3678a028f1f6
comparison
equal deleted inserted replaced
109:80f3a034d47f 111:6ad5da29f260
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
17 mkdir -p ${ROOT_DIR}/docker-build/
18
19 ( cd ${ROOT_DIR}/Resources/Builders/ && \
20 docker build \
21 -f ./Dockerfile-MinGW-BuildEnvironment \
22 -t mingw-python-build . )
23
24 docker run -t ${DOCKER_FLAGS} --rm \
25 --user $(id -u):$(id -g) \
26 -v ${ROOT_DIR}:/source:ro \
27 -v ${ROOT_DIR}/docker-build:/target:rw \
28 mingw-python-build \
29 bash /source/Resources/Builders/MinGW64-Python3.10/docker-internal.sh $1
30
31 ls -lR ${ROOT_DIR}/docker-build/