emissary-firmware/targets/docker.mk

21 lines
523 B
Makefile
Raw Normal View History

2024-03-13 10:42:53 +01:00
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)