diff --git a/Makefile b/Makefile index a1e00f6..5bf6a90 100644 --- a/Makefile +++ b/Makefile @@ -58,4 +58,4 @@ test: .compile ## Compile the component .PHONY: clean clean: ## Clean the project - rm -rf compiled dependencies vendor helmcharts jsonnetfile*.json || true + rm -rf .cache compiled dependencies vendor helmcharts jsonnetfile*.json || true diff --git a/Makefile.vars.mk b/Makefile.vars.mk index 33fba5e..3204e79 100644 --- a/Makefile.vars.mk +++ b/Makefile.vars.mk @@ -13,7 +13,7 @@ compiled_volume ?= -v "$${PWD}/$(compiled_path):/$(COMPONENT_NAME)" commodore_args ?= --search-paths ./dependencies --search-paths . DOCKER_CMD ?= docker -DOCKER_ARGS ?= run --rm -u "$$(id -u)" -w /$(COMPONENT_NAME) +DOCKER_ARGS ?= run --rm -u "$$(id -u):$$(id -g)" -w /$(COMPONENT_NAME) -e HOME="/$(COMPONENT_NAME)" JSONNET_FILES ?= $(shell find . -type f -not -path './vendor/*' \( -name '*.*jsonnet' -or -name '*.libsonnet' \)) JSONNETFMT_ARGS ?= --in-place --pad-arrays