From 4bf05325b550fdfacf099afbda1f521a5edaf37b Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 25 Feb 2022 10:45:31 +0200 Subject: [PATCH] Add .shell make target for non-Linux development Signed-off-by: Evan Lezar --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 5e517cdb..18b05684 100644 --- a/Makefile +++ b/Makefile @@ -142,3 +142,15 @@ $(DOCKER_TARGETS): docker-%: .build-image --user $$(id -u):$$(id -g) \ $(BUILDIMAGE) \ make $(*) + +# Start an interactive shell using the development image. +PHONY: .shell +.shell: + $(DOCKER) run \ + --rm \ + -ti \ + -e GOCACHE=/tmp/.cache \ + -v $(PWD):$(PWD) \ + -w $(PWD) \ + --user $$(id -u):$$(id -g) \ + $(BUILDIMAGE)