mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
436731184d
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.
17 lines
363 B
Bash
Executable File
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 "$@"
|