<commit_before>include ../includes.mk

COMPONENT = logger
IMAGE = $(IMAGE_PREFIX)$(COMPONENT):$(BUILD_TAG)
BUILD_IMAGE := $(COMPONENT)-build
DEV_IMAGE = $(DEV_REGISTRY)/$(IMAGE)

build: check-docker
	docker build -t $(BUILD_IMAGE) .
	@$(eval CID := $(shell docker run -d $(BUILD_IMAGE)))
	docker cp $(CID):/go/bin/logger image/bin/
	docker build -t $(IMAGE) image
	-docker kill $(CID)
	rm -rf image/bin/logger

clean: check-docker check-registry
	docker rmi $(IMAGE)

full-clean: check-docker check-registry
	docker images -q $(IMAGE_PREFIX)$(COMPONENT) | xargs docker rmi -f

install: check-deisctl
	deisctl install $(COMPONENT)

uninstall: check-deisctl
	deisctl uninstall $(COMPONENT)
<commit_msg>fix(logger): remove logger-build container after "docker cp"<commit_after>include ../includes.mk

COMPONENT = logger
IMAGE = $(IMAGE_PREFIX)$(COMPONENT):$(BUILD_TAG)
BUILD_IMAGE := $(COMPONENT)-build
DEV_IMAGE = $(DEV_REGISTRY)/$(IMAGE)

build: check-docker
	docker build -t $(BUILD_IMAGE) .
	docker cp `docker run -d $(BUILD_IMAGE)`:/go/bin/logger image/bin/
	docker build -t $(IMAGE) image
	rm -rf image/bin/logger
	-docker rm -f `docker ps | grep logger-build | awk '{print $$1}'`

clean: check-docker check-registry
	docker rmi $(IMAGE)

full-clean: check-docker check-registry
	docker images -q $(IMAGE_PREFIX)$(COMPONENT) | xargs docker rmi -f

install: check-deisctl
	deisctl install $(COMPONENT)

uninstall: check-deisctl
	deisctl uninstall $(COMPONENT)

{'fraction_non_alphanumeric': 0.1429548563611491, 'fraction_numerical': 0.0006839945280437756, 'mean_word_length': 4.923076923076923, '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': '7271087', 'n_tokens_mistral': 538, 'n_tokens_neox': 507, 'n_words': 139}