You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by dr...@apache.org on 2017/11/21 11:49:06 UTC
[1/2] brooklyn-dist git commit: Add dockerfile for CI build
Repository: brooklyn-dist
Updated Branches:
refs/heads/master 48a456a99 -> bfd6f5546
Add dockerfile for CI build
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/commit/9c17ac2e
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/tree/9c17ac2e
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/diff/9c17ac2e
Branch: refs/heads/master
Commit: 9c17ac2eac17061ed72400f74e9dfb5083d75168
Parents: b44ff60
Author: Thomas Bouron <th...@cloudsoftcorp.com>
Authored: Tue Nov 7 14:16:59 2017 +0000
Committer: Thomas Bouron <th...@cloudsoftcorp.com>
Committed: Thu Nov 16 14:06:37 2017 +0000
----------------------------------------------------------------------
Dockerfile | 21 +++++++++++++++++++++
README.md | 26 ++++++++++++++++++++++++++
2 files changed, 47 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/brooklyn-dist/blob/9c17ac2e/Dockerfile
----------------------------------------------------------------------
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..14f78f4
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+FROM maven:3.5.2-jdk-8-alpine
+
+# Install necessary binaries to build brooklyn-dist
+RUN apk add --no-cache git rpm dpkg
http://git-wip-us.apache.org/repos/asf/brooklyn-dist/blob/9c17ac2e/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 0b34dc4..8ece84b 100644
--- a/README.md
+++ b/README.md
@@ -6,3 +6,29 @@
This repo contains modules for creating the distributable binary
combining the `server`, the `ui`, and other elements in other Brooklyn repos.
+### Building the project
+
+2 methods are available to build this project: within a docker container or directly with maven.
+
+#### Using docker
+
+The project comes with a `Dockerfile` that contains everything you need to build this project.
+First, build the docker image:
+
+```bash
+docker build -t brooklyn:dist .
+```
+
+Then run the build:
+
+```bash
+docker run -i --rm --name brooklyn-dist -v ${HOME}/.m2:/root/.m2 -v ${PWD}:/usr/build -w /usr/build brooklyn:dist mvn clean install
+```
+
+### Using maven
+
+Simply run:
+
+```bash
+mvn clean install
+```
\ No newline at end of file
[2/2] brooklyn-dist git commit: This closes #115
Posted by dr...@apache.org.
This closes #115
Project: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/commit/bfd6f554
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/tree/bfd6f554
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-dist/diff/bfd6f554
Branch: refs/heads/master
Commit: bfd6f5546607542f0bdc8ef85b97be4dc1661753
Parents: 48a456a 9c17ac2
Author: Duncan Godwin <dr...@googlemail.com>
Authored: Tue Nov 21 11:49:01 2017 +0000
Committer: Duncan Godwin <dr...@googlemail.com>
Committed: Tue Nov 21 11:49:01 2017 +0000
----------------------------------------------------------------------
Dockerfile | 21 +++++++++++++++++++++
README.md | 26 ++++++++++++++++++++++++++
2 files changed, 47 insertions(+)
----------------------------------------------------------------------