view 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
line wrap: on
line source
#!/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" .
sudo docker run -p 8080:80 -d "$dockertag"