Comments (8)
Hey @havocp (Havoc) and @carrot-garden,
Can we use this Typesafe Library (Lightbend) in a distributed environment? I have a use case to read configuration from GIT similar to Spring Boot Cloud Configuration. Wanted to load configuration properties from Git and a particular Git Branch/Tags. Please let me know if it is possible with this library. Thanks a lot!!
from config.
I'm not sure I understand all aspects of the suggestion, but you could add the base config directory to the classpath, right? or maybe there's a reason that a separate "config path" can be useful?
Also it should work to manually include one file from the base config directory, and then have that file include all the others relatively. Should only have to specify the full path to the first "bootstrap" file...
from config.
Havoc, hello:
thanks for considering this; my typesafe.config use-case:
- there is a need to have multiple karaf instances self-auto-configured
http://karaf.apache.org/ - for that, there is central github based configuration repository,
with 2 branches "master" and "version", they have layout:
"master"
https://github.com/carrot-garden/carrot-config-tester
"version"
https://github.com/carrot-garden/carrot-config-tester/tree/version
- each karaf instance starts "generic", with only knowledge of its "identity" name
it has only basic set of bundles and config settings - first, in the "version", the instance discovers its version for its identity
https://github.com/carrot-garden/carrot-config-tester/blob/version/instance/com/company/karaf/version.conf - then in the "master", the instance finds a root of its config, under the "version" provided tag
https://github.com/carrot-garden/carrot-config-tester/blob/master/instance/com/company/karaf/application.conf - now application.conf needs to refer to bunch of shared config snippets form "master"
https://github.com/carrot-garden/carrot-config-tester/tree/master/common - since all of this is very dynamic, it would help to separate class-path from config-path;
thank you;
Andrei.
from config.
Thanks for the detailed use-case, I guess I would need to dig in here a bit. I think the hooks are there and you could use either the custom url protocol or a ConfigIncluder implementation to do this, but both are fairly cumbersome, so some kind of "just extend the search path" convenience feature could certainly make sense. Perhaps it could just be an option added to ConfigParseOptions (say setSearchPath), and also a system property supported in ConfigFactory.load (similar to -Dconfig.file= etc. we could have config.path). Something along those lines, not sure.
from config.
cool; let it cook then :-)
from config.
Also relevant is #202, right now includes are not in fact relative to the including file if you specify url()/file()/classpath().
from config.
@carrot-garden: I assume you solved this by now, four years later ;) May I ask what you did?
from config.
Hi @havocp and @akka-team,
Can we use this Typesafe Library (Lightbend) in a distributed environment? I have a use case to read configuration from GIT similar to Spring Boot Cloud Configuration. Wanted to load configuration properties from Git and a particular Git Branch/Tags. Please let me know if it is possible with this library. Thanks a lot!!
Is there any update on @ajayvkm comment? I would be very useful feature
from config.
Related Issues (20)
- Find a StackOverflowError in config
- Find a StackOverflowError in config
- Find a StackOverflowError in config HOT 1
- underscore characters HOT 2
- Problems with com.typesafe/config and maven-dependency-plugin
- introduce method accepting a list of Objects to add a value
- Should this project be explicitly considered as deprecated/not supported? HOT 29
- Community fork? HOT 7
- Resolving Variable Substitutions Between Multiple Config HOT 1
- Something error when use com.typesafe.config API convert conf file to scala bean class
- withFallBack is not adding value if not present
- how to load the config with substitution details HOT 3
- Add info about which signing keys will be used for published artifacts.
- Cannot provide environment variables programmatically
- Rendering partially resolved appended array results in invalid configuration HOT 1
- Inconsistent behavior with Overflow/Underflow and Exceptions
- Regression in environment variable reading behavior HOT 2
- Add a module info HOT 6
- Question about `ConfigFactory.systemProperties()` on windows HOT 1
- When rendering unresolved ConfigConcatenation, whitespaces are erroneously included
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from config.