2020-04-13 14:25:24 +00:00
|
|
|
NOMAD_SHA ?= $(shell git rev-parse HEAD)
|
2020-04-28 20:15:58 +00:00
|
|
|
PKG_PATH = $(shell pwd)/../../pkg/linux_amd64/nomad
|
2020-04-09 14:54:30 +00:00
|
|
|
|
|
|
|
dev-cluster:
|
2020-09-18 15:27:24 +00:00
|
|
|
terraform apply -auto-approve \
|
|
|
|
-var="nomad_sha=$(NOMAD_SHA)" \
|
|
|
|
-var-file=terraform.tfvars.dev
|
|
|
|
terraform output environment
|
2020-04-09 14:54:30 +00:00
|
|
|
|
2020-04-28 20:15:58 +00:00
|
|
|
dev-cluster-from-local:
|
2020-09-18 15:27:24 +00:00
|
|
|
terraform apply -auto-approve \
|
|
|
|
-var="nomad_local_binary=$(PKG_PATH)" \
|
|
|
|
-var-file=terraform.tfvars.dev
|
|
|
|
terraform output environment
|
2020-04-28 20:15:58 +00:00
|
|
|
|
2020-04-09 14:54:30 +00:00
|
|
|
clean:
|
|
|
|
terraform destroy -auto-approve
|
2020-09-18 15:27:24 +00:00
|
|
|
|
|
|
|
full-cluster:
|
|
|
|
terraform apply -auto-approve \
|
|
|
|
-var="nomad_sha=$(NOMAD_SHA)" \
|
|
|
|
-var-file=terraform.tfvars
|
|
|
|
|
|
|
|
plan-dev-cluster:
|
|
|
|
terraform plan \
|
|
|
|
-var="nomad_sha=$(NOMAD_SHA)" \
|
|
|
|
-var-file=terraform.tfvars.dev
|
|
|
|
|
|
|
|
plan-full-cluster:
|
|
|
|
terraform plan \
|
|
|
|
-var="nomad_sha=$(NOMAD_SHA)" \
|
|
|
|
-var-file=terraform.tfvars
|