changeset 1578:06ca2df3d7ca dockerise

A couple of missing bits, including a test repo in the Vagrant provision
author Chris Cannam
date Fri, 04 Aug 2017 15:43:03 +0100
parents e38eee2e1d47
children aba122ac2d40
files extra/soundsoftware/dockertest/Dockerfile extra/soundsoftware/vagranttest/provision.d/040-hg-dir.sh extra/soundsoftware/vagranttest/provision.d/100-apache-config.sh
diffstat 3 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/extra/soundsoftware/dockertest/Dockerfile	Fri Aug 04 14:31:30 2017 +0100
+++ b/extra/soundsoftware/dockertest/Dockerfile	Fri Aug 04 15:43:03 2017 +0100
@@ -118,6 +118,7 @@
 RUN ln -s ../mods-available/perl.conf       /etc/apache2/mods-enabled/
 RUN ln -s ../mods-available/expires.load    /etc/apache2/mods-enabled/
 RUN ln -s ../mods-available/rewrite.load    /etc/apache2/mods-enabled/
+RUN ln -s ../mods-available/cgi.load        /etc/apache2/mods-enabled/
 
 RUN cp extra/soundsoftware/dockertest/code.conf.interpolated /etc/apache2/sites-available/code.conf
 RUN ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf
--- a/extra/soundsoftware/vagranttest/provision.d/040-hg-dir.sh	Fri Aug 04 14:31:30 2017 +0100
+++ b/extra/soundsoftware/vagranttest/provision.d/040-hg-dir.sh	Fri Aug 04 15:43:03 2017 +0100
@@ -11,3 +11,9 @@
     chmod +x /var/hg/index.cgi
 fi
 
+if [ ! -d /var/hg/vamp-plugin-sdk ]; then
+    # This project can be used for testing
+    cd /var/hg
+    hg clone https://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk
+    chown -R code.www-data vamp-plugin-sdk
+fi
--- a/extra/soundsoftware/vagranttest/provision.d/100-apache-config.sh	Fri Aug 04 14:31:30 2017 +0100
+++ b/extra/soundsoftware/vagranttest/provision.d/100-apache-config.sh	Fri Aug 04 15:43:03 2017 +0100
@@ -20,6 +20,7 @@
     ln -s ../mods-available/perl.conf       /etc/apache2/mods-enabled/
     ln -s ../mods-available/expires.load    /etc/apache2/mods-enabled/
     ln -s ../mods-available/rewrite.load    /etc/apache2/mods-enabled/
+    ln -s ../mods-available/cgi.load        /etc/apache2/mods-enabled/
 
     cp extra/soundsoftware/dockertest/code.conf.interpolated /etc/apache2/sites-available/code.conf
     ln -s ../sites-available/code.conf /etc/apache2/sites-enabled/10-code.conf