<commit_before>
CONFIG_BUCKET=sshephalopod-config-bucket
KEYPAIR_BUCKET=sshephalopod-keypair-bucket
DOMAIN=sshephalopod-service-domain.com
IDP_METADATA=https://somewhere.okta.com/app/somejumbleofcharacters/sso/saml/metadata

all:
	@echo "use 'make build' to build sshephalopod components"
	@echo "use 'make deploy' to deploy sshephalopod"

build:
	make -C apigateway build

deploy:
	echo something > /tmp/api-gw.id
	IDP_METADATA=$(IDP_METADATA) CONFIG_BUCKET=$(CONFIG_BUCKET) KEYPAIR_BUCKET=$(KEYPAIR_BUCKET) DOMAIN=$(DOMAIN) make -C lambda deploy
	@echo "Deploying API ..."
	make -s -C apigateway deploy > /tmp/api-gw.id
	@echo "Deployed API"
	IDP_METADATA=$(IDP_METADATA) CONFIG_BUCKET=$(CONFIG_BUCKET) KEYPAIR_BUCKET=$(KEYPAIR_BUCKET) DOMAIN=$(DOMAIN) make -C lambda deploy
	rm /tmp/api-gw.id
<commit_msg>Add build/deploy targets for the docker method<commit_after>
CONFIG_BUCKET=sshephalopod-config-bucket
KEYPAIR_BUCKET=sshephalopod-keypair-bucket
DOMAIN=sshephalopod-service-domain.com
IDP_METADATA=https://somewhere.okta.com/app/somejumbleofcharacters/sso/saml/metadata

all:
	@echo "use 'make build' to build sshephalopod components"
	@echo "use 'make deploy' to deploy sshephalopod"

build:
	make -C apigateway build

deploy:
	echo something > /tmp/api-gw.id
	IDP_METADATA=$(IDP_METADATA) CONFIG_BUCKET=$(CONFIG_BUCKET) KEYPAIR_BUCKET=$(KEYPAIR_BUCKET) DOMAIN=$(DOMAIN) make -C lambda deploy
	@echo "Deploying API ..."
	make -s -C apigateway deploy > /tmp/api-gw.id
	@echo "Deployed API"
	IDP_METADATA=$(IDP_METADATA) CONFIG_BUCKET=$(CONFIG_BUCKET) KEYPAIR_BUCKET=$(KEYPAIR_BUCKET) DOMAIN=$(DOMAIN) make -C lambda deploy
	rm /tmp/api-gw.id

build-docker:
	docker build -t sshephalopod-deploy --force-rm=true .

deploy-docker:
	docker run -it $(shell echo "$${!AWS_*}" | sed -e 's/AWS/-e AWS/g') sshephalopod-deploy

{'fraction_non_alphanumeric': 0.12445175438596491, 'fraction_numerical': 0.0, 'mean_word_length': 5.734317343173432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4765663', 'n_tokens_mistral': 752, 'n_tokens_neox': 735, 'n_words': 144}