comparison Resources/Builders/MinGW32-Python2.7/docker-compile.sh @ 9:8ec973ae8d6c

fix docker builds
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 31 Mar 2020 14:03:30 +0200
parents Resources/Builders/Windows32-Python2.7/docker-compile.sh@7ed502b17b8f
children 6f639ddfc4bc
comparison
equal deleted inserted replaced
8:dac0f23f85c2 9:8ec973ae8d6c
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 docker build \
20 -f ${ROOT_DIR}/Resources/Builders/Dockerfile-MinGW-BuildEnvironment \
21 -t mingw-python-build .
22
23 docker run -t ${DOCKER_FLAGS} --rm \
24 --user $(id -u):$(id -g) \
25 -v ${ROOT_DIR}:/source:ro \
26 -v ${ROOT_DIR}/docker-build:/target:rw \
27 mingw-python-build \
28 bash /source/Resources/Builders/MinGW32-Python2.7/docker-internal.sh $1
29
30 ls -lR ${ROOT_DIR}/docker-build/