Github user tbouron commented on a diff in the pull request:
https://github.com/apache/brooklyn-docs/pull/164#discussion_r110357761
--- Diff: guide/ops/catalog/index.md ---
@@ -371,6 +372,141 @@ 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 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 buldle name for this
blueprint. Any resources included
--- End diff --
s/buldle/bundle/
---
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.
---