aboutsummaryrefslogtreecommitdiff
path: root/run-in-docker.sh
blob: 4a4def2ac0ee2e580fa6e9099095755aef501fd5 (plain)
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                      \
    $1                            \
    ./mvnw -Dmaven.repo.local=/my-home/.m2/repository clean test ${@:2}