Coder Social home page Coder Social logo

include base(); "config://" url handler; about config HOT 8 OPEN

 avatar commented on July 24, 2024
include base(); "config://" url handler;

from config.

Comments (8)

ajayvkm avatar ajayvkm commented on July 24, 2024 1

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.

havocp avatar havocp commented on July 24, 2024

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.

 avatar commented on July 24, 2024

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

thank you;

Andrei.

from config.

havocp avatar havocp commented on July 24, 2024

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.

 avatar commented on July 24, 2024

cool; let it cook then :-)

from config.

havocp avatar havocp commented on July 24, 2024

Also relevant is #202, right now includes are not in fact relative to the including file if you specify url()/file()/classpath().

from config.

briantopping avatar briantopping commented on July 24, 2024

@carrot-garden: I assume you solved this by now, four years later ;) May I ask what you did?

from config.

Anatoliy4041 avatar Anatoliy4041 commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.