As per Spring cloud documentation-
With VCS-based backends (git, svn), files are checked out or cloned to the local filesystem. By default, they are put in the system temporary directory with a prefix of config-repo-. On linux, for example, it could be /tmp/config-repo-
We are trying to clone the data to user defined location /var//configserver/data using below configuration for the same but it doesn't create. Please suggest. To be informed , we are using Java 17, Spring boot 2.7.0 , Spring cloud 2021.0.3 which loads config server and config client dependencies with version 3.1.3**
spring:
cloud:
config:
server:
prefix: /config
composite:
-
type : git
uri: git@github.com:xyz/eai-123-{application}${levelname}.git
ignoreLocalSshSettings: true
passphrase: ${PASSPHRASE}
privateKey: ${DEPLOY_KEY}
basedir: /var/abc/configserver/data
clone-on-start: true
-
type: git
uri: git@github.com:xyz/eai-123-common${levelname}.git
bootstrap: true
ignoreLocalSshSettings: true
passphrase: ${PASSPHRASE}
privateKey: ${DEPLOY_KEY}
basedir: /var/abc/configserver/data
clone-on-start: true
Please ignore if pasted configuration here, has any space issues, it may be because of copy paste. My original yml does not have any space issues so is a valid yml.
Comment From: ryanjbaxter
We no longer support this version of Spring Cloud plus update to Spring Cloud 2023.0.x and try and reproduce the error. If you can still reproduce the error please provide details on the error you are seeing.
Comment From: arc872014
Thanks for your response. I am closing the issue for now as i can't upgrade the spring cloud version for now.