File: docker-run.sh

package info (click to toggle)
snakeyaml 1.28-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,596 kB
  • sloc: java: 36,155; xml: 2,315; sh: 12; makefile: 2
file content (10 lines) | stat: -rwxr-xr-x 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
docker run --rm -it               \
    -u `id -u`:`id -g`            \
    -v `pwd`:/work                \
    -v ~:/my-home                 \
    -e "HOME=/my-home"            \
    -w /work                      \
    maven:3.6-jdk-$1            \
    mvn -Dmaven.repo.local=/my-home/.m2/repository clean test ${@:2}