feat: openwrt docker recipe
Some checks failed
arcad/emissary-firmware/pipeline/head There was a failure building this commit
Some checks failed
arcad/emissary-firmware/pipeline/head There was a failure building this commit
This commit is contained in:
21
targets/docker.mk
Normal file
21
targets/docker.mk
Normal 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)
|
Reference in New Issue
Block a user