work/bin/start
sneak 96b68fe623
All checks were successful
continuous-integration/drone/push Build is passing
sets permissions on user homedir
2020-04-11 13:28:28 -07:00

16 lines
323 B
Bash
Executable File

#!/bin/bash
pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)/../"
docker build -t sneak/work .
popd
docker rm -f work
# FIXME ssh host keys
docker run \
-d \
--name work \
-v /:/hostroot \
-v /home/sneak:/hosthome \
-v /var/run/docker.sock:/var/run/docker.sock \
sneak/work