2020-05-30 11:21:22 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2020-10-28 21:19:45 +00:00
|
|
|
# known good MXE sha
|
|
|
|
MXE_SHA="8966a64"
|
2020-05-30 11:21:22 +00:00
|
|
|
SCRIPTPATH=$(dirname $0)
|
|
|
|
|
2020-10-28 21:19:45 +00:00
|
|
|
# version of the docker image
|
2020-10-30 18:28:00 +00:00
|
|
|
VERSION=2.1
|
2020-10-28 21:19:45 +00:00
|
|
|
|
2020-05-30 11:21:22 +00:00
|
|
|
pushd $SCRIPTPATH
|
2020-10-30 18:28:00 +00:00
|
|
|
|
|
|
|
# we use the 'experimental' --squash argument to significantly reduce the size of the massively huge
|
|
|
|
# Docker container this produces
|
2020-10-28 21:19:45 +00:00
|
|
|
docker build --squash -t subsurface/mxe-build-container:$VERSION --build-arg=mxe_sha=$MXE_SHA -f Dockerfile .
|
2020-05-30 11:21:22 +00:00
|
|
|
popd
|