mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
f4bd9c36b9
This reverts commit 8af0b77f46
.
22 lines
341 B
Makefile
22 lines
341 B
Makefile
.POSIX:
|
|
|
|
TAG = homelab-tools
|
|
|
|
default: build run
|
|
|
|
build:
|
|
docker build . --tag ${TAG}
|
|
|
|
run:
|
|
docker run \
|
|
--rm \
|
|
--interactive \
|
|
--tty \
|
|
--network host \
|
|
--env "TERM=${TERM}" \
|
|
--env "HOME=${HOME}" \
|
|
--volume "${HOME}:${HOME}" \
|
|
--volume "/var/run/docker.sock:/var/run/docker.sock" \
|
|
--workdir "$(shell pwd)/.." \
|
|
${TAG}
|