Public | Automated Build

Last pushed: 2 years ago
Short Description
Subversion for Docker.
Full Description

build

docker build -t="rkrx/subversion" .

run

docker run --name subversion -d -p 80:80 -v /srv/subversion/data:/var/svn -v /srv/subversion/conf:/etc/svn rkrx/subversion

Setup

# Add User
htpasswd -c /srv/subversion/conf/svn-passwd ziozzang
# Create SVN Repo
svnadmin create --fs-type fsfs /srv/subversion/data/repos
# Change Ownereship of files.
chown -R www-data:www-data /srv/subversion/data/repos

cleanup

docker kill subversion
docker rm subversion
docker rmi rkrx/subversion

Configuration

AuthUserFile: /srv/subversion/conf/svn-passwd -> /etc/svn/svn-passwd
* https://www.csoft.net/docs/htaccess.html
AuthzSVNAccessFile: /srv/subversion/conf/svn-access -> /etc/svn/svn-access
* http://serverfault.com/questions/159247/how-does-authzsvnaccessfile-work

Svn-access is just like this.

[groups]
admin = ziozzang, asdf

[/]
@admin = rw
Docker Pull Command
Owner
ziozzang
Source Repository