my variant of <elleflorio|sea-kg>/svn-docker
9.7K
It's a fork of https://github.com/elleFlorio/svn-docker & https://github.com/sea-kg/svn-docker
Lightweight container providing an SVN server, based on Alpine Linux and S6 process management (see here for details). The access to the server is possible via WebDav protocol (http://).
Components (Tag v3.24-lsio):
Note:
Starting tag v3.20-lsio the volume mount moved from /data to /config. Please adapt your docker-compose.yml file accordingly.
latest latest versionv3.24-lsio based on linuxserver.io baseimage / Alpine Linux 3.24v3.23-lsio based on linuxserver.io baseimage / Alpine Linux 3.23v3.22-lsio based on linuxserver.io baseimage / Alpine Linux 3.22v3.21-lsio based on linuxserver.io baseimage / Alpine Linux 3.21v3.20-lsio based on linuxserver.io baseimage / Alpine Linux 3.20v3.20 based on Alpine Linux 3.20v3.19 based on Alpine Linux 3.19v3.18 based on Alpine Linux 3.18v3.17 based on Alpine Linux 3.17To run the image, you can use the following command:
$ docker run \
--name svn-server \
-p 8080:80 \
-e SVN_SERVER_REPOSITORIES_URL=/svn \
-e WEBSVN_URL=/websvn \
-e WEBSVN_AUTH=2 \
-e SVN_SERVER_REPOS_STYLE_AUTH=2 \
-v `pwd`/data:/config \
docker.io/userid0x0/svn-docker
SVN_SERVER_REPOSITORIES_URL location of the SVN repo on the web interface/svnSVN_SERVER_REPOS_STYLE_AUTH authentification used for Repos-Style history functionality2
0 no authentification used (public access)1 read access for all known users for all repositories2 read access to all known users repecting svnauthzWEBSVN_URL location of the WebSVN web interface/websvnWEBSVN_AUTH authentification used for WebSVN2
0 no authentification used (public access)1 read access for all known users for all repositories2 read access to all known users repecting svnauthz (e.g. controlled via iF.SVNAdmin)PUID UserID911PGID GroupID911/config<data>/repositories - will be keep all repositories in subfolder in data<data>/subversion - configurations for subversion (passwd && subversion-access-control)<data>/svnadmin - svnadmin related<data>/websvn - websvn related$ docker build --tag localhost/svn-docker .
Create a local data folder for persistent storage and start svn-docker e.g.
$ cd <mydir>
$ mkdir data
$ docker run --name svn-server -p 8080:80 -v `pwd`/data:/config docker.io/userid0x0/svn-docker
With the first start /config will be inited automatically - folders/files/password - for easy start.
Defaults:
read-only permissions for all known usersadmin / password: admin Don't forget change thisLogin to
admin / password: admin Don't forget change this )<reponame><user>user to repository <reponame>alex read-write privileges to repository test.
Finally try to checkout a repository on your host machine:
$ cd <checkout>
# easy
$ svn checkout http://localhost:8080/svn/<reponame>
# with explicit username
$ svn checkout --username <user> http://localhost:8080/svn/<reponame>
$ cd <checkout>/<reponame>
$ touch test.txt
$ svn add test.txt
$ svn commit -m "initial commit"
Check the functionality by opening
within your favorite webbrowser.
It's recommended to use svnadmin to create user accounts/repositories.
For further information on how to configure Subversion, please refer to the official web page.
Content type
Image
Digest
sha256:ed77c9585…
Size
22.9 MB
Last updated
4 months ago
docker pull userid0x0/svn-docker