annotate extra/soundsoftware/dockertest/start.sh @ 1572:2b1b8ebb7d98 dockerise

This now sort-of works, apart from not knowing the db password
author Chris Cannam
date Thu, 03 Aug 2017 17:24:49 +0100
parents 4c2b25b7e85f
children 7b23adecd963
rev   line source
Chris@1569 1 #!/bin/bash
Chris@1569 2
Chris@1569 3 set -eu
Chris@1569 4
Chris@1569 5 dockerdir=./extra/soundsoftware/dockertest
Chris@1569 6 if [ ! -d "$dockerdir" ]; then
Chris@1569 7 echo "Run this script from the root of a working copy of soundsoftware-site"
Chris@1569 8 exit 2
Chris@1569 9 fi
Chris@1569 10
Chris@1569 11 dockertag="cannam/soundsoftware-site"
Chris@1569 12
Chris@1569 13 sudo docker build -t "$dockertag" -f "$dockerdir/Dockerfile" .
Chris@1571 14 sudo docker run -p 8080:80 -d "$dockertag"
Chris@1569 15