Files
linuxkit/projects/kubernetes/Makefile
Ian Campbell ac6b8dcf6a kubernetes: more flexible selection of network stack
Also move to 50 in the ordering so things can be added before as well as after.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-09-20 16:45:56 +01:00

39 lines
1019 B
Makefile

KUBE_RUNTIME ?= docker
NETWORK ?= weave-v2.0.4
INIT_YAML ?=
INIT_YAML += network.yaml
all: tag-container-images build-vm-images
tag-container-images:
$(MAKE) -C kubernetes tag
tag-cache-images:
$(MAKE) -C image-cache tag
push-container-images:
$(MAKE) -C kubernetes push
$(MAKE) -C image-cache push
build-vm-images: kube-master.iso kube-node.iso
# NB cannot use $^ because $(INIT_YAML) is not for consumption by "moby build"
kube-master.iso: kube.yml $(KUBE_RUNTIME).yml $(KUBE_RUNTIME)-master.yml $(INIT_YAML)
moby build -name kube-master -format iso-efi -format iso-bios kube.yml $(KUBE_RUNTIME).yml $(KUBE_RUNTIME)-master.yml
kube-node.iso: kube.yml $(KUBE_RUNTIME).yml
moby build -name kube-node -format iso-efi -format iso-bios $^
network.yaml: $(NETWORK).yaml
ln -nf $< $@
weave-%.yaml:
curl -L -o $@ https://cloud.weave.works/k8s/v1.7/net?v=$*
clean:
rm -f -r \
kube-*-kernel kube-*-cmdline kube-*-state kube-*-initrd.img *.iso \
weave-*.yaml network.yaml
$(MAKE) -C image-cache clean