commit | a3549ed5a2ee84744df201ab519d1f805ead9abf | [log] [tgz] |
---|---|---|
author | Thomas Bouron <thomas.bouron@cloudsoftcorp.com> | Wed Jul 14 13:41:21 2021 +0100 |
committer | Thomas Bouron <thomas.bouron@cloudsoftcorp.com> | Wed Jul 14 13:41:21 2021 +0100 |
tree | 096510c7e13c71bc9f433a87970ad599165afff4 | |
parent | 87f842f06f68cca04dd07c138312d05900db4be5 [diff] |
Add support setup default initializers for all deployment This looks up a new configuration options called `brooklyn.deployment.initializers` (comma separated list). If specified on a Brooklyn instance, all deployments will load and execute these initializers. Theses classes are expected to be `EntityInitializer`, if an error occur (either cast or anything else) then the deployment will fail. The code will try to: 1. load the class from the default class loader. 2. if (1) fails, it will try to load the class from the `TypeRegistry`. This is to allow execution of custom initializers that might be installed in the catalog later on. 3. if (1) and (2) fails, then the deployment is aborted.
This repo contains modules for creating the distributable binary combining the server
, the ui
, and other elements in other Brooklyn repos.
2 methods are available to build this project: within a docker container or directly with maven.
The project comes with a Dockerfile
that contains everything you need to build this project. First, build the docker image:
docker build -t brooklyn:dist .
Then run the build:
docker run -i --rm --name brooklyn-dist -v /var/run/docker.sock:/var/run/docker.sock -v ${HOME}/.m2:/root/.m2 -v ${PWD}:/usr/build -w /usr/build brooklyn:dist mvn clean install
Simply run:
mvn clean install