-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (29 loc) · 770 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PWD=`pwd`
TERRAFORM_VERSION=0.14.2
default:
echo -n "\nUsage:\n\n make console Run /bin/sh in a hashicorp/terraform container.\n make show Just show the recursion error.\n"
console:
docker run -it --rm \
-v ${PWD}/:/apps \
-w /apps \
--entrypoint /bin/sh \
hashicorp/terraform:${TERRAFORM_VERSION}
console-debug:
docker run -it --rm \
-v ${PWD}/:/apps \
-w /apps \
-e "TF_LOG=trace" \
--entrypoint /bin/sh \
hashicorp/terraform:${TERRAFORM_VERSION}
show:
docker run -it --rm \
-v ${PWD}/:/apps \
-w /apps \
hashicorp/terraform:${TERRAFORM_VERSION} init
show-debug:
docker run -it --rm \
-v ${PWD}/:/apps \
-e "TF_LOG=trace" \
-w /apps \
hashicorp/terraform:${TERRAFORM_VERSION} init
.PHONY: console show default