Skip to content

Commit

Permalink
Allow for local SVN repos in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Dec 27, 2023
1 parent c70cc94 commit 94f2426
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions docker-config/whimsy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 94f2426

Please sign in to comment.