Skip to content
Permalink
Browse files
Merge pull request #36 from nakomis/fix/README
Fixes instructions for building Brooklyn
  • Loading branch information
tbouron committed Jan 20, 2020
2 parents fefab67 + 5ad540b commit 7071bdced72c479e6f2d4b926310c79cee24641f
Showing 1 changed file with 4 additions and 4 deletions.
@@ -25,9 +25,9 @@ get this project and its sub-modules:

And then, with jdk 1.8+ and maven 3.1+ installed:

mvn clean install -Dno-go-client -Dno-rpm -Dno-deb -DskipDocker
mvn clean install

However, you won't be able to build the RPM/DEB packages, as well as the CLI. That's why we would recommand to use the
However, this will not build the RPM/DEB packages, as well as the CLI. That's why we would recommand to use the
alternative: a docker container to build this project:

```bash
@@ -36,7 +36,7 @@ docker run -i --rm --name brooklyn -u $(id -u):$(id -g) \
--mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${PWD}:/usr/build -w /usr/build \
brooklyn mvn clean install -Duser.home=/var/maven -Duser.name=$(id -un)
brooklyn mvn clean install -Duser.home=/var/maven -Duser.name=$(id -un) -Drpm -Ddeb -Dclient -Ddocker
```

You can speed this up by using your local .m2 cache:
@@ -45,7 +45,7 @@ docker run -i --rm --name brooklyn -u $(id -u):$(id -g) \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${HOME}/.m2:/var/maven/.m2 \
-v ${PWD}:/usr/build -w /usr/build \
brooklyn mvn clean install -Duser.home=/var/maven -Duser.name=$(id -un)
brooklyn mvn clean install -Duser.home=/var/maven -Duser.name=$(id -un) -Drpm -Ddeb -Dclient -Ddocker
```

The results are in `brooklyn-dist/dist/target/`, including a tar and a zip.

0 comments on commit 7071bdc

Please sign in to comment.