work/Makefile

33 lines
464 B
Makefile
Raw Normal View History

2021-10-14 09:04:14 +00:00
export DOCKER_HOST := ssh://root@meatfucker.local
2020-05-26 07:07:46 +00:00
2021-10-14 09:04:14 +00:00
default: build
2020-10-26 23:31:15 +00:00
2021-10-14 09:04:14 +00:00
.PHONY: build run base full release
2020-10-26 23:31:15 +00:00
start:
make build
make run
2020-04-11 17:53:41 +00:00
build:
2021-10-14 09:04:14 +00:00
docker build --squash -t sneak/work .
full:
2020-10-26 23:39:54 +00:00
cd base && make build
2021-10-14 09:04:14 +00:00
make build
2020-10-26 23:31:15 +00:00
run:
-docker rm -f work
docker run \
-d \
--name work \
2021-10-14 09:04:14 +00:00
--hostname work \
--net host \
2020-10-26 23:31:15 +00:00
-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
2021-10-14 09:04:14 +00:00
release:
make full && make run