Skip to content

Commit ad270ae

Browse files
author
LiFeng Zhang
committed
tun svn to use cache, disable compression
1 parent 764ffa3 commit ad270ae

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Docker Image](https://img.shields.io/badge/docker%20image-available-green.svg)](https://hub.docker.com/r/elleflorio/svn-server/)
1+
[![Docker Image](https://img.shields.io/badge/docker%20image-available-green.svg)](https://hub.docker.com/r/lzhangtoolineo/svn-binary-docker/)
22

33
# Description
44
Lightweight container providing an SVN server, based on **Alpine Linux** and S6 process management (see [here](https://github.com/smebberson/docker-alpine) for details).
@@ -8,9 +8,12 @@ A complete tutorial on how to build this image, and how to run the container is
88
# Running Commands
99
To run the image, you can use the following command:
1010
```
11-
docker run -d --name svn-server -p 80:80 -p 3690:3690 elleflorio/svn-server
11+
docker run -d --name svn-server -p 8080:80 -p 3690:3690 lzhangtoolineo/svn-binary-docker
12+
```
13+
You can optionally bind a local folder to the container folder that will store your repositories using the flag `-v <hostpath>:/home/svn`, which will be:
14+
```
15+
docker run -d --name svn-server -v <hostpath>:/home/svn -p 8080:80 -p 3690:3690 lzhangtoolineo/svn-binary-docker
1216
```
13-
You can optionally bind a local folder to the container folder that will store your repositories using the flag `-v <hostpath>:/home/svn`.
1417

1518
# Configuration
1619
**You need to setup username and password** for the access via WebDav protocol. You can use the following command from your host machine:

dav_svn.conf

+7
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ LoadModule authz_svn_module /usr/lib/apache2/mod_authz_svn.so
1010
AuthUserFile /etc/subversion/passwd
1111
AuthzSVNAccessFile /etc/subversion/subversion-access-control
1212
Require valid-user
13+
14+
# customerization
15+
SVNAllowBuldUpdates Prefer
16+
SVNInMemoryCacheSize 1048576
17+
SVNCacheTextDeltas On
18+
SVNCacheFullTexts On
19+
SVNCompressionLevel 0
1320
</Location>

subversion/run

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
# From https://github.com/smebberson/docker-alpine/tree/master/alpine-apache
44

5-
exec /usr/bin/svnserve -d --foreground -r /home/svn --listen-port 3690;
5+
# exec /usr/bin/svnserve -d --foreground -r /home/svn --listen-port 3690;
6+
7+
# customerization
8+
exec /usr/bin/svnserve -d --memory-cache-size 1048576 --cache-txdeltas yes --cache-fulltexts yes --compression 0 --foreground -r /home/svn --listen-port 3690;

0 commit comments

Comments
 (0)