Hi Andrew You can use startup.properties file to specify which bundles should be installed at boot time. We are doing it in SMX to add the OBR bundles. You can simply modify the existing file after unpacking SMX and append your additional bundles. You must ensure the bundles are available for SMX - you must copy them into the system subdirectory (according to the maven coordinates). I think the both thing can be simple done in the Docker script.
Regards Krzysztof On 07.12.2014 09:57, Andrew Thorburn wrote: > Hey folks, > > I've been playing around with setting up docker images for SMX, and > one of the things it would be very helpful to be able to do is specify > a list of *bundles* (not features!) that are installed the first time > SMX boots up. > > I know how to do features - just edit the > etc/org.apache.karaf.features.cfg file - but I want to ensure the > following bundles are installed: > > mvn:commons-io/commons-io/1.4 > mvn:commons-beanutils/commons-beanutils/1.8.3 > > And I don't see a way to do that without having to boot it up first > (which is a right pain to do in Docker). > > On a related note, is it possible to install the features without > having to boot up SMX? My primary aim for what I'm doing now is to be > able to create a Docker instance which is fully pre-configured for the > other developers to use (and potentially to use in production, at some > later stage). > > I could create a Maven POM to add the necessary extra JARs to the > system directory, I imagine, but I'd rather have them installed during > creation of the image, if I can - the less things that can go wrong > when other people get their hands on it, the better. > > And yeah, I could build my own SMX (doesn't seem like it would be that > hard, but not sure it would solve the non-feature bundles, above), but > I'm trying to see what I can and can't do in Docker, and it just feels > like it would be a bit easier to just download the binary and install > stuff, as opposed to cloning the SMX repo and keeping that up-to-date. > Might be wrong, but hey. > > Thanks, > > -Andrew -- Krzysztof Sobkowiak JEE & OSS Architect | Senior Solution Architect @ Capgemini | Committer @ ASF Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center <http://www.pl.capgemini-sdm.com/> | Wroclaw e-mail: [email protected] <mailto:[email protected]> | Twitter: @KSobkowiak Calendar: http://goo.gl/yvsebC
