<commit_before>docker = docker

build:
	$(docker) build -t localhost:32000/vandorjw/django-assessment .

run:
	$(docker) run --name local-django-assessment \
	-d \
	-p 5678:5000 \
	--env-file ./.env \
	localhost:32000/vandorjw/django-assessment

clean:
	$(docker) stop local-django-assessment
	$(docker) rm local-django-assessment
	$(docker) stop local-django-assessment-test
	$(docker) rm local-django-assessment-test

push:
	microk8s.ctr image push localhost:32000/vandorjw/django-assessment:latest

pull:
	microk8s.ctr image pull localhost:32000/vandorjw/django-assessment:latest

deploy:
	$(docker) build -t localhost:32000/vandorjw/django-assessment .
	$(docker) push --tls-verify=false localhost:32000/vandorjw/django-assessment
	microk8s.kubectl delete deployment django-assessment-deployment
	microk8s.kubectl apply -f k8s/deployment.yml
	microk8s.kubectl apply -f k8s/service.yml
	microk8s.kubectl apply -f k8s/ingres.yml

status:
	microk8s.kubectl describe deployment django-assessment-deployment
	microk8s.kubectl describe service django-assessment-service<commit_msg>added a note for myself in the Makefile<commit_after>docker = docker

build:
	$(docker) build -t localhost:32000/vandorjw/django-assessment .

# Hi there,
# Are you missing a .env file?
# Please take a look at the 'test' command for common env variables.
run:
	$(docker) run --name local-django-assessment \
	-d \
	-p 5678:5000 \
	--env-file ./.env \
	localhost:32000/vandorjw/django-assessment

clean:
	$(docker) stop local-django-assessment
	$(docker) rm local-django-assessment
	$(docker) stop local-django-assessment-test
	$(docker) rm local-django-assessment-test

push:
	microk8s.ctr image push localhost:32000/vandorjw/django-assessment:latest

pull:
	microk8s.ctr image pull localhost:32000/vandorjw/django-assessment:latest

deploy:
	$(docker) build -t localhost:32000/vandorjw/django-assessment .
	$(docker) push --tls-verify=false localhost:32000/vandorjw/django-assessment
	microk8s.kubectl delete deployment django-assessment-deployment
	microk8s.kubectl apply -f k8s/deployment.yml
	microk8s.kubectl apply -f k8s/service.yml
	microk8s.kubectl apply -f k8s/ingres.yml

status:
	microk8s.kubectl describe deployment django-assessment-deployment
	microk8s.kubectl describe service django-assessment-service
{'fraction_non_alphanumeric': 0.10757839721254356, 'fraction_numerical': 0.042682926829268296, 'mean_word_length': 4.785894206549118, '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': '5114005', 'n_tokens_mistral': 943, 'n_tokens_neox': 844, 'n_words': 176}