Skip to content

Commit

Permalink
fix for make tools: Command: make tools, error khuedoan#139
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRedHead committed Mar 24, 2024
1 parent 5064704 commit 048a6b1
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ smoke-test:
post-install:
@./scripts/hacks

# tools:
# @docker run \
# --rm \
# --interactive \
# --tty \
# --network host \
# --env "KUBECONFIG=${KUBECONFIG}" \
# --volume "/var/run/docker.sock:/var/run/docker.sock" \
# --volume $(shell pwd):$(shell pwd) \
# --volume ${HOME}/.ssh:/root/.ssh \
# --volume ${HOME}/.terraform.d:/root/.terraform.d \
# --volume homelab-tools-cache:/root/.cache \
# --volume homelab-tools-nix:/nix \
# --workdir $(shell pwd) \
# docker.io/nixos/nix nix --experimental-features 'nix-command flakes' develop

tools:
@docker run \
--rm \
Expand All @@ -40,7 +56,10 @@ tools:
--volume homelab-tools-cache:/root/.cache \
--volume homelab-tools-nix:/nix \
--workdir $(shell pwd) \
docker.io/nixos/nix nix --experimental-features 'nix-command flakes' develop
--entrypoint /bin/sh \
docker.io/nixos/nix -c "\
git config --global --add safe.directory $(shell pwd) && \
nix --experimental-features 'nix-command flakes' develop"

test:
make -C test
Expand Down

0 comments on commit 048a6b1

Please sign in to comment.