.DEFAULT_GOAL := help

.EXPORT_ALL_VARIABLES:

.PHONY: test-local

all: test-local test-remote

test-local: ## Run local test cases
	tests/local_test.sh 

test-remote: ## Install Docker
	curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
	OS_CODENAME=$(shell lsb_release -cs)
	sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu ${OS_CODENAME} stable"
	sudo apt-get update
	sudo apt-get install -y docker-ce
	sudo usermod -aG docker ${USER}

help:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'