Created
February 13, 2016 15:57
-
-
Save fkmt-disk/ffde72a1c0ae9d419d5a to your computer and use it in GitHub Desktop.
dockerfile subversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:6 | |
RUN yum -y upgrade | |
RUN yum -y install httpd php php-mbstring subversion mod_dav_svn wget tar | |
RUN mkdir -p /var/svn/test &&\ | |
svnadmin create /var/svn/test &&\ | |
chown -R apache:apache /var/svn | |
RUN echo '<Location /svn>' >> /etc/httpd/conf.d/subversion.conf &&\ | |
echo 'DAV svn' >> /etc/httpd/conf.d/subversion.conf &&\ | |
echo 'SVNPath /var/svn' >> /etc/httpd/conf.d/subversion.conf &&\ | |
echo '</Location>' >> /etc/httpd/conf.d/subversion.conf | |
WORKDIR /var/www/html | |
RUN wget http://websvn.tigris.org/files/documents/1380/49056/websvn-2.3.3.tar.gz &&\ | |
tar xzf websvn-2.3.3.tar.gz &&\ | |
mv websvn-2.3.3 websvn &&\ | |
chown -R apache:apache websvn &&\ | |
cp websvn/include/distconfig.php websvn/include/config.php &&\ | |
echo '$config->addRepository('\''test'\'', '\''file:///var/svn/test'\'');' >> websvn/include/config.php | |
EXPOSE 80 | |
CMD ["/usr/sbin/httpd", "-D", "FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment