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 # TODO
- [(bug) Fix wireguard secrets](../apps/resources/wireguard.yaml#L17)
- [(feature) Add lint checks for everything](../Makefile#L29) - [(feature) Add lint checks for everything](../Makefile#L29)
- [(feature) Simple script to backup everything](../scripts/backup.sh#L3) - [(feature) Simple script to backup everything](../scripts/backup.sh#L3)
- [(feature) Simple script to restore everything](../scripts/restore.sh#L3) - [(feature) Simple script to restore everything](../scripts/restore.sh#L3)

View File

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

View File

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