Explorar el Código

add option to save password in repo folder

Vadim Surkov hace 5 años
padre
commit
26b53ec0a8
Se han modificado 3 ficheros con 11 adiciones y 2 borrados
  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