Skip to content
github maven project auto build war file use docker containter
Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
m2
webapps
.gitignore
Dockerfile
LICENSE
README.md
mvn-entrypoint.sh
private_key
run.sh
settings-docker.xml

README.md

AutoMavenBuild

github maven project auto build war file use docker containter

your need install docker-ce

  sudo docker build -t maven:project .
  • build project script
sudo docker run -ti --rm --name my-maven-project -v ~/docker/AutoMavenBuild/m2:/root/.m2 -v ~/docker/AutoMavenBuild/webapps/:/root/target maven:project bash -c "/root/run.sh"
  • ~/docker/AutoMavenBuild is this project path
  • if you don't want save maven repository, remove -v ~/docker/AutoMavenBuild/m2:/root/.m2
  • you can find build war file in ~/docker/AutoMavenBuild/webapps
You can’t perform that action at this time.