Skip to content

Commit

Permalink
abort when docker is not running, and mount hacks directory in container
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoeanhinnogaehr committed Jul 25, 2020
1 parent 5878cf6 commit f038e9a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

docker info > /dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "Docker is not running"
exit 1
fi

# load jack network module on host
jack_load netmanager

Expand All @@ -15,7 +21,7 @@ else
echo "Using docker hub build"
container=nwoeanhinnogaehr/tinyspec
fi
docker run -it --detach --user=ts --name=tinyspec --network=host --rm $container $@
docker run -it --detach --user=ts --name=tinyspec --network=host --rm --mount type=bind,source=$(pwd)/$(dirname $0)/../hacks,target=/home/ts/tinyspec-cling/hacks $container $@
echo "waiting for jack..."
nc -l -p 44100

Expand Down

0 comments on commit f038e9a

Please sign in to comment.