Skip to content
Permalink
Browse files
This closes #65
  • Loading branch information
drigodwin committed Nov 21, 2017
2 parents cedb350 + a6dbd02 commit 1849ff98412559a038dd9d317a9fd819b7f45f05
Showing 2 changed files with 56 additions and 0 deletions.
@@ -0,0 +1,22 @@
# 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.

# For Brooklyn Client, we use a debian distribution instead of alpine as there are some libgcc incompatibilities with GO
FROM maven:3.5.2-jdk-8-slim

# Install necessary binaries to build brooklyn-client
RUN apt-get update && apt-get install -y git-core golang-go
@@ -0,0 +1,34 @@

# [![**Brooklyn**](https://brooklyn.apache.org/style/img/apache-brooklyn-logo-244px-wide.png)](http://brooklyn.apache.org/)

### Apache Brooklyn Client Sub-Project

This repo contains the CLI client for Apache Brooklyn.
It is written in go and is built for all platform.

### 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:client .
```

Then run the build:

```bash
docker run -i --rm --name brooklyn-client -v ${HOME}/.m2:/root/.m2 -v ${PWD}:/usr/build -w /usr/build brooklyn:client mvn clean install
```

### Using maven

Simply run:

```bash
mvn clean install
```

0 comments on commit 1849ff9

Please sign in to comment.