mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-25 07:32:19 +00:00
set ELM_HOME for the elm-env container
The ELM_HOME variable needs to be set to the mounted volume directory when building to prevent permissions errors caused by using root as the default home dir. Signed-off-by: Paul Gier <pgier@redhat.com>
This commit is contained in:
parent
458f1d646b
commit
c834a991c6
@ -3,7 +3,7 @@
|
||||
ELM_FILES = $(shell find src -iname *.elm)
|
||||
DOCKER_IMG := elm-env
|
||||
DOCKER_RUN_CURRENT_USER := docker run --user=$(shell id -u $(USER)):$(shell id -g $(USER))
|
||||
DOCKER_CMD := $(DOCKER_RUN_CURRENT_USER) --rm -t -v $(PWD):/app -w /app $(DOCKER_IMG)
|
||||
DOCKER_CMD := $(DOCKER_RUN_CURRENT_USER) --rm -t -v $(PWD):/app -w /app -e "ELM_HOME=/app" $(DOCKER_IMG)
|
||||
# macOS requires mktemp template to be at the end of the filename.
|
||||
TEMPFILE := $(shell mktemp ./elm-XXXXXXXXXX)
|
||||
# --output flag for elm make must end in .js or .html.
|
||||
|
Loading…
Reference in New Issue
Block a user