Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » install dp from the command line(it is possible but is there a better way?)
install dp from the command line [message #1758634] Thu, 30 March 2017 20:33 Go to next message
paul stanton is currently offline paul stantonFriend
Messages: 87
Registered: July 2009
Member
Hi all,

In order to install a dp from the command line I am doing the following:

1. unzip dp
2. in osgi> install file:/bundles/bundle.jar
3. in osgi> uninstall <oldbundleid>
4. in osgi> start <newbundleid>
5. copy dp into /opt/eclipse/kura/kura/packages
6. edit /opt/eclipse/kura/kura/dpa.properties

I know i could skip 1-4 and just bounce kura but that is expensive.

Is there a better way?

[Updated on: Wed, 06 June 2018 05:55]

Report message to a moderator

Re: install dp from the command line [message #1758703 is a reply to message #1758634] Fri, 31 March 2017 18:23 Go to previous message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hi Paul,

I believe that is the only way without extending Kura. You could write a bundle that adds a custom command to the OSGi console. This is pretty easy to do [1]. This bundle could install/update/remove the DP similar to the Kura web UI (i.e. DeploymentAgentService).

[1] https://github.com/eclipse/kura/blob/develop/kura/org.eclipse.kura.core.log/src/main/java/org/eclipse/kura/core/log/LoggerCommandProvider.java

Thanks,
--Dave
Previous Topic:TI sensortag CC2650 kura example issue
Next Topic:de.dentrassi.kura.addons.milo in Kura RaspPi
Goto Forum:
  


Current Time: Fri Sep 20 18:26:11 GMT 2019

Powered by FUDForum. Page generated in 0.01633 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top