-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-entrypoint.sh
executable file
·56 lines (54 loc) · 1.21 KB
/
docker-entrypoint.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh -e
# Magic to Provision the Container
# Brian Dwyer - Intelligent Digital Services
if [ -f '.terraform-version' ]; then
echo "Terraform version file detected... Initializing: $(cat .terraform-version)"
tfenv install
fi
# Kitchen Wrapper & Passthrough
case "$1" in
#
# Test-Kitchen
#
console ) kitchen "$@";;
converge ) kitchen "$@";;
create ) kitchen "$@";;
destroy ) kitchen "$@";;
diagnose | doctor ) kitchen "$@";;
exec ) kitchen "$@";;
help ) kitchen "$@";;
init ) kitchen "$@";;
list ) kitchen "$@";;
login ) kitchen "$@";;
package ) kitchen "$@";;
setup ) kitchen "$@";;
test ) kitchen "$@";;
verify ) kitchen "$@";;
version ) kitchen "$@";;
-*) kitchen "$@";;
#
# Terraform
#
tf ) terraform "$@";;
apply ) terraform "$@";;
plan ) terraform "$@";;
env ) terraform "$@";;
fmt ) terraform "$@";;
get ) terraform "$@";;
graph ) terraform "$@";;
import ) terraform "$@";;
output ) terraform "$@";;
providers ) terraform "$@";;
show ) terraform "$@";;
taint ) terraform "$@";;
untaint ) terraform "$@";;
validate ) terraform "$@";;
workspace ) terraform "$@";;
0.12upgrade ) terraform "$@";;
force-unlock ) terraform "$@";;
state ) terraform "$@";;
#
# Other
#
* ) exec "$@";;
esac