File: vm

package info (click to toggle)
fonts-inter 4.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 55,840 kB
  • sloc: python: 9,184; ansic: 3,776; javascript: 762; makefile: 637; sh: 466; xml: 22
file content (19 lines) | stat: -rwxr-xr-x 553 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -e
#
# Invokes provided arguments in a prebuilt docker image that contains
# the Inter 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 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-build:latest "$@"