build(Makefile): add target to start interactive shells inside containers
This commit is contained in:
parent
d82cca843a
commit
2a49cea4de
6
Makefile
6
Makefile
@ -38,8 +38,10 @@ release:
|
|||||||
|
|
||||||
.PHONY: %-shell
|
.PHONY: %-shell
|
||||||
%-shell:
|
%-shell:
|
||||||
@echo "TODO: build specified container, run it and drop into bash"
|
MOUNT_DIR=/mnt/fradrive ; \
|
||||||
exit 1
|
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 #####
|
##### GENERAL TARGETS #####
|
||||||
###########################
|
###########################
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user