<commit_before>.PHONY: build dist

default: build

build:
	go build -v -o ./bin/docker-nginx-reloader

dist:
	GOOS=linux GOARCH=amd64 go build -v -o ./bin/linux-amd64/docker-nginx-reloader

test: dist
	docker build -t nginx-debug testing/nginx-debug
	docker run --name nginx-debug -d nginx-debug

	docker build -t docker-nginx-reloader .
	docker run --rm -v /var/run/docker.sock:/var/run/docker.sock docker-nginx-reloader
	docker logs nginx-debug

	docker rm -f nginx-debug

update:
	go get -u -f -v
	godep save<commit_msg>Add "make push" for easy docker pushing<commit_after>.PHONY: build dist

default: build

update:
	go get -u -f -v
	godep save

build:
	go build -v -o ./bin/docker-nginx-reloader

dist:
	GOOS=linux GOARCH=amd64 go build -v -o ./bin/linux-amd64/docker-nginx-reloader

test: dist
	docker build -t nginx-debug testing/nginx-debug
	docker run --name nginx-debug -d nginx-debug

	docker build -t patrickhoefler/docker-nginx-reloader .
	docker run --rm -v /var/run/docker.sock:/var/run/docker.sock docker-nginx-reloader
	docker logs nginx-debug

	docker rm -f nginx-debug

push: test
	docker push patrickhoefler/docker-nginx-reloader
{'fraction_non_alphanumeric': 0.1122715404699739, 'fraction_numerical': 0.006962576153176675, 'mean_word_length': 3.356060606060606, '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': '1382404', 'n_tokens_mistral': 478, 'n_tokens_neox': 428, 'n_words': 124}