Skip to content

clamy54/docker-svn-iF.SVNAdmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iF.SVNAdmin SVN Server ( svnadmin )

This container provides a fully fonctionnal subversion server with iF.SVNAdmin as web based GUI.

This build is based on ubuntu/apache2:2.4-20.04_beta with php 7.4, mod ssl, and iF.SVNAdmin 1.6.2 (svnadmin).

This isn't an official build and it comes with no warranty ...

How to run

docker run --name svnserver  -p 8080:80 -p 8443:443  -v /localdir/svn:/var/svn/ -v /localdir/keys:/etc/apache2/keys/ -v /localdir/dav_svn:/etc/apache2/dav_svn/ -d clamy54/docker-svn-svnadmin:tag

If /localdir/keys is empty, self-signed ssl certificate will be generated. If /localdir/dav_svn is empty, a new admin account will be created (login : admin, password : admin).

You can access to the web gui on tcp port 8080 (http) or 443 (https)

You can acces svn repositories at https://my-svn-server:8443/svn/repository_name/

Example :

svn checkout --username myuser https://my-svn-server:8443/svn/myrepository ./

Using external CA signed ssl certificate

Stop the container. Copy your CA certificate to /localdir/keys/ca.pem Copy your certificate to /localdir/keys/cert.pem Copy your private key to /localdir/keys/cert.key

Using your own DH parameters file

At first run, if /localdir/keys/dhparams.pem doesn't exists, 2048-bits dh paramaters are generated.

You can generate your own 4096 bits DH parameters and put it in your /localdir/keys/dhparams.pem to replace the self generated 2048-bits DH file.

Volumes

To persist data, theses volumes are exposed and can be mounted to the local filesystem by adding -v option in the command line :

  • /var/svn - Subversion repositories
  • /etc/apache2/keys/ - SSL keys & certificates
  • /etc/apache2/dav_svn/ - Users & authorization files used by mod_dav_svn
  • /var/hooks - (Optionnal) if you use subversion hooks, then you can place them here

Environment variables

  • DEFAULT_PYTHON : (Optionnal) if set to "2", then /usr/bin/python will points to /usr/bin/python2.7. By default, /usr/bin/python points to /usr/bin/python3.8

Example :

docker container run  --name test-svnadmin  -p 8080:80 -p 8443:443 -e DEFAULT_PYTHON="2" -d clamy54/svn-svnadmin

Source repository

Sources can be found at : https://github.com/clamy54/docker-svn-iF.SVNAdmin

Example of how to use this container on Synology DSM :

You can find an example (in french) demonstating how to run this container on Synology DSM 7 as a remplacement of Synology SVN server (deprecated since DSM 7) :

https://www.be-root.com/2021/11/25/synology-et-serveur-svn/

About

This container provides a fully fonctionnal subversion server with iF.SVNAdmin as web based GUI.

Resources

Stars

Watchers

Forks

Packages

No packages published