envoy-fedora: container for envoy using fedora
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
b9b142c620
commit
b65855273f
2 changed files with 37 additions and 0 deletions
7
envoy-fedora/Dockerfile.in
Normal file
7
envoy-fedora/Dockerfile.in
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM FROM_IMAGE
|
||||||
|
|
||||||
|
RUN dnf install -y 'dnf-command(copr)' && \
|
||||||
|
dnf copr enable -y vbatts/envoy && \
|
||||||
|
dnf install -y envoy && \
|
||||||
|
dnf update -y && \
|
||||||
|
dnf clean all
|
30
envoy-fedora/Makefile
Normal file
30
envoy-fedora/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
|
||||||
|
DOCKER ?= $(shell which docker)
|
||||||
|
FROM_IMAGE ?= fedora
|
||||||
|
#FROM_TAG ?= 21
|
||||||
|
FROM_TAG ?= latest
|
||||||
|
FROM := $(FROM_IMAGE):$(FROM_TAG)
|
||||||
|
REGISTRY ?= docker.io
|
||||||
|
NAME ?= $(REGISTRY)/$(USER)/envoy-$(FROM_IMAGE):$(FROM_TAG)
|
||||||
|
|
||||||
|
default: build
|
||||||
|
|
||||||
|
Dockerfile: Dockerfile.in
|
||||||
|
m4 \
|
||||||
|
--define=FROM_IMAGE=$(FROM) \
|
||||||
|
$< > $@
|
||||||
|
|
||||||
|
build: .build
|
||||||
|
|
||||||
|
.build: Dockerfile .pull
|
||||||
|
$(DOCKER) build -t $(NAME) . && touch $@
|
||||||
|
|
||||||
|
pull: .pull
|
||||||
|
|
||||||
|
.pull:
|
||||||
|
$(DOCKER) pull $(FROM) && touch $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf .build .pull Dockerfile *~
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue