mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-22 10:19:21 +07:00
Mount less files into tools container
This commit is contained in:
parent
be9e27c775
commit
8af0b77f46
@ -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)
|
||||
|
@ -16,7 +16,4 @@ RUN yes | pacman --sync --refresh \
|
||||
p7zip \
|
||||
python \
|
||||
python-netaddr \
|
||||
terraform \
|
||||
zsh
|
||||
|
||||
CMD [ "/bin/zsh" ]
|
||||
terraform
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user