<commit_before>all:
	@echo "usage: make containers" >&2
	@echo "       make release-shell" >&2
	@echo "       make release-cockpit" >&2
	@echo "       make release-container" >&2
	@echo "       make release-install" >&2

TAG := $(shell date --iso-8601)
TASK_SECRETS := /var/lib/cockpit-secrets/tasks
WEBHOOK_SECRETS := /var/lib/cockpit-secrets/webhook
TASK_CACHE := /var/cache/cockpit-tasks
DOCKER := $(shell which podman docker 2>/dev/null | head -n1)

containers: images-container release-container tests-container
	@true

images-shell:
	$(DOCKER) run -ti --rm --publish=8493:443 \
		--volume=$(TASK_SECRETS):/secrets:ro \
		--volume=$(TASK_CACHE)/images:/cache/images:rw \
		--entrypoint=/bin/bash \
        cockpit/images -i

images-container:
	$(DOCKER) build -t docker.io/cockpit/images:$(TAG) images
	$(DOCKER) tag docker.io/cockpit/images:$(TAG) docker.io/cockpit/images:latest
	$(DOCKER) tag docker.io/cockpit/images:$(TAG) cockpit/images:latest

images-push:
	./push-container docker.io/cockpit/images

release-shell:
	test -d /home/cockpit/release || git clone https://github.com/cockpit-project/cockpit /home/cockpit/release
	chown -R cockpit:cockpit /home/cockpit/release
	$(DOCKER) run -ti --rm -v /home/cockpit:/home/user:rw \
		--privileged \
		--env=RELEASE_SINK=fedorapeople.org \
		--volume=/home/cockpit:/home/user:rw \
		--volume=/home/cockpit/release:/build:rw \
		--volume=$(CURDIR)/release:/usr/local/bin \
		--entrypoint=/bin/bash docker.io/cockpit/release
<commit_msg>Makefile: Fix cockpit/images container ports<commit_after>all:
	@echo "usage: make containers" >&2
	@echo "       make release-shell" >&2
	@echo "       make release-cockpit" >&2
	@echo "       make release-container" >&2
	@echo "       make release-install" >&2

TAG := $(shell date --iso-8601)
TASK_SECRETS := /var/lib/cockpit-secrets/tasks
WEBHOOK_SECRETS := /var/lib/cockpit-secrets/webhook
TASK_CACHE := /var/cache/cockpit-tasks
DOCKER := $(shell which podman docker 2>/dev/null | head -n1)

containers: images-container release-container tests-container
	@true

images-shell:
	$(DOCKER) run -ti --rm --publish 8080:8080 --publish=8493:8443 \
		--volume=$(TASK_SECRETS):/secrets:ro \
		--volume=$(TASK_CACHE)/images:/cache/images:rw \
		--entrypoint=/bin/bash \
        cockpit/images -i

images-container:
	$(DOCKER) build -t docker.io/cockpit/images:$(TAG) images
	$(DOCKER) tag docker.io/cockpit/images:$(TAG) docker.io/cockpit/images:latest
	$(DOCKER) tag docker.io/cockpit/images:$(TAG) cockpit/images:latest

images-push:
	./push-container docker.io/cockpit/images

release-shell:
	test -d /home/cockpit/release || git clone https://github.com/cockpit-project/cockpit /home/cockpit/release
	chown -R cockpit:cockpit /home/cockpit/release
	$(DOCKER) run -ti --rm -v /home/cockpit:/home/user:rw \
		--privileged \
		--env=RELEASE_SINK=fedorapeople.org \
		--volume=/home/cockpit:/home/user:rw \
		--volume=/home/cockpit/release:/build:rw \
		--volume=$(CURDIR)/release:/usr/local/bin \
		--entrypoint=/bin/bash docker.io/cockpit/release

{'fraction_non_alphanumeric': 0.1680921052631579, 'fraction_numerical': 0.014802631578947368, 'mean_word_length': 3.621580547112462, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '991772', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1111, 'n_words': 202}