work/Makefile

27 lines
498 B
Makefile
Raw Normal View History

2020-10-26 23:31:15 +00:00
export DOCKER_HOST := ssh://root@datavi.be
2020-05-26 07:07:46 +00:00
2020-10-26 23:31:15 +00:00
default: start
.PHONY: build run
start:
make build
make run
2020-04-11 17:53:41 +00:00
build:
2020-10-26 23:39:54 +00:00
cd base && make build
2020-10-26 23:31:15 +00:00
docker build -t sneak/work .
run:
-docker rm -f work
docker run \
-d \
--name work \
-v /:/hostroot \
-v /home/sneak:/hosthome \
-v /var/run/docker.sock:/var/run/docker.sock \
sneak/work
2020-05-26 07:07:46 +00:00
enter:
2020-07-08 07:26:10 +00:00
docker run -ti --rm=true -e HOME=/home/user -e USER=user --user=user -v /home/sneak:/home/user/.home sneak/work /home/user/.nix-profile/bin/zsh -l