-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to build project sources using maven docker container
- Loading branch information
1 parent
50b7121
commit 7f84f75
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Workaround for running from Git Bash on Windows: | ||
export MSYS_NO_PATHCONV=1 | ||
|
||
script_path=$(realpath "$0") | ||
script_dir=$(dirname "$script_path") | ||
project_root=$(dirname "$script_dir") | ||
|
||
work_dir="/usr/src/verapdf-webapp-server" | ||
|
||
# Build all project sources | ||
docker run -it \ | ||
--rm --name build-verapdf-webapp-server \ | ||
-v maven-repo:/root/.m2 \ | ||
-v "$project_root":$work_dir \ | ||
-w $work_dir \ | ||
maven:3.6-jdk-11 mvn clean package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
# Create a volume to reuse downloaded maven dependencies | ||
docker volume create --name maven-repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters