Browse Source

add option to save password in repo folder

Vadim Surkov 5 years ago
parent
commit
26b53ec0a8
3 changed files with 11 additions and 2 deletions
  1. 4 2
      Dockerfile
  2. 4 0
      entrypoint.sh
  3. 3 0
      servers

+ 4 - 2
Dockerfile

@@ -2,7 +2,9 @@ FROM alpine:3.9
 
 RUN apk --no-cache add subversion cyrus-sasl-plain && \
     mkdir /repository
-
 WORKDIR /repository
+ENV HOME=/repository
+COPY servers /root/.subversion/servers
+COPY entrypoint.sh /entrypoint.sh
 
-ENTRYPOINT ["/usr/bin/svn"]
+ENTRYPOINT ["/entrypoint.sh"]

+ 4 - 0
entrypoint.sh

@@ -0,0 +1,4 @@
+#!/bin/ash
+mkdir ~/.subversion/ 2> /dev/null
+[ ! -f ~/.subversion/servers ] && cp -r /root/.subversion/servers ~/.subversion/servers
+exec "/usr/bin/svn" "$@"

+ 3 - 0
servers

@@ -0,0 +1,3 @@
+[global]
+store-passwords = yes 
+store-plaintext-passwords = yes