diff extra/soundsoftware/dockertest/start.sh @ 1569:26a4f99ec679 dockerise

Experimenting with Docker setup
author Chris Cannam
date Wed, 02 Aug 2017 18:59:22 +0100
parents
children 4c2b25b7e85f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extra/soundsoftware/dockertest/start.sh	Wed Aug 02 18:59:22 2017 +0100
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -eu
+
+dockerdir=./extra/soundsoftware/dockertest
+if [ ! -d "$dockerdir" ]; then
+    echo "Run this script from the root of a working copy of soundsoftware-site"
+    exit 2
+fi
+
+dockertag="cannam/soundsoftware-site"
+
+sudo docker build -t "$dockertag" -f "$dockerdir/Dockerfile" .
+