Use Gogs as svnserve auth backend
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
rootfs
CentOS-Base.repo
Dockerfile
README.md

README.md

Use Gogs for svnserve auth backend

Visit Docker Hub see all available images and tags.

Usage

To keep svn data out of Docker container, we do a volume (/var/svn -> /data) here, and for send request to Gogs, we use ENV value (GOGS_HOST=https://gogs.domain.lan) here, you can change them based on your situation.

# Pull image from Docker Hub.
$ docker pull ifreedom/svnserve-gogs-auth

# Create local directory for volume.
$ mkdir -p /var/svn

# Use `docker run` for the first time.
$ docker run -d --name=svnserve-gogs-auth -p 3690:3690 -e GOGS_HOST=https://gogs.domain.lan -v /var/svn:/data ifreedom/svnserve-gogs-auth

# Use `docker start` if you have stopped it.
$ docker start svnserve-gogs-auth

# Create test repo.
$ docker run --rm -v /var/svn:/data ifreedom/svnserve-gogs-auth svnadmin create /data/repos/test

note: The container default use http://gogs as GOGS_HOST, so you can also use container link to connect it to Gogs.