docker-kopano/Makefile
mlan b66b9c696b - The setup-runit.sh script now have options: down, force, log, name, source, quiet.
- Fixed the Apache runit script, using the new `setup-runit.sh` script. Stopping the parent process now also stops all child processes. Using the quiet option, Apache does not flood the logs anymore.
- Added support of the environment variable `LMTP_LISTEN=*:2003`, due to misconfiguration of `kopano-dagent` in recent releases (8.7.84).
- Simplified the health check.
- Changed repository directory structure to a more general one.
- Renamed some build variables, e.g., `DOCKER_RUNSV_DIR` (was `docker_build_runit_root`).
- Cleaning up `Makefile`
- Added more debug functionality in `demo/Makefile`
2019-11-12 21:14:33 +01:00

37 lines
844 B
Makefile

-include *.mk
#BLD_ARG ?= --build-arg DIST=ubuntu --build-arg REL=18.04 --build-arg ARCH=i386
BLD_ARG ?=
BLD_REPO ?= mlan/kopano
BLD_VER ?= latest
BLD_TGT ?= full
SRC_VER ?= $(shell src/docker/bin/kopano-webaddr.sh -VV)
_version = $(if $(findstring $(BLD_TGT),$(1)),$(2),$(if $(findstring latest,$(2)),$(1),$(1)-$(2)))
.PHONY:
variables:
make -pn | grep -A1 "^# makefile"| grep -v "^#\|^--" | sort | uniq
ps:
docker ps -a
build-all: build_core build_full build_debugtools
build: build_$(BLD_TGT)
build_%: Dockerfile
docker build $(BLD_ARG) --target $* \
-t $(BLD_REPO):$(call _version,$*,$(BLD_VER)) \
-t $(BLD_REPO):$(call _version,$*,$(SRC_VER)) .
version:
src/docker/bin/kopano-webaddr.sh -VV
prune:
docker image prune
clean:
docker images | grep $(BLD_REPO) | awk '{print $$1 ":" $$2}' | uniq | xargs docker rmi