This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 94f2426a Allow for local SVN repos in testing
94f2426a is described below

commit 94f2426aba8e10c7ba7b0f54621de4dbbd7422b1
Author: Sebb <[email protected]>
AuthorDate: Wed Dec 27 17:07:14 2023 +0000

    Allow for local SVN repos in testing
---
 Dockerfile                |  3 +++
 docker-config/whimsy.conf | 20 ++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 8b7c2d3b..0a7df0fc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -91,6 +91,9 @@ RUN sed -i -e '$i  PassengerDisableSecurityUpdateCheck on' 
/etc/apache2/conf-ena
     sed -i -e '$i  PassengerUser www-data' 
/etc/apache2/conf-enabled/passenger.conf && \
     sed -i -e '$i  PassengerGroup www-data' 
/etc/apache2/conf-enabled/passenger.conf
 
+# For running SVN in the container
+RUN apt-get install libapache2-mod-svn
+
 WORKDIR /srv/whimsy
 RUN git config --global --add safe.directory /srv/whimsy
 EXPOSE 80
diff --git a/docker-config/whimsy.conf b/docker-config/whimsy.conf
index 6e1e9c71..feb65a19 100644
--- a/docker-config/whimsy.conf
+++ b/docker-config/whimsy.conf
@@ -477,4 +477,24 @@ Alias /project/icla/ /srv/whimsy/www/project/icla/public
   </RequireAny>
 </LocationMatch>
 
+# Needs libapache2-mod-svn to be installed
+# These are separate repos, as per the real ones
+<Location /repos/asf>
+  DAV svn
+  SVNPath /srv/REPO/asf
+  SetOutputFilter DEFLATE
+</Location>
+
+<Location /repos/infra>
+  DAV svn
+  SVNPath /srv/REPO/infra
+  SetOutputFilter DEFLATE
+</Location>
+
+<Location /repos/private>
+  DAV svn
+  SVNPath /srv/REPO/private
+  SetOutputFilter DEFLATE
+</Location>
+
 </VirtualHost>

Reply via email to