Github user sjcorbett commented on a diff in the pull request:

    https://github.com/apache/brooklyn-docs/pull/164#discussion_r114841357
  
    --- Diff: guide/ops/catalog/index.md ---
    @@ -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 `catalog.bom` with the following contents:
    +
    +~~~ yaml
    +brooklyn.catalog:
    +  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 script-server.zip catalog.bom myfile.txt
    +~~~
    +
    +Currently the only supported method for uploading the bundle to the server 
is via the API, e.g. using
    --- End diff --
    
    My mistake, adding a directory works great.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to