[jira] [Commented] (KARAF-6000) Add direct resource repositories support

2018-11-22 Thread Grzegorz Grzybek (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16696433#comment-16696433
 ] 

Grzegorz Grzybek commented on KARAF-6000:
-

Not quite related, but {{etc/org.apache.karaf.features.xml}} contains the 
_overrides_ which are strictly related to repository URIs + feature names/ids + 
bundle URIs.

{{feature:refresh}} command re-reads this file and reprovisions all 
requirements (still not related to _resources_) using what was already 
implemented in _features service_.

Is this a plan to replace _karaf features_ with _OSGi R7 repositories_? I 
remember there are many resolution quirks (blacklisting, overrides, 
prerequisites) related to features which I don't think can be directly 
translated to what _OSGi R7 repositories_ define.

> Add direct resource repositories support
> 
>
> Key: KARAF-6000
> URL: https://issues.apache.org/jira/browse/KARAF-6000
> Project: Karaf
>  Issue Type: New Feature
>  Components: karaf
>Reporter: Jean-Baptiste Onofré
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.3.0
>
>
> Since OSGi R6, the "new" bundle repository spec allows to directly leverage 
> any requirement/capability to do the bundle resolution.
> We already support this via the features (using {{resourceRepository}} with 
> json or XML in {{etc/org.apache.karaf.features.cfg}}. I think it would be 
> great to have a complete alternative to features using bundle repository. We 
> could introduce a minimal feature set (just for the bootstrapping) as we have 
> today, but delegating to {{etc/org.apache.karaf.repository.cfg}} for resource 
> repositories and using them for resolution.
> We could also provide specific commands to manipulate the bundle repositories 
> (like add, remove, as we have for features repositories).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6000) Add direct resource repositories support

2018-11-05 Thread JIRA


[ 
https://issues.apache.org/jira/browse/KARAF-6000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16675149#comment-16675149
 ] 

Jean-Baptiste Onofré commented on KARAF-6000:
-

The first idea is actually "dynamic" resource repositories (with dedicated 
commands). Thanks for the explanation about resolving the deployment each time 
we change the resource repositories set (adding/removing a repository).

About the "alternative to features", it's a rough idea, and I don't want to 
fully remove feature. It's more to give some "OSGi closer" way to deal with 
bundles/applications. I like the idea of command converting a features 
repository as resource repository, eventually with verbose output. It would 
give details about features values for users.

> Add direct resource repositories support
> 
>
> Key: KARAF-6000
> URL: https://issues.apache.org/jira/browse/KARAF-6000
> Project: Karaf
>  Issue Type: New Feature
>  Components: karaf
>Reporter: Jean-Baptiste Onofré
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.2.2
>
>
> Since OSGi R6, the "new" bundle repository spec allows to directly leverage 
> any requirement/capability to do the bundle resolution.
> We already support this via the features (using {{resourceRepository}} with 
> json or XML in {{etc/org.apache.karaf.features.cfg}}. I think it would be 
> great to have a complete alternative to features using bundle repository. We 
> could introduce a minimal feature set (just for the bootstrapping) as we have 
> today, but delegating to {{etc/org.apache.karaf.repository.cfg}} for resource 
> repositories and using them for resolution.
> We could also provide specific commands to manipulate the bundle repositories 
> (like add, remove, as we have for features repositories).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6000) Add direct resource repositories support

2018-11-05 Thread Guillaume Nodet (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16674803#comment-16674803
 ] 

Guillaume Nodet commented on KARAF-6000:


Not exactly sure to understand how far you want to go.

Adding / removing resource repository is not a problem.  Currently, the 
"globalRepository" is considered static, i.e. it's only read when the 
features-core bundle is started.  If we want to make is more dynamic and have 
the ability to add / remove repositories at runtime, we need to ensure we 
resolve the deployment again when a repository is removed / added, or that we 
force the uninstallation of the resources that come from that repository in 
order to make sure we always stay consistent.

About the "complete alternative to features": at runtime, a feature is 
translated into a resource, but not a bundle resource, so we could translate a 
feature repository into a resource repository very easily.  That said, a lot of 
things that are built into features can't be modelled just using bundles as 
resources.  I think one good thing would be to have a command that translate a 
feature or a feature repository into a resource repository so that we can have 
a better idea of how things are modelled and how verbose/complex it would be to 
achieve the same without features (I'm thinking about conditionals, the 
dependent flag, etc...).


> Add direct resource repositories support
> 
>
> Key: KARAF-6000
> URL: https://issues.apache.org/jira/browse/KARAF-6000
> Project: Karaf
>  Issue Type: New Feature
>  Components: karaf
>Reporter: Jean-Baptiste Onofré
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.2.2
>
>
> Since OSGi R6, the "new" bundle repository spec allows to directly leverage 
> any requirement/capability to do the bundle resolution.
> We already support this via the features (using {{resourceRepository}} with 
> json or XML in {{etc/org.apache.karaf.features.cfg}}. I think it would be 
> great to have a complete alternative to features using bundle repository. We 
> could introduce a minimal feature set (just for the bootstrapping) as we have 
> today, but delegating to {{etc/org.apache.karaf.repository.cfg}} for resource 
> repositories and using them for resolution.
> We could also provide specific commands to manipulate the bundle repositories 
> (like add, remove, as we have for features repositories).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6000) Add direct resource repositories support

2018-11-04 Thread JIRA


[ 
https://issues.apache.org/jira/browse/KARAF-6000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16674718#comment-16674718
 ] 

Jean-Baptiste Onofré commented on KARAF-6000:
-

[~gnt] thoughts ?

> Add direct resource repositories support
> 
>
> Key: KARAF-6000
> URL: https://issues.apache.org/jira/browse/KARAF-6000
> Project: Karaf
>  Issue Type: New Feature
>  Components: karaf
>Reporter: Jean-Baptiste Onofré
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.2.2
>
>
> Since OSGi R6, the "new" bundle repository spec allows to directly leverage 
> any requirement/capability to do the bundle resolution.
> We already support this via the features (using {{resourceRepository}} with 
> json or XML in {{etc/org.apache.karaf.features.cfg}}. I think it would be 
> great to have a complete alternative to features using bundle repository. We 
> could introduce a minimal feature set (just for the bootstrapping) as we have 
> today, but delegating to {{etc/org.apache.karaf.repository.cfg}} for resource 
> repositories and using them for resolution.
> We could also provide specific commands to manipulate the bundle repositories 
> (like add, remove, as we have for features repositories).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)