|
|
@ -4,18 +4,14 @@ JITSI_BUILD ?= unstable |
|
|
|
JITSI_REPO ?= jitsi
|
|
|
|
JITSI_REPO ?= jitsi
|
|
|
|
NATIVE_ARCH ?= $(shell uname -m)
|
|
|
|
NATIVE_ARCH ?= $(shell uname -m)
|
|
|
|
|
|
|
|
|
|
|
|
JITSI_MULTIARCH_SERVICES := base base-java web prosody jicofo jvb jibri
|
|
|
|
JITSI_SERVICES := base base-java web prosody jicofo jvb jigasi jibri
|
|
|
|
JITSI_AMD64ONLY_SERVICES := jigasi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(NATIVE_ARCH),x86_64) |
|
|
|
ifeq ($(NATIVE_ARCH),x86_64) |
|
|
|
TARGETPLATFORM := linux/amd64
|
|
|
|
TARGETPLATFORM := linux/amd64
|
|
|
|
JITSI_SERVICES := base base-java web prosody jicofo jvb jigasi jibri
|
|
|
|
|
|
|
|
else ifeq ($(NATIVE_ARCH),aarch64) |
|
|
|
else ifeq ($(NATIVE_ARCH),aarch64) |
|
|
|
TARGETPLATFORM := linux/arm64
|
|
|
|
TARGETPLATFORM := linux/arm64
|
|
|
|
JITSI_SERVICES := base base-java web prosody jicofo jvb jibri
|
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
TARGETPLATFORM := unsupported
|
|
|
|
TARGETPLATFORM := unsupported
|
|
|
|
JITSI_SERVICES := dummy
|
|
|
|
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
BUILD_ARGS := \
|
|
|
|
BUILD_ARGS := \
|
|
|
@ -30,10 +26,9 @@ endif |
|
|
|
all: build-all |
|
|
|
all: build-all |
|
|
|
|
|
|
|
|
|
|
|
release: |
|
|
|
release: |
|
|
|
@$(foreach SERVICE, $(JITSI_MULTIARCH_SERVICES), $(MAKE) --no-print-directory JITSI_SERVICE=$(SERVICE) _buildx_multiarch;)
|
|
|
|
@$(foreach SERVICE, $(JITSI_SERVICES), $(MAKE) --no-print-directory JITSI_SERVICE=$(SERVICE) buildx;)
|
|
|
|
@$(foreach SERVICE, $(JITSI_AMD64ONLY_SERVICES), $(MAKE) --no-print-directory JITSI_SERVICE=$(SERVICE) _buildx_amd64;)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_buildx_multiarch: |
|
|
|
buildx: |
|
|
|
docker buildx build \
|
|
|
|
docker buildx build \
|
|
|
|
--platform linux/amd64,linux/arm64 \
|
|
|
|
--platform linux/amd64,linux/arm64 \
|
|
|
|
--progress=plain \
|
|
|
|
--progress=plain \
|
|
|
@ -43,15 +38,8 @@ _buildx_multiarch: |
|
|
|
--tag $(JITSI_REPO)/$(JITSI_SERVICE):$(JITSI_RELEASE) \
|
|
|
|
--tag $(JITSI_REPO)/$(JITSI_SERVICE):$(JITSI_RELEASE) \
|
|
|
|
$(JITSI_SERVICE)
|
|
|
|
$(JITSI_SERVICE)
|
|
|
|
|
|
|
|
|
|
|
|
_buildx_amd64: |
|
|
|
$(addprefix buildx_,$(JITSI_SERVICES)): |
|
|
|
docker buildx build \
|
|
|
|
$(MAKE) --no-print-directory JITSI_SERVICE=$(patsubst buildx_%,%,$@) buildx
|
|
|
|
--platform linux/amd64 \
|
|
|
|
|
|
|
|
--progress=plain \
|
|
|
|
|
|
|
|
$(BUILD_ARGS) --build-arg BASE_TAG=$(JITSI_BUILD) \
|
|
|
|
|
|
|
|
--pull --push \
|
|
|
|
|
|
|
|
--tag $(JITSI_REPO)/$(JITSI_SERVICE):$(JITSI_BUILD) \
|
|
|
|
|
|
|
|
--tag $(JITSI_REPO)/$(JITSI_SERVICE):$(JITSI_RELEASE) \
|
|
|
|
|
|
|
|
$(JITSI_SERVICE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(TARGETPLATFORM), unsupported) |
|
|
|
ifeq ($(TARGETPLATFORM), unsupported) |
|
|
|
build: |
|
|
|
build: |
|
|
@ -60,7 +48,11 @@ build: |
|
|
|
else |
|
|
|
else |
|
|
|
build: |
|
|
|
build: |
|
|
|
@echo "Building for $(TARGETPLATFORM)"
|
|
|
|
@echo "Building for $(TARGETPLATFORM)"
|
|
|
|
docker build $(BUILD_ARGS) --build-arg TARGETPLATFORM=$(TARGETPLATFORM) --progress plain --tag $(JITSI_REPO)/$(JITSI_SERVICE) $(JITSI_SERVICE)/
|
|
|
|
docker build \
|
|
|
|
|
|
|
|
$(BUILD_ARGS) --build-arg TARGETPLATFORM=$(TARGETPLATFORM) \
|
|
|
|
|
|
|
|
--progress plain \
|
|
|
|
|
|
|
|
--tag $(JITSI_REPO)/$(JITSI_SERVICE) \
|
|
|
|
|
|
|
|
$(JITSI_SERVICE)
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
$(addprefix build_,$(JITSI_SERVICES)): |
|
|
|
$(addprefix build_,$(JITSI_SERVICES)): |
|
|
|