build(Makefile): add target to start interactive shells inside containers

This commit is contained in:
Sarah Vaupel 2024-09-17 01:43:14 +02:00
parent d82cca843a
commit 2a49cea4de

View File

@ -38,8 +38,10 @@ release:
.PHONY: %-shell
%-shell:
@echo "TODO: build specified container, run it and drop into bash"
exit 1
MOUNT_DIR=/mnt/fradrive ; \
FRADRIVE_SERVICE=$* ; \
$(MAKE) -- --image-build FRADRIVE_SERVICE=$${FRADRIVE_SERVICE} ; \
$(CONTAINER_COMMAND) run -it -v $(PWD):$${MOUNT_DIR} $(CONTAINER_PORTS) --env IN_CONTAINER=true --entrypoint /bin/bash --name fradrive.$${FRADRIVE_SERVICE}.interactive.$$(date +'%Y-%m-%dT%H-%M-%S') fradrive/$${FRADRIVE_SERVICE}
##### GENERAL TARGETS #####
###########################