33 lines
464 B
Makefile
33 lines
464 B
Makefile
export DOCKER_HOST := ssh://root@meatfucker.local
|
|
|
|
default: build
|
|
|
|
.PHONY: build run base full release
|
|
|
|
start:
|
|
make build
|
|
make run
|
|
|
|
build:
|
|
docker build --squash -t sneak/work .
|
|
|
|
full:
|
|
cd base && make build
|
|
make build
|
|
|
|
run:
|
|
-docker rm -f work
|
|
docker run \
|
|
-d \
|
|
--name work \
|
|
--hostname work \
|
|
--net host \
|
|
-v /:/hostroot \
|
|
-v /home/sneak:/hosthome \
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
sneak/work
|
|
|
|
release:
|
|
make full && make run
|
|
|