
run:
	go run -race main.go

lint:
	# Using default linters (golangci-lint help linters) (brew install golangci/tap/golangci-lint)
	golangci-lint run

build:
	# Build Docker image
	docker build -t e2topics .

push:
	# Push Docker image e2topics to ECR.
	./scripts/docker_push.sh

dev01_up:
    # Run test dev01
	./scripts/run.sh dev01

dev01_down:
	# Stop test dev01
	./scripts/run.sh dev01 0

dev01_push: build push dev01_up
	# Build, push and run test dev01
	echo "Remember to: make dev01_down"

dev02_up:
    # Run test dev02
	./scripts/run.sh dev02

dev02_down:
	# Stop test dev02
	./scripts/run.sh dev02 0

dev02_push: build push dev02_up
	# Build, push and run test dev02
	echo "Remember to: make dev02_down"
