Hi Graham.

Uploading a ZIP file to Brooklyn is indeed a good idea. The good news is,
there is a PR to support this in `brooklyn-server`[1]. The slightly less
good news is that it's still in review and therefore not available yet in
the stable version.

However, there are few of workarounds this.

You could host your different bom files anywhere you want, then reference
those into your main BOM file like so:
```
brooklyn.catalog:
  id: your-id
  items:
  - item: http://.....
  - item: http://.....
```

Or you could create a JAR with all your resources inside then reference
this in your main BOM file, similar to what Clocker does[2].

Finally, you would just distribute your main BOM file to other users.

[1] https://github.com/apache/brooklyn-server/pull/485
[2] https://github.com/brooklyncentral/clocker/blob/master/clocker.bom

On Fri, 10 Mar 2017 at 14:15 Graham Ashby <[email protected]> wrote:

> (Not an OSGi bundle...)
> I've developed a set of YAML catalog entries for defining my application.
> Now I want to be able to distribute them so other people can load them
> into their Brooklyn server.
> I see that there are ways of defining an initial catalog, but as I see it,
> this is a single file.  In my case, I have a number of separate catalog
> entries, so I don't want to embed them into a single yaml file.  Including
> them doesn't really work either, as then I'd need to know in advance
> exactly what was in my set.
> What I'd ideally like is to be able to, say, point the server at a zip
> file of catalog entries, and have them all loaded.
> I tried reading through the code, so I have suspicions it could be done,
> but I'm not sure how.
>
> So, is there a way to do this?  The zip file (or whatever) would probably
> be on the local file system.
>
> Thanks
> Graham
>
> --

Thomas Bouron • Software Engineer @ Cloudsoft Corporation •
http://www.cloudsoftcorp.com/
Github: https://github.com/tbouron
Twitter: https://twitter.com/eltibouron

Reply via email to