/alpine-svn

Docker image for Subversion with WebDAV on Alpine Linux

Primary LanguageShell

alpine-svn

Description:

Docker image for Subversion with WebDAV on Alpine Linux. This image has 'Auto-versioning' turned on (SVNAutoversioning on) for PUTs grom non subversion clients.

Building it (it is not up on Dockerhub)

git clone git@github.com:paul-hammant/alpine-svn.git
cd alpine-svn
docker build -t paul-hammant/alpine-svn .

Running it

Starting container with docker command:

docker run -d -P paul-hammant/alpine-svn

The container start with the default account: davsvn (password: davsvn) and the default repository: testrepo

docker run -d -e SVN_REPO=repo -P paul-hammant/alpine-svn

The container start with the default account: davsvn (password: davsvn) and the specified repository: repo

docker run -d -e DAV_SVN_USER=user -e DAV_SVN_PASS=pass -P paul-hammant/alpine-svn

The container start with the specified account: user (password: pass) and the default repository: testrepo

docker run -d -e DAV_SVN_USER=user -e DAV_SVN_PASS=pass -e SVN_REPO=repo -P paul-hammant/alpine-svn

The container start with the specified account: user (password: pass) and the specified repository: repo

Host storage

Docker allocates an expanding sorage file to the container. The default for that is 50GB.

Using it

Quick and dirty, note the server address:

docker ps

Then, in a new directory elsewhere:

svn co --username davsvn --password davsvn http://0.0.0.0:32772/svn/testrepo
cd testrepo
# add/chg/commit as usual

And the magic (do in a new directory)

echo "hello" > .greeting
curl -u davsvn:davsvn -X PUT -T .greeting http://0.0.0.0:32772/svn/testrepo/greeting.txt

Whereupon you can svn up back in the checkout to see it.

Commit messages suck:

`Autoversioning commit:  a non-deltaV client made a change to`

It would be nice if MOD_DAV_SVN could accept a header for a custom message. Source for that log message is here. There is also a ticket for that change SVN-4454, that is presently marked as 'Won't Fix'.

Refer http://svnbook.red-bean.com/en/1.7/svn.webdav.autoversioning.html for canonical SVNAutoversioning info.