Mount less files into tools container

This commit is contained in:
Khue Doan 2021-06-18 01:59:53 +07:00
parent be9e27c775
commit 8af0b77f46
3 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,5 @@
# TODO
- [(bug) Fix wireguard secrets](../apps/resources/wireguard.yaml#L17)
- [(feature) Add lint checks for everything](../Makefile#L29)
- [(feature) Simple script to backup everything](../scripts/backup.sh#L3)
- [(feature) Simple script to restore everything](../scripts/restore.sh#L3)

View File

@ -16,7 +16,4 @@ RUN yes | pacman --sync --refresh \
p7zip \
python \
python-netaddr \
terraform \
zsh
CMD [ "/bin/zsh" ]
terraform

View File

@ -1,11 +1,13 @@
.POSIX:
WORKDIR = /usr/local/src
TAG = homelab-tools
default: build run
build:
docker build . --tag ${TAG}
docker build . \
--tag ${TAG}
run:
docker run \
@ -14,8 +16,8 @@ run:
--tty \
--network host \
--env "TERM=${TERM}" \
--env "HOME=${HOME}" \
--volume "${HOME}:${HOME}" \
--volume "$(shell pwd)/..:${WORKDIR}" \
--volume "${HOME}/.ssh/id_ed25519.pub:/root/.ssh/id_ed25519.pub" \
--volume "/var/run/docker.sock:/var/run/docker.sock" \
--workdir "$(shell pwd)/.." \
--workdir "${WORKDIR}" \
${TAG}