commit | 0c545270d8a9e3535ac0faf3de5fe77abb3df60f | [log] [tgz] |
---|---|---|
author | Thomas Bouron <thomas.bouron@cloudsoftcorp.com> | Wed Dec 04 15:23:31 2019 +0000 |
committer | GitHub <noreply@github.com> | Wed Dec 04 15:23:31 2019 +0000 |
tree | abc2575e8f21952c2e326bef2191dc1f5a1d24c3 | |
parent | c7b9aa633e61d3090b6ae7c171036c3fe67cf5db [diff] | |
parent | 4127b3362d239777adaba17a8901768c6b1534ee [diff] |
Merge pull request #175 from tbouron/master Fix running permissions when building with Docker on Jenkins
This sub-project contains various entities not needed for Brooklyn, but useful as building blocks, including entities for webapps, datastores, and more.
Two methods are available to build this project: within a docker container or directly with maven.
Simply run:
mvn clean install
The project comes with a Dockerfile
that contains everything you need to build this project. First, build the docker image:
docker build -t brooklyn:library .
Then run the build:
docker run -i --rm --name brooklyn-library -u $(id -u):$(id -g) \ --mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly \ -v ${PWD}:/usr/build -w /usr/build \ brooklyn:library mvn clean install -Duser.home=/var/maven -Duser.name=$(id -un)
You can speed this up by using your local .m2 cache:
docker run -i --rm --name brooklyn-library -u $(id -u):$(id -g) \ -v ${HOME}/.m2:/var/maven/.m2 \ -v ${PWD}:/usr/build -w /usr/build \ brooklyn:library mvn clean install -Duser.home=/var/maven -Duser.name=$(id -un)