question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spring.cloud.config.server.git.basedir is ignored

See original GitHub issue

Steps to reproduce:

  1. Create a Spring Cloud Config Server application with the configuration:
server:
  port: 8888
spring:
  cloud:
    config:
      server:
        git:
          basedir: "/some/other/directory/here"
          uri: git@example.com:foo/base.git
          repos:
            type1: git@example.com:foo/type1.git
            type2:
              pattern: '*/type2*'
              uri: git@example.com:foo/type2.git
  1. Run the application

Expected:

config-repo-* directories are created under /some/other/directory/here

Actual:

config-repo-* directories are created under /private/var/folders/<some other directories/config-repo-* on Mac OS x

Per http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_version_control_backend_filesystem_use this should work. Unless I have the config wrong somehow

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jogjayrcommented, Jul 12, 2017

@spencergibb I’m using the latest version version 1.2.3.RELEASE. It wasn’t obvious from the docs that the property isn’t a global. What probably happened is that I set the basedir but didn’t try to request any configurations from base.git.

Just to be clear, basedir has to be specified per repo? So in my example I would additionally need properties named: spring.cloud.config.server.git.repos.type1.basedir and spring.cloud.config.server.git.repos.type2.basedir? If so do you think it’s worth updating the documentation with this information? I can create a PR

0reactions
spencergibbcommented, Jan 18, 2018

Closing this due to inactivity. Please re-open if there’s more to discuss.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with git pull in spring cloud config server when using ...
I am defining a basedir property for my git configuration so that git creates the local copy at this location.(We have a use...
Read more >
2. Spring Cloud Config Server
Spring Cloud Config Server provides an HTTP resource-based API for external configuration (name-value pairs or equivalent YAML content).
Read more >
Enterprise Single Sign-On for All - CAS - Configuration Server
The Spring Cloud Configuration Server is able to handle git or svn based repositories that host CAS ... Base directory for local working...
Read more >
spring-cloud-config: External configuration (server and client ...
The default strategy for locating property sources is to clone a git repository (at spring.cloud.config.server.git.uri ) and use it to initialize a mini ......
Read more >
Reading properties from Spring Cloud Config Server - Quarkus
quarkus create app org.acme:spring-cloud-config-quickstart ... on the Spring Cloud Config Server (generally "master" when the server uses a Git backend).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found