To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / extra / soundsoftware / dockertest / start.sh @ 1572:2b1b8ebb7d98
History | View | Annotate | Download (338 Bytes)
| 1 | 1569:26a4f99ec679 | Chris | #!/bin/bash |
|---|---|---|---|
| 2 | |||
| 3 | set -eu |
||
| 4 | |||
| 5 | dockerdir=./extra/soundsoftware/dockertest |
||
| 6 | if [ ! -d "$dockerdir" ]; then |
||
| 7 | echo "Run this script from the root of a working copy of soundsoftware-site" |
||
| 8 | exit 2 |
||
| 9 | fi |
||
| 10 | |||
| 11 | dockertag="cannam/soundsoftware-site" |
||
| 12 | |||
| 13 | sudo docker build -t "$dockertag" -f "$dockerdir/Dockerfile" . |
||
| 14 | 1571:4c2b25b7e85f | Chris | sudo docker run -p 8080:80 -d "$dockertag" |