khuedoan-homelab/tools/Makefile

22 lines
341 B
Makefile
Raw Normal View History

2021-04-20 09:41:06 +07:00
.POSIX:
TAG = homelab-tools
default: build run
2021-04-20 09:41:06 +07:00
build:
docker build . --tag ${TAG}
2021-04-20 09:41:06 +07:00
run:
docker run \
--rm \
--interactive \
--tty \
--network host \
2021-04-20 09:41:06 +07:00
--env "TERM=${TERM}" \
--env "HOME=${HOME}" \
--volume "${HOME}:${HOME}" \
2021-04-20 09:41:06 +07:00
--volume "/var/run/docker.sock:/var/run/docker.sock" \
--workdir "$(shell pwd)/.." \
2021-04-20 09:41:06 +07:00
${TAG}