DOCKER_REPOSITORY ?= reg.cadoles.com/cadoles DOCKER_CMD ?= all: docker docker: $(MAKE) OPENWRT_TARGET="docker" EMISSARY_ARCH="amd64" custom-files docker build \ --build-arg OPENWRT_VERSION=$(OPENWRT_VERSION) \ --build-arg ADDITIONAL_OPENWRT_PACKAGES=$(ADDITIONAL_OPENWRT_PACKAGES) \ -t $(DOCKER_REPOSITORY)/emissary-agent:latest \ -f misc/docker/Dockerfile \ . run-docker: docker run \ -it --rm \ --name emissary-agent \ -p 42521:42521 \ $(DOCKER_REPOSITORY)/emissary-agent:latest \ $(DOCKER_CMD)