aboutsummaryrefslogtreecommitdiff
path: root/run-in-docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run-in-docker.sh')
-rwxr-xr-xrun-in-docker.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/run-in-docker.sh b/run-in-docker.sh
new file mode 100755
index 00000000..4a4def2a
--- /dev/null
+++ b/run-in-docker.sh
@@ -0,0 +1,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}
+