reworking
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-10-26 16:31:15 -07:00
parent c0d903524a
commit 232c2f8d22
21 changed files with 35 additions and 12 deletions

View File

@@ -1,13 +1,25 @@
#export DOCKER_HOST := ssh://las1.eeqj.de
export DOCKER_HOST := ssh://root@datavi.be
.PHONY: build
default: start
.PHONY: build run
start:
make build
make run
build:
docker build \
--build-arg UBUNTU_MIRROR=http://us.archive.ubuntu.com/ubuntu \
-t sneak/work \
. \
2>&1 | tee -a build.log
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
enter:
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