[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2024-07-26 Thread Ioan Eugen Stan (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17869067#comment-17869067
 ] 

Ioan Eugen Stan commented on OFBIZ-12401:
-

[~nmalin] : thanks for looking into this and congrats on the progress so far. 

I would prioritize splitting OFBiz into libraries 
[https://github.com/apache/ofbiz-framework/pull/678] , 
https://issues.apache.org/jira/browse/OFBIZ-12308 .

Configuration handling is spread across some classes and made splitting not 
that easy because of it.

Having libraries will force interfaces and configuration handling to be 
explicit.

Regarding ofbiz-component.xml - there is a lot to unpack there IMO.  

That part is mixed with project building.

Making components libraries (see OFBIZ-12308 again) will kind of get rid of 
this part / make it less important.

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Improvement
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2024-07-23 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868109#comment-17868109
 ] 

Jacques Le Roux commented on OFBIZ-12401:
-

Hi Nicolas,

Looking forward :)

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Improvement
>Reporter: Ioan Eugen Stan
>Assignee: Jacques Le Roux
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2024-07-23 Thread Nicolas Malin (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868010#comment-17868010
 ] 

Nicolas Malin commented on OFBIZ-12401:
---

Hello, 

I restarted the work with the presence of new energy at Néréide and we try to 
use https://github.com/lightbend/config as suggest by [~ieugen].

At this time, we arrive to change nothing on the current configuration and 
override any xml config value by HOCON properties files.

Example :


{code:xml}


{code}

add an application.conf file at start with 
{code:json}
  "entityengine": {
"entity-config": {
  "datasource": {
"localpostgres": {
  "inline-jdbc": {
"jdbc-uri": "jdbc:postgresql://mydevserver/ofbiz-dev"
"jdbc-username": "userdev"
"jdbc-password": "passworddev"
  }
}
  }
}
}
{code}

Idea to support the xml as hocon file was change the xml file loading from sax 
parsing to xpath resolver and create bridge between xpath resolver and hocon 
path :)

The main goal will be override any conf on entityengine, serviceengine, any 
properties and if we can ofbiz-component.xml and web.xml

I will share the source code change soon

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Improvement
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2022-09-18 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17606280#comment-17606280
 ] 

Jacques Le Roux commented on OFBIZ-12401:
-

Hi, what should be the status here?

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Sub-task
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2021-12-17 Thread Marco RODRIGUES (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17461489#comment-17461489
 ] 

Marco RODRIGUES commented on OFBIZ-12401:
-

I will have some days off, two next week.

If you have material to integrate into the common reflection, it would be 
interesting to send it. Even if it is not finalized, it will provide ideas that 
could be integrated, trying to fit the needs.

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Sub-task
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2021-11-29 Thread Marco RODRIGUES (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450460#comment-17450460
 ] 

Marco RODRIGUES commented on OFBIZ-12401:
-

Hi Eugen, Hi Jacques,
I have added a comment on ticket OFBIZ-9498 which has lead to 
https://github.com/apache/ofbiz-framework/pull/355 .

All your comments, improvements or recommendations to make it better or fit 
your needs are welcome

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Sub-task
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2021-11-28 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450039#comment-17450039
 ] 

Jacques Le Roux commented on OFBIZ-12401:
-

Hi Eugen,

Are you aware of OFBIZ-9498 and 
https://github.com/apache/ofbiz-framework/pull/355 ?

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Sub-task
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2021-11-28 Thread Ioan Eugen Stan (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450026#comment-17450026
 ] 

Ioan Eugen Stan commented on OFBIZ-12401:
-

When running inside containers we need a way to easily configure 
"host-headers-allowed" 
"You need to set host-headers-allowed property in security.properties file. " 

It would be great to have this configured via environment variable for easy 
container configuration.

 

The alternative right now is to mount a configuration file as a volume which is 
not very nice. 

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Sub-task
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2021-11-24 Thread Ioan Eugen Stan (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17448821#comment-17448821
 ] 

Ioan Eugen Stan commented on OFBIZ-12401:
-

[~pierresmits] : I'm talking about the configurations you normally need to 
restart the application for:
 * ports
 * database configuration (url, credentials, etc)
 *  

Some good libraries for this are:
[https://github.com/lightbend/config]  - 0 dependency configuration library

[https://github.com/cfg4j/cfg4j] - nice feature set - but seems not to be 
maintained so I am worried

I also looked at commons-configuration but I think it brings a lot of baggage.

 

One question is how to migrate existing configurations?

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Sub-task
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (OFBIZ-12401) Improved OFBiz configuration management for containers

2021-11-24 Thread Pierre Smits (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17448564#comment-17448564
 ] 

Pierre Smits commented on OFBIZ-12401:
--

Grüß Gott Ioan,

Which configuration options do you think that fall in the category of to be 
overridden?

Many of those in the various components in applications, plugins and themes (if 
there some), can be loaded into the SystemProperties table as seed data.

> Improved OFBiz configuration management for containers
> --
>
> Key: OFBIZ-12401
> URL: https://issues.apache.org/jira/browse/OFBIZ-12401
> Project: OFBiz
>  Issue Type: Sub-task
>Reporter: Ioan Eugen Stan
>Priority: Major
>
> It's hard to use OFBiz with containers and other deployment scenarios because 
> the OFBiz configuration is intertwined with source files and there are a lot 
> of them.
> We also need:
>  * the ability to override configuration properties
>  * load configs from a single / handful of files in a single location
>  * optionally load from multiple sources (files, db, configuration services 
> like kubernetes, consul ,etc) .
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)