Debian Codegraph @

misc/vm

raw symbols SCIP
1 #!/bin/bash -e
2 #
3 # Invokes provided arguments in a prebuilt docker image that contains
4 # the Inter toolchain.
5 #
6 cd "$(dirname "$0")/.."
7
8 RUN_ARGS=-it
9 if [[ "$1" == "--no-tty" ]]; then
10 RUN_ARGS=-i
11 shift
12 elif [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
13 echo "Run Inter build environment virtual machine using docker." >&2
14 echo "usage: $0 [--no-tty] [<arg> ...]" >&2
15 echo "--no-tty Do not run with TTY input device emulation (useful for scripting)" >&2
16 exit 1
17 fi
18
19 docker run --rm $RUN_ARGS -v "$PWD:/host" rsms/inter-build:latest "$@"