Skip to main content



      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 16:33 Go to next message
Eclipse UserFriend
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 01:55] by Moderator

Re: install dp from the command line [message #1758703 is a reply to message #1758634] Fri, 31 March 2017 14:23 Go to previous message
Eclipse UserFriend
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: Thu Jul 10 23:21:33 EDT 2025

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

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

Back to the top