You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
557 B
17 lines
557 B
#!/bin/bash -eux
|
|
|
|
VARSFILE=$1
|
|
|
|
. src/$VARSFILE
|
|
|
|
|
|
echo "FROM extbuilder-$EXTPYTHON_DIST" > Dockerfile.temp
|
|
echo "RUN apt-get update && \\" >> Dockerfile.temp
|
|
echo " DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" $CPYTHON_DEPS" >> Dockerfile.temp
|
|
|
|
# build image with just the deps
|
|
docker build -t extbuilder-${EXTPYTHON_DIST}-deps -f Dockerfile.temp .
|
|
rm -f Dockerfile.temp
|
|
|
|
time docker run -it --rm -e "VARSFILE=$VARSFILE" -v $PWD/src:/src extbuilder-${EXTPYTHON_DIST}-deps
|