Giter VIP home page Giter VIP logo

cf-entity's Introduction

cf-entity

This is a Sample Brooklyn project, showing how to define an application which Brooklyn will deploy and manage.

This sample project is intended to be customized to suit your purposes: but search for all lines containing the word "sample" to make sure all the references to this being a sample are removed!

To build an assembly, simply run:

mvn clean assembly:assembly

This creates a tarball with a full standalone application which can be installed in any *nix machine at: target/cf-entity-0.1.0-SNAPSHOT-dist.tar.gz

It also installs an unpacked version which you can run locally:

 cd target/cf-entity-0.1.0-SNAPSHOT-dist/cf-entity-0.1.0-SNAPSHOT
 ./start.sh server

For more information see the README (or ./start.sh help) in that directory. On OS X and Linux, this application will deploy to localhost if you have key-based password-less (and passphrase-less) ssh enabled.

To configure cloud and fixed-IP locations, see the README file in the built application directly. For more information you can run ./start.sh help) in that directory.

Opening in an IDE

To open this project in an IDE, you will need maven support enabled (e.g. with the relevant plugin). You should then be able to develop it and run it as usual. For more information on IDE support, visit:

https://brooklyn.incubator.apache.org/v/latest/dev/env/ide/

Customizing the Assembly

The artifacts (directory and tar.gz by default) which get built into target/ can be changed. Simply edit the relevant files under src/main/assembly.

You will likely wish to customize the SampleMain class as well as the Sample*App classes provided. That is the intention! You will also likely want to update the start.sh script and the README.* files.

To easily find the bits you should customize, do a:

grep -ri sample src/ *.*

More About Apache Brooklyn

Apache Brooklyn is a code library and framework for managing applications in a cloud-first dev-ops-y way. It has been used to create this sample project which shows how to define an application and entities for Brooklyn.

This project can be extended for more complex topologies and more interesting applications, and to develop the policies to scale or tune the deployment depending on what the application needs.

For more information consider:

A sample Brooklyn project should specify its license.

================

© 2015 Cloudsoft Corporation Limited.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. The licence is provided in LICENSE.md, and 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.

cf-entity's People

Contributors

jdtoy avatar robertgmoss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.