work/bin/start

16 lines
323 B
Plaintext
Raw Normal View History

2020-04-11 17:53:41 +00:00
#!/bin/bash
pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)/../"
docker build -t sneak/work .
popd
2020-04-11 20:05:48 +00:00
docker rm -f work
2020-04-11 17:53:41 +00:00
# FIXME ssh host keys
docker run \
-d \
--name work \
-v /:/hostroot \
2020-04-11 19:18:22 +00:00
-v /home/sneak:/hosthome \
2020-04-11 17:53:41 +00:00
-v /var/run/docker.sock:/var/run/docker.sock \
sneak/work