feat: openwrt docker recipe
Some checks failed
arcad/emissary-firmware/pipeline/head There was a failure building this commit

This commit is contained in:
2024-03-13 10:42:53 +01:00
parent ede2142b9f
commit 772f3fff61
4 changed files with 51 additions and 0 deletions

21
targets/docker.mk Normal file
View File

@ -0,0 +1,21 @@
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)