mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
9e420f2149
fix wrong group id lookup in run-in-docker.sh
19 lines
442 B
Bash
Executable File
19 lines
442 B
Bash
Executable File
#!/bin/bash
|
|
set -exo pipefail
|
|
|
|
cd "$(dirname ${BASH_SOURCE})"
|
|
|
|
maven_cache_repo="${HOME}/.m2/repository"
|
|
|
|
mkdir -p "${maven_cache_repo}"
|
|
|
|
docker run --rm -it \
|
|
-w /gen \
|
|
-e GEN_DIR=/gen \
|
|
-e MAVEN_CONFIG=/var/maven/.m2 \
|
|
-u "$(id -u):$(id -g)" \
|
|
-v "${PWD}:/gen" \
|
|
-v "${maven_cache_repo}:/var/maven/.m2/repository" \
|
|
--entrypoint /gen/docker-entrypoint.sh \
|
|
maven:3-jdk-7 "$@"
|