mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 02:53:51 +00:00
Shared dirs almost ready :D
This commit is contained in:
10
Makefile
10
Makefile
@@ -147,7 +147,9 @@ define container_build
|
||||
$(eval TAG := $(PROJECT_REGISTRY)/$(CONTAINER):$(VERSION)), \
|
||||
)
|
||||
|
||||
sudo mount -o bind src/shared src/landing/landing/shared
|
||||
docker buildx build --load -t $(TAG) -f $(strip $(subst $(SPACE),,$(call container_location,$(CONTAINER))))/Dockerfile.$(ENVIRONMENT) ./$(strip $(subst $(SPACE),,$(call container_location,$(CONTAINER))))/. $(ARGS) $(call labels,$(shell echo $(CONTAINER_NAME) | tr '[:lower:]' '[:upper:]')) --no-cache
|
||||
sudo umount /src/landing/landing/shared
|
||||
endef
|
||||
|
||||
define container_location
|
||||
@@ -161,3 +163,11 @@ define container_version
|
||||
$(shell echo $(strip $(strip $(CONTAINER_$(CONTAINER_NAME)_VERSION))) | tr -d '[:space:]'), \
|
||||
$(error Version data for container $(1) not found))
|
||||
endef
|
||||
|
||||
define mount_shared
|
||||
$(sudo mount -o bind src/shared src/landing/landing/shared)
|
||||
endef
|
||||
|
||||
define unmount_shared
|
||||
$(sudo umount src/shared)
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user