I extend the purpose about:
- do you need a central deployment tool ?
- do you need a "extend" the CI chain with a continuous deployment
If we talk about one "deployment tool" with "one SMX instance", just a
feature is enough, just have to define a good features shape.
If we talk about "multiple SMX instances" with one repo, Cellar or ACE
could be helpful.
If we talk about "one central deployment tool", with "multiple
environments" (a environment can contain several SMX instances, plus
others software), Apache Kalumet could help.
Cellar, ACE or Kalumet allows you (in different ways) to define a
configuration specific to an instance, an application or an environment.
Regards
JB
On 06/12/2012 04:47 PM, Christian Schneider wrote:
I typically just use a normal feature file to describe my application to
be deployed.
At runtime I log into the console, add the feature file and install the
needed features. There is no need to
add the features to the boot features as karaf will remember the running
bundles anyway.
An update is a little complicated at the moment as you have to uninstall
the features, uninstall the feature
file and then do the above. We are already working on better ways to do
this though.
Basically the idea is to have an update command where you just give the
new version and karaf does the update.
You can install default configs and config files with your feature and
then configure them using the files or the config admin service (jmx,
webconsole, ..).
For DB and JMS it is a good practice to use services for the DataSource
or ConnectionFactory. See
http://www.liquid-reality.de/x/LYBk . This way you can really let the
admins do these configs. Your app only knows about a named DataSource.
Christian
Am 12.06.2012 14:56, schrieb James Carman:
I'm using:
OSGi (blueprint-configured)
Camel
CXF
OpenJPA
I am using the features-maven-plugin provided by karaf to generate my
features.xml file. I guess I can do this at any level of granularity
by specifying dependencies in the pom.xml file.
Do you typically set these things up as "boot features" or do you just
use the karaf console to install the features needed at runtime. If
you use the console, how do you script your deployments? Do you just
put a bunch of karaf commands in a file and say "run this"? If you
use boot features, you can shutdown SMX, change the version of your
feature repository, blast the data directory, and restart (which is
what we're doing right now).
What do folks typically do with bundle-specific configuration files
that they need in the etc directory? There are certain properties
that we just don't know until we get to the environment (JDBC urls,
usernames, passwords, etc), so we obviously can't default them. Do
the "middleware guys" just manage those?
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com