Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5A0FB200D42 for ; Fri, 17 Nov 2017 15:37:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 58D02160C0A; Fri, 17 Nov 2017 14:37:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9F330160BF8 for ; Fri, 17 Nov 2017 15:37:45 +0100 (CET) Received: (qmail 14046 invoked by uid 500); 17 Nov 2017 14:37:44 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 14037 invoked by uid 99); 17 Nov 2017 14:37:44 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2017 14:37:44 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 098F1F4F66; Fri, 17 Nov 2017 14:37:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: drigodwin@apache.org To: commits@brooklyn.apache.org Date: Fri, 17 Nov 2017 14:37:43 -0000 Message-Id: <33e902ea9f5d4ceba11721e84abcda17@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] brooklyn-server git commit: Add dockerfile for CI build archived-at: Fri, 17 Nov 2017 14:37:46 -0000 Repository: brooklyn-server Updated Branches: refs/heads/master bcc4e5c36 -> 1e885bb3a Add dockerfile for CI build Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/3003a6dc Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/3003a6dc Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/3003a6dc Branch: refs/heads/master Commit: 3003a6dc05340f44cb56ba78513c17be9fc22a75 Parents: c68cbaf Author: Thomas Bouron Authored: Thu Nov 16 14:07:47 2017 +0000 Committer: Thomas Bouron Committed: Thu Nov 16 14:07:47 2017 +0000 ---------------------------------------------------------------------- Dockerfile | 21 +++++++++++++++++++++ README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/3003a6dc/Dockerfile ---------------------------------------------------------------------- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70c688a --- /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-server +RUN apk add --no-cache git http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/3003a6dc/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 07f69e6..4613948 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,30 @@ This repo contains the core elements to run a Brooklyn server, from the API and utils through to the core implementation and the REST server. + +### 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:server . +``` + +Then run the build: + +```bash +docker run -i --rm --name brooklyn-server -v ${HOME}/.m2:/root/.m2 -v ${PWD}:/usr/build -w /usr/build brooklyn:server mvn clean install +``` + +### Using maven + +Simply run: + +```bash +mvn clean install +``` \ No newline at end of file