Merge branch '145-build-system-rewrite' of https://dev.azure.com/fraport/Fahrerausbildung/_git/FRADrive into 145-build-system-rewrite

This commit is contained in:
Sarah Vaupel 2024-11-04 15:57:16 +01:00
commit de58227725

View File

@ -16,6 +16,10 @@ export CONTAINER_FILE
export CF_PREFIX
export DEVELOP
export MOUNT_DIR=/mnt/fradrive
# CONTAINER_RUNMODE variants:
# detached: detached container
# attached: attached container
export CONTAINER_RUNMODE ?= detached
export SERVICE
export SERVICE_VARIANT ?= $(SERVICE)
@ -133,16 +137,19 @@ start-%: --act ;
.PHONY: compile-%
compile-%: JOB=compile
compile-%: CF_PREFIX = "compile-"
compile-%: CONTAINER_RUNMODE = "attached"
compile-%: --act ;
.PHONY: test-%
test-%: JOB=test
test-%: CF_PREFIX = "test-"
test-%: CONTAINER_RUNMODE = "attached"
test-%: --act ;
.PHONY: lint-%
lint-%: JOB=lint
lint-%: CF_PREFIX = "lint-"
lint-%: CONTAINER_RUNMODE = "attached"
lint-%: --act ;
--act: --develop_containerized;
@ -200,7 +207,10 @@ endif
--name $${CONTAINER_NAME} \
$(CONTAINER_CMD) \
` ; \
printf "CONTAINER_ID=$${CONTAINER_ID}" >> "$(CONTAINER_FILE)"
printf "CONTAINER_ID=$${CONTAINER_ID}" >> "$(CONTAINER_FILE)" ; \
if [[ "attached" -eq $(CONTAINER_RUNMODE) ]] ; then \
$(CONTAINER_COMMAND) attach $${CONTAINER_ID} ; \
fi
# HELP(start-backend): start yesod-devel instance
--start-backend: