<commit_before>CWD=$(shell pwd)

PROJECT=$(CWD)/..
RUNTIME=$(PROJECT)/runtime
RKT=$(RUNTIME)/rkt/rkt
ACI=$(PROJECT)/aci

BASE=base
DEBIAN=debian

HYPERKUBE_BIN=hyperkube
WS=workspace

BASE=base
DEBIAN=debian
BUILDER_K8S=builder-k8s

HYPERKUBE_VERSION=0
HYPERKUBE=static-aci-hyperkube-$(HYPERKUBE_VERSION).aci
HYPERKUBE_IMAGE=static-aci-hyperkube:$(HYPERKUBE_VERSION)

RENDERS=$(RUNTIME)/renders
SQUASH=$(RENDERS)/squash_manifest.py
HYPERKUBE_RENDER=$(RENDERS)/hyperkube.render


QUAY_HYPERKUBE_COREOS_IMAGE=quay.io/coreos/hyperkube
QUAY_HYPERKUBE_COREOS_VERSION=v1.5.1_coreos.0
QUAY_HYPERKUBE_COREOS=$(QUAY_HYPERKUBE_COREOS_IMAGE):$(QUAY_HYPERKUBE_COREOS_VERSION)
HYPERKUBE_COREOS=hyperkube-$(QUAY_HYPERKUBE_COREOS_VERSION)

default: $(HYPERKUBE)

$(BASE):
	@echo ENV IMAGE=$(ACI)/aci-$(BASE)
	IMAGE=$(ACI)/aci-$(BASE) make -C $(RUNTIME) install

$(DEBIAN): $(BASE)
	@echo ENV IMAGE=$(ACI)/aci-$(DEBIAN)
	IMAGE=$(ACI)/aci-$(DEBIAN) make -C $(RUNTIME) install

$(BUILDER_K8S): $(DEBIAN)
	@echo ENV IMAGE=$(ACI)/aci-$(BUILDER_K8S)
	IMAGE=$(ACI)/aci-$(BUILDER_K8S) make -C $(RUNTIME) install

$(HYPERKUBE_BIN): $(BUILDER_K8S) clean
	$(RKT) --local-config=$(RUNTIME) gc --grace-period=0s
	$(RKT) --local-config=$(RUNTIME) run \
	    --interactive \
	    --insecure-options=all \
	    --net=host \
	    static-aci-builder-k8s \
	    --volume $(HYPERKUBE_BIN),kind=host,source=$(CWD) \
	    --mount volume=$(HYPERKUBE_BIN),target=/opt/$(HYPERKUBE_BIN) \
	    --exec /opt/$(HYPERKUBE_BIN)/$(WS)/build-hyperkube.sh ; \
	    $(RKT) --local-config=$(RUNTIME) gc --grace-period=0s
	ls -lh $(HYPERKUBE_BIN)

install: $(DEBIAN) $(HYPERKUBE)
	@echo ENV IMAGE=$(ACI)/aci-lldp
	IMAGE=$(ACI)/aci-hyperkube make -C $(RUNTIME) install

$(HYPERKUBE): install
	$(RKT) --local-config=$(RUNTIME) image render $(HYPERKUBE_IMAGE) $(HYPERKUBE_RENDER) --overwrite
	chmod +r $(HYPERKUBE_RENDER)/manifest
	$(SQUASH) $(HYPERKUBE_RENDER)/manifest
	tar -C $(HYPERKUBE_RENDER) -cf $(HYPERKUBE) manifest rootfs
	file $(HYPERKUBE)
	ls -lh $(HYPERKUBE)

$(HYPERKUBE_COREOS):
	$(RKT) --local-config=$(RUNTIME) fetch --insecure-options=all $(QUAY_HYPERKUBE_COREOS)
	$(RKT) --local-config=$(RUNTIME) image export $(QUAY_HYPERKUBE_COREOS) $(HYPERKUBE_COREOS)<commit_msg>Fix the dep<commit_after>CWD=$(shell pwd)

PROJECT=$(CWD)/..
RUNTIME=$(PROJECT)/runtime
RKT=$(RUNTIME)/rkt/rkt
ACI=$(PROJECT)/aci

BASE=base
DEBIAN=debian

HYPERKUBE_BIN=hyperkube
WS=workspace

BASE=base
DEBIAN=debian
BUILDER_K8S=builder-k8s

HYPERKUBE_VERSION=0
HYPERKUBE=static-aci-hyperkube-$(HYPERKUBE_VERSION).aci
HYPERKUBE_IMAGE=static-aci-hyperkube:$(HYPERKUBE_VERSION)

RENDERS=$(RUNTIME)/renders
SQUASH=$(RENDERS)/squash_manifest.py
HYPERKUBE_RENDER=$(RENDERS)/hyperkube.render


QUAY_HYPERKUBE_COREOS_IMAGE=quay.io/coreos/hyperkube
QUAY_HYPERKUBE_COREOS_VERSION=v1.5.1_coreos.0
QUAY_HYPERKUBE_COREOS=$(QUAY_HYPERKUBE_COREOS_IMAGE):$(QUAY_HYPERKUBE_COREOS_VERSION)
HYPERKUBE_COREOS=hyperkube-$(QUAY_HYPERKUBE_COREOS_VERSION)

default: $(HYPERKUBE)

$(BASE):
	@echo ENV IMAGE=$(ACI)/aci-$(BASE)
	IMAGE=$(ACI)/aci-$(BASE) make -C $(RUNTIME) install

$(DEBIAN): $(BASE)
	@echo ENV IMAGE=$(ACI)/aci-$(DEBIAN)
	IMAGE=$(ACI)/aci-$(DEBIAN) make -C $(RUNTIME) install

$(BUILDER_K8S): $(DEBIAN)
	@echo ENV IMAGE=$(ACI)/aci-$(BUILDER_K8S)
	IMAGE=$(ACI)/aci-$(BUILDER_K8S) make -C $(RUNTIME) install

$(HYPERKUBE_BIN): $(BUILDER_K8S) clean
	$(RKT) --local-config=$(RUNTIME) gc --grace-period=0s
	$(RKT) --local-config=$(RUNTIME) run \
	    --interactive \
	    --insecure-options=all \
	    --net=host \
	    static-aci-builder-k8s \
	    --volume $(HYPERKUBE_BIN),kind=host,source=$(CWD) \
	    --mount volume=$(HYPERKUBE_BIN),target=/opt/$(HYPERKUBE_BIN) \
	    --exec /opt/$(HYPERKUBE_BIN)/$(WS)/build-hyperkube.sh ; \
	    $(RKT) --local-config=$(RUNTIME) gc --grace-period=0s
	ls -lh $(HYPERKUBE_BIN)

install: $(DEBIAN) $(HYPERKUBE_BIN)
	@echo ENV IMAGE=$(ACI)/aci-lldp
	IMAGE=$(ACI)/aci-hyperkube make -C $(RUNTIME) install

$(HYPERKUBE): install
	$(RKT) --local-config=$(RUNTIME) image render $(HYPERKUBE_IMAGE) $(HYPERKUBE_RENDER) --overwrite
	chmod +r $(HYPERKUBE_RENDER)/manifest
	$(SQUASH) $(HYPERKUBE_RENDER)/manifest
	tar -C $(HYPERKUBE_RENDER) -cf $(HYPERKUBE) manifest rootfs
	file $(HYPERKUBE)
	ls -lh $(HYPERKUBE)

$(HYPERKUBE_COREOS):
	$(RKT) --local-config=$(RUNTIME) fetch --insecure-options=all $(QUAY_HYPERKUBE_COREOS)
	$(RKT) --local-config=$(RUNTIME) image export $(QUAY_HYPERKUBE_COREOS) $(HYPERKUBE_COREOS)
{'fraction_non_alphanumeric': 0.1801882563872703, 'fraction_numerical': 0.0062752129090094125, 'mean_word_length': 5.813740458015267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3053596', 'n_tokens_mistral': 2035, 'n_tokens_neox': 1997, 'n_words': 261}