openapi-generator/run-in-docker.sh
Jim Schubert 436731184d [docker] Update root Dockerfile and run-in-docker
This update allows the root Dockerfile to be used as a development
container and updates run-in-docker.sh to use the same entrypoint script
while maintaining backward compatibility for anyone who has scripted
mappings to /gen and /root/.m2/repository.
2016-05-24 23:21:50 -04:00

17 lines
363 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 \
-v "${PWD}:/gen" \
-v "${maven_cache_repo}:/root/.m2/repository" \
--entrypoint /gen/docker-entrypoint.sh \
maven:3-jdk-7 "$@"