xref: /aosp_15_r20/external/snakeyaml/run-in-docker.sh (revision ac2a7c1bf4e14d82f3bd566dcc2d76d5b42faf34)
1#!/usr/bin/env bash
2docker run --rm -it               \
3    -u `id -u`:`id -g`            \
4    -v `pwd`:/work                \
5    -v ~:/my-home                 \
6    -e "HOME=/my-home"            \
7    -w /work                      \
8    $1                            \
9    ./mvnw -Dmaven.repo.local=/my-home/.m2/repository clean test ${@:2}
10
11