diff --git a/docs/modules/ROOT/pages/server/environment-repository/git-backend.adoc b/docs/modules/ROOT/pages/server/environment-repository/git-backend.adoc index 74cfb5f1..35608a04 100644 --- a/docs/modules/ROOT/pages/server/environment-repository/git-backend.adoc +++ b/docs/modules/ROOT/pages/server/environment-repository/git-backend.adoc @@ -453,3 +453,18 @@ does not exist, the config server will by default also try to checkout a branch you would like to disable to the fallback branch behavior you can set `spring.cloud.config.server.git.tryMasterBranch` to `false`. +[[container]] +== Running The Config Server Using Git In A Container + +If you are getting a `java.io.IOException` when running the Config Server in a container that is similar to: + +``` +2022-01-03 20:04:02,892 [tributeWriter-2] ERROR org.eclipse.jgit.util.FS$FileStoreAttributes.saveToConfig - Cannot save config file 'FileBasedConfig[/.config/jgit/config]' +java.io.IOException: Creating directories for /.config/jgit failed +``` + +You must either: + +1. Provide a user with a writeable home directory inside the container. +2. Set the environment variable `XDG_CONFIG_HOME` inside the container to point to a directory where the Java process has write permissions. + diff --git a/pom.xml b/pom.xml index ace10def..d6d072a9 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ 4.2.0-SNAPSHOT 2.18.41 v1-rev20201112-1.30.10 - 1.17.3 + 1.17.6 2.31.0 3.0.0 true diff --git a/spring-cloud-config-dependencies/pom.xml b/spring-cloud-config-dependencies/pom.xml index 1c30f85f..b0fb9db8 100644 --- a/spring-cloud-config-dependencies/pom.xml +++ b/spring-cloud-config-dependencies/pom.xml @@ -74,7 +74,7 @@ org.tmatesoft.svnkit svnkit - 1.10.1 + 1.10.11 diff --git a/spring-cloud-config-server/pom.xml b/spring-cloud-config-server/pom.xml index b4d446ef..33711636 100644 --- a/spring-cloud-config-server/pom.xml +++ b/spring-cloud-config-server/pom.xml @@ -215,7 +215,7 @@ com.amazonaws aws-java-sdk-core - 1.12.287 + 1.12.770 test @@ -255,7 +255,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.2.0 + 3.2.2