Add .shell make target for non-Linux development

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-02-25 10:45:31 +02:00
parent ea7b8ab1f6
commit 4bf05325b5

View File

@ -142,3 +142,15 @@ $(DOCKER_TARGETS): docker-%: .build-image
--user $$(id -u):$$(id -g) \ --user $$(id -u):$$(id -g) \
$(BUILDIMAGE) \ $(BUILDIMAGE) \
make $(*) 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)