commit | c5f7e85d81b21157e19878c5fd71da3970b971f3 | [log] [tgz] |
---|---|---|
author | Alex Heneveld <alex@cloudsoft.io> | Fri Sep 09 21:25:18 2022 +0100 |
committer | Alex Heneveld <alex@cloudsoft.io> | Fri Sep 09 21:25:18 2022 +0100 |
tree | d93249a717c8cb2334f90b1cc38a07200923d918 | |
parent | 644eb1b83973b3655861cec4086c0fe662e73225 [diff] |
restructure catalog definitions so things are easier to include/exclude in line with brooklyn-server 12a22b9d7c2da4b1673724ef640dc605c9b019a3
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)