.PHONY: upgrade help
OSTAG=$(shell uname -s | tr '[:upper:]' '[:lower:]')

help:
	@echo ""
	@echo "Targets:"
	@echo "\ttest             - run go test and gometalinter locally in a docker container"
	@echo "\tlocal            - run after 'make test' to run the built service on your laptop"
	@echo "         'AWS_PROFILE=twitch_ds_private make local' will emit cloudwatch metrics to your personal account"
	@echo ""

clean:
	go clean ./...

test:
	docker build -t service:latest-test -f Dockerfile-local .

local:
	# set AWS_PROFILE=your personal account and you will be able to see this process emit metrics to your cloudwatch
	# curl http://localhost:8080/debug/running to confirm it is running
	docker run -p 8080:8080/tcp service:latest-test 
