From a89c50172bb551858a617ed112aca4b2d66fe3f0 Mon Sep 17 00:00:00 2001 From: Ulrich Schreiner Date: Mon, 29 Apr 2024 10:48:32 +0200 Subject: [PATCH] allow to build/push images into the leaf VM (#160) --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 52627c54..a1f72905 100644 --- a/Makefile +++ b/Makefile @@ -157,6 +157,19 @@ ls: env ## SWITCH MANAGEMENT ## +.PHONY: ssh-leafconfig +ssh-leafconfig: + @grep "Host leaf01" ~/.ssh/config || echo -e "Host leaf01\n StrictHostKeyChecking no\n IdentityFile $(shell pwd)/files/ssh/id_rsa\n" >>~/.ssh/config + @grep "Host leaf02" ~/.ssh/config || echo -e "Host leaf02\n StrictHostKeyChecking no\n IdentityFile $(shell pwd)/files/ssh/id_rsa\n" >>~/.ssh/config + +.PHONY: docker-leaf01 +docker-leaf01: + @echo "export DOCKER_HOST=ssh://root@leaf01/var/run/docker.sock" + +.PHONY: docker-leaf02 +docker-leaf02: + @echo "export DOCKER_HOST=ssh://root@leaf02/var/run/docker.sock" + .PHONY: ssh-leaf01 ssh-leaf01: ssh -o StrictHostKeyChecking=no -o "PubkeyAcceptedKeyTypes +ssh-rsa" -i files/ssh/id_rsa root@leaf01