File: docker.sh

package info (click to toggle)
roc-toolkit 0.4.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,684 kB
  • sloc: cpp: 102,987; ansic: 8,959; python: 6,125; sh: 942; makefile: 16; javascript: 9
file content (16 lines) | stat: -rwxr-xr-x 265 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
set -euxo pipefail

if [ -z "${CI:-}" ]; then
    opts=-ti
else
    opts=-t
fi

docker run --rm ${opts} \
       --cap-add SYS_PTRACE \
       -u "${UID}" \
       -v "$(pwd)":/opt/roc \
       -w /opt/roc \
       -e CI="${CI:-}" \
       "$@"