her.esy.fun/engine/docker-run.sh

9 lines
309 B
Bash
Raw Normal View History

2021-04-23 08:38:46 +00:00
#!/usr/bin/env bash
cd "$(git rev-parse --show-toplevel)" || exit 1
if (($#>0)); then
docker run --rm -v $PWD:/home/her.esy.fun --name her.esy.fun -it her.esy.fun /bin/sh -c "cd /home/her.esy.fun && nix-shell --run $@"
else
docker run --rm -v $PWD:/home/her.esy.fun --name her.esy.fun -it her.esy.fun
fi