update docker build script and add convenience wrapper

This commit is contained in:
Rasmus Andersson 2019-01-07 09:35:23 -08:00
parent dfe6b939c7
commit c134b24a0a
2 changed files with 19 additions and 1 deletions

View file

@ -26,7 +26,6 @@ rsync -v -acC --delete --filter="- *.pyc" --filter="- /*/" \
"$BUILD_DIR/misc/tools/" & "$BUILD_DIR/misc/tools/" &
rsync -v -acC --delete \ rsync -v -acC --delete \
misc/fontbuild \ misc/fontbuild \
misc/fonttools-3.34.2-psCharStrings.patch \
misc/ttf2woff \ misc/ttf2woff \
"$BUILD_DIR/misc/" "$BUILD_DIR/misc/"
wait wait

19
misc/vm Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash -e
#
# Invokes provided arguments in a prebuilt docker image that contains
# the Inter UI toolchain.
#
cd "$(dirname "$0")/.."
RUN_ARGS=-it
if [[ "$1" == "--no-tty" ]]; then
RUN_ARGS=-i
shift
elif [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
echo "Run Inter UI build environment virtual machine using docker." >&2
echo "usage: $0 [--no-tty] [<arg> ...]" >&2
echo "--no-tty Do not run with TTY input device emulation (useful for scripting)" >&2
exit 1
fi
docker run --rm $RUN_ARGS -v "$PWD:/host" rsms/inter-ui-build:latest "$@"