Commit 052ae053 authored by Ralph Giles's avatar Ralph Giles

Run apache2_mod_svn in a container.

Make svn.xiph.org available agail by proxying traffic to
a container running the server:

    docker build -t svn .
    docker run --rm -d \
      --name svn \
      -v /var/svn/xiph:/var/svn \
      -p 127.0.0.1:7376:80 \
      svn

Then terminate tls connections in the host webserver and proxy
requests to localhost:7376.
parents
# Dockerfile for hosting an svn repo
# Mount the repository root over /var/svn
FROM debian:10
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y apache2 libapache2-mod-svn
COPY svn.conf /etc/apache2/sites-available/svn.conf
RUN a2ensite svn
RUN a2dissite 000-default
# https://httpd.apache.org/docs/2.4/stopping.html#gracefulstop
STOPSIGNAL SIGWINCH
EXPOSE 80
CMD /usr/sbin/apache2ctl -DFOREGROUND
# Subversion/Apache configuration
# Run subversion of the root path of the domain.
<Location />
# Enable repository access.
DAV svn
# Path to the repository root.
SVNPath /var/svn
# Access control: read-only for this legacy service.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment