-
Notifications
You must be signed in to change notification settings - Fork 1
Package and publish docker images
Amanda Cornwell edited this page Oct 15, 2020
·
5 revisions
!!!!Don't forget to set your JAVA_HOME!!!!
export JAVA_HOME=$(/usr/libexec/java_home)
source .bash_profile
mvn clean package
To skip tests during build
mvn clean package -DskipTests
This will do a fresh build and repackage the whole project. It will also create a docker image jhulibraries/mod-oriole:{version}
, using the version specified in pom.xml
.
To build with the docker command:
docker build -t jhulibraries/mod-oriole:{version} .
mvn dockerfile:push
Note that maven will push only the docker image with the same version as specified in pom.xml.
Or to push any version, using the docker push command:
docker push jhulibraries/mod-oriole:{version}