mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Add .shell make target for non-Linux development
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
ea7b8ab1f6
commit
4bf05325b5
12
Makefile
12
Makefile
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user