spring-cloud-config icon indicating copy to clipboard operation
spring-cloud-config copied to clipboard

How to make configuration in config server to share common properties files to different git repositories (I mean multiple git repositories) ?

Open Vishnu4a7 opened this issue 8 years ago • 4 comments

Hi Guys,

I am facing a problem with sharing common properties of config server to multiple git repositories (Now common properties are there in default git repository). I don't want to move those common properties physically into other git repositories. Please suggest how can i achieve this feature.

My desired functionality is for example:

Default Git : Which contains common properties.

Application1 Git: Which contains application1 specific properties.

Application2 Git: Which contains application2 specific properties.

Now when the application1 got executed then it has to get the application1 properties as well as the common properties of Default Git.

Same for the application2 also.

I need the solution in configuration level i.e. application.properties/application.yml file of config server not with the coding in java files.

Thanks in advance.

Vishnu4a7 avatar Mar 28 '18 06:03 Vishnu4a7

I dont think there is a solution to achieve this. I think the best way to do this is to keep everything in one repo and put the default properties in application.properties and specific application properties in app specific properties files.

ryanjbaxter avatar Mar 28 '18 19:03 ryanjbaxter

@ryanjbaxter That's great but the application specific git repositories are won't be available with us. It is a platform we are developing and giving onboarding services to different applications developed by other teams. They will have their own git repository and properties. With those application specific properties we have to fetch our default platform related properties.

Vishnu4a7 avatar Mar 29 '18 15:03 Vishnu4a7

Pretty sure we have an open issue for this already

spencergibb avatar Mar 29 '18 16:03 spencergibb

Yup here is the issue https://github.com/spring-cloud/spring-cloud-config/issues/286.

ryanjbaxter avatar Mar 29 '18 20:03 ryanjbaxter