brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjcorbett <>
Subject [GitHub] brooklyn-docs pull request #164: Adds documentation for bundling catalog res...
Date Thu, 04 May 2017 16:35:33 GMT
Github user sjcorbett commented on a diff in the pull request:
    --- Diff: guide/ops/catalog/ ---
    @@ -371,6 +372,155 @@ increment an internal version number for the catalog item.
     When referencing a blueprint, if a version number is not specified 
     the latest non-snapshot version will be loaded when an entity is instantiated.
    +### Bundling Catalog Resources
    +When deploying a blueprint, it is possible to deploy it as an OSGI bundle with additional
resources scoped
    +to this bundle. This is particularly useful when, for example, deploying a Tomcat server
with a `.war` file
    +which is deployed using a classpath path such as `classpath://mywar.war`.
    +In this example, we will create a simple `server` catalog item, bundled with a simple
text file.
    +First, create the text file with some sample contents:
    +~~~ bash
    +echo Hello, World! > myfile.txt
    +Now create a file called `` with the following contents:
    +~~~ yaml
    +  bundle: script-server
    +  version: 1.0.0
    +  items:
    +  - id: script-server
    +    itemType: entity
    +    item:
    +      type: server
    +      brooklyn.config:
    +        files.runtime:
    +          classpath://myfile.txt: files/myfile.txt
    +The `bundle: script-server` line specifies the OSGI bundle name for this blueprint. Any
resources included
    +in this bundle will be accessible on the classpath, but will be scoped to this bundle.
This prevents an
    +issue where multiple bundles include the same resource.
    +To create the bundle, simply zip the `.bom` and `.txt` files as follows:
    +~~~ bash
    +zip myfile.txt
    +Currently the only supported method for uploading the bundle to the server is via the
API, e.g. using
    --- End diff --
    This isn't true any more. You can `br catalog add` too.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message