<commit_before>export VERSION ?= $(shell git describe --tags)
REPOSITORY := gravitational.io
NAME := monitoring-app
OPS_URL ?= https://opscenter.localhost.localdomain:33009
OUT ?= $(NAME).tar.gz
GRAVITY ?= gravity
export

EXTRA_GRAVITY_OPTIONS ?=

IMPORT_IMAGE_FLAGS := --set-image=monitoring-influxdb:$(VERSION) \
	--set-image=monitoring-heapster:$(VERSION) \
	--set-image=monitoring-grafana:$(VERSION) \
	--set-image=monitoring-kapacitor:$(VERSION) \
	--set-image=monitoring-telegraf:$(VERSION) \
	--set-image=monitoring-hook:$(VERSION) \
	--set-image=watcher:$(VERSION)

IMPORT_OPTIONS := --vendor \
	--insecure \
	--glob=**/*.yaml \
	--exclude=".git" \
	--exclude="images" \
	--exclude="Makefile" \
	--exclude=".gitignore" \
	--registry-url=leader.telekube.local:5000 \
	--ops-url=$(OPS_URL) \
	--repository=$(REPOSITORY) \
	--name=$(NAME) \
	--version=$(VERSION) \
	$(IMPORT_IMAGE_FLAGS)

.PHONY: package
package:
	$(MAKE) -C watcher
	$(MAKE) -C images all

.PHONY: deploy
deploy:
	$(MAKE) -C images deploy

.PHONY:
get-version:
	@echo $(VERSION)

.PHONY: hook
hook:
	$(MAKE) -C images hook

.PHONY: import
import: package
	-$(GRAVITY) app delete \
		--ops-url=$(OPS_URL) \
		$(REPOSITORY)/$(NAME):$(VERSION) \
		--force --insecure $(EXTRA_GRAVITY_OPTIONS)
	$(GRAVITY) app import \
		$(IMPORT_OPTIONS) \
		$(EXTRA_GRAVITY_OPTIONS) \
		--include=resources --include=registry .

.PHONY: tarball
tarball: import
	$(GRAVITY) package export \
		--ops-url=$(OPS_URL) \
		$(REPOSITORY)/$(NAME):$(VERSION) $(NAME)-$(VERSION).tar.gz

.PHONY: clean
clean:
	$(MAKE) -C watcher clean<commit_msg>Added --insecure and EXTRA_GRAVITY_OPTIONS to export<commit_after>export VERSION ?= $(shell git describe --tags)
REPOSITORY := gravitational.io
NAME := monitoring-app
OPS_URL ?= https://opscenter.localhost.localdomain:33009
OUT ?= $(NAME).tar.gz
GRAVITY ?= gravity
export

EXTRA_GRAVITY_OPTIONS ?=

IMPORT_IMAGE_FLAGS := --set-image=monitoring-influxdb:$(VERSION) \
	--set-image=monitoring-heapster:$(VERSION) \
	--set-image=monitoring-grafana:$(VERSION) \
	--set-image=monitoring-kapacitor:$(VERSION) \
	--set-image=monitoring-telegraf:$(VERSION) \
	--set-image=monitoring-hook:$(VERSION) \
	--set-image=watcher:$(VERSION)

IMPORT_OPTIONS := --vendor \
	--insecure \
	--glob=**/*.yaml \
	--exclude=".git" \
	--exclude="images" \
	--exclude="Makefile" \
	--exclude=".gitignore" \
	--registry-url=leader.telekube.local:5000 \
	--ops-url=$(OPS_URL) \
	--repository=$(REPOSITORY) \
	--name=$(NAME) \
	--version=$(VERSION) \
	$(IMPORT_IMAGE_FLAGS)

.PHONY: package
package:
	$(MAKE) -C watcher
	$(MAKE) -C images all

.PHONY: deploy
deploy:
	$(MAKE) -C images deploy

.PHONY:
get-version:
	@echo $(VERSION)

.PHONY: hook
hook:
	$(MAKE) -C images hook

.PHONY: import
import: package
	-$(GRAVITY) app delete \
		--ops-url=$(OPS_URL) \
		$(REPOSITORY)/$(NAME):$(VERSION) \
		--force --insecure $(EXTRA_GRAVITY_OPTIONS)
	$(GRAVITY) app import \
		$(IMPORT_OPTIONS) \
		$(EXTRA_GRAVITY_OPTIONS) \
		--include=resources --include=registry .

.PHONY: tarball
tarball: import
	$(GRAVITY) package export \
		--ops-url=$(OPS_URL) \
		--insecure $(EXTRA_GRAVITY_OPTIONS) \
		$(REPOSITORY)/$(NAME):$(VERSION) $(NAME)-$(VERSION).tar.gz

.PHONY: clean
clean:
	$(MAKE) -C watcher clean
{'fraction_non_alphanumeric': 0.19723502304147467, 'fraction_numerical': 0.005529953917050691, 'mean_word_length': 3.9483282674772036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '839502', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1288, 'n_words': 214}