build: add ability to force rebuilds and select releases

pull/3/head
Saúl Ibarra Corretgé 7 years ago
parent 84332c9527
commit 0e43efa17e
  1. 19
      Makefile
  2. 2
      base-java/Makefile
  3. 2
      base/Makefile
  4. 2
      jicofo/Makefile
  5. 2
      jvb/Makefile
  6. 2
      prosody/Makefile
  7. 2
      web/Makefile

@ -1,9 +1,16 @@
FORCE_REBUILD ?= 0
JITSI_RELEASE ?= "unstable"
ifeq ($(FORCE_REBUILD), 1)
BUILD_ARGS = "--no-cache"
endif
build-all: build-all:
$(MAKE) -C base build BUILD_ARGS=$(BUILD_ARGS) JITSI_RELEASE=$(JITSI_RELEASE) $(MAKE) -C base build
$(MAKE) -C base-java build BUILD_ARGS=$(BUILD_ARGS) $(MAKE) -C base-java build
$(MAKE) -C web build BUILD_ARGS=$(BUILD_ARGS) $(MAKE) -C web build
$(MAKE) -C prosody build BUILD_ARGS=$(BUILD_ARGS) $(MAKE) -C prosody build
$(MAKE) -C jicofo build BUILD_ARGS=$(BUILD_ARGS) $(MAKE) -C jicofo build
$(MAKE) -C jvb build BUILD_ARGS=$(BUILD_ARGS) $(MAKE) -C jvb build
.PHONY: build-all .PHONY: build-all

@ -1,4 +1,4 @@
build: build:
docker build -t jitsi/base-java . docker build $(BUILD_ARGS) -t jitsi/base-java .
.PHONY: build .PHONY: build

@ -1,4 +1,4 @@
build: build:
docker build -t jitsi/base . docker build $(BUILD_ARGS) --build-arg JITSI_RELEASE=$(JITSI_RELEASE) -t jitsi/base .
.PHONY: build .PHONY: build

@ -1,4 +1,4 @@
build: build:
docker build -t jitsi/jicofo . docker build $(BUILD_ARGS) -t jitsi/jicofo .
.PHONY: build .PHONY: build

@ -1,4 +1,4 @@
build: build:
docker build -t jitsi/jvb . docker build $(BUILD_ARGS) -t jitsi/jvb .
.PHONY: build .PHONY: build

@ -1,4 +1,4 @@
build: build:
docker build -t jitsi/prosody . docker build $(BUILD_ARGS) -t jitsi/prosody .
.PHONY: build .PHONY: build

@ -1,4 +1,4 @@
build: build:
docker build -t jitsi/web . docker build $(BUILD_ARGS) -t jitsi/web .
.PHONY: build .PHONY: build

Loading…
Cancel
Save