Public Repository

Last pushed: 5 months ago
Short Description
User-Friendly USVN is a web interface written in PHP used to configure Subversion repositories.
Full Description

http://www.usvn.info/

Running SVN server on port 80:

docker run -d -p 80:80 kempkensteffen/usvn

Running SVN server on port 80 with mapped volumes to persist repository contents:

docker run -d -p 80:80 -v /svn/files:/var/www/usvn/files -v /svn/config:/var/www/usvn/config kempkensteffen/usvn

Dockerfile

FROM php:5.6-apache
RUN apt-get update && apt-get install -y --force-yes libapache2-svn subversion
RUN a2enmod dav && a2enmod dav_fs && a2enmod rewrite && a2enmod authz_svn && a2enmod dav_svn
COPY svn-apache.conf /etc/apache2/sites-enabled/000-default.conf
RUN mkdir /var/www/usvn
RUN cd /var/www/usvn && curl -L https://github.com/usvn/usvn/archive/1.0.7.tar.gz | tar --strip-components=1 -xz
RUN mkdir /var/www/usvn/files && chmod a+rwx /var/www/usvn/files
RUN chown -R www-data:www-data /var/www/

svn-apache.conf

<VirtualHost *:80>

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/usvn/public

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    <Directory />
        Options +SymLinksIfOwnerMatch
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    <Location /svn/>
        ErrorDocument 404 default
        DAV svn
        Require valid-user
        SVNParentPath /var/www/usvn/files/svn
        SVNListParentPath off
        AuthType Basic
        AuthName "USVN"
        AuthUserFile /var/www/usvn/files/htpasswd
        AuthzSVNAccessFile /var/www/usvn/files/authz
    </Location>

</VirtualHost>
Docker Pull Command
Owner
kempkensteffen

Comments (0)