File tree Expand file tree Collapse file tree 3 files changed +9
-30
lines changed Expand file tree Collapse file tree 3 files changed +9
-30
lines changed Original file line number Diff line number Diff line change 2
2
set -x
3
3
4
4
cleanup () {
5
- rm -fv terraform terraform_0.11.7_linux_amd64 .zip
5
+ rm -fv terraform terraform_0.11.8_linux_amd64 .zip
6
6
}
7
7
trap " cleanup" EXIT
8
8
ctr=$( buildah from alpine) || (echo " Must be root to execute buildah" && exit 1)
9
9
mnt=` buildah mount $ctr ` || (echo " Must be root to execute buildah" && exit 1)
10
- wget https://releases.hashicorp.com/terraform/0.11.7 /terraform_0.11.7_linux_amd64 .zip
11
- unzip terraform_0.11.7_linux_amd64 .zip
10
+ wget https://releases.hashicorp.com/terraform/0.11.8 /terraform_0.11.8_linux_amd64 .zip
11
+ unzip terraform_0.11.8_linux_amd64 .zip
12
12
cp terraform " ${mnt} /usr/bin" || exit 1
13
13
buildah unmount $ctr
14
14
buildah config $ctr
15
- buildah commit $ctr terraform-alpine:v0.11.7
15
+ buildah commit $ctr terraform-alpine:v0.11.8
16
16
set +x
17
- echo " run 'podman run -v " $PWD " :" $PWD " :ro terraform-alpine:v0.11.7 terraform fmt -list -check -write=false' to terraform fmt source"
18
17
echo " to cleanup run 'podman stop [containerid from podman run]; podman rm [containerid from podman run]'"
19
- echo " to push to docker-daemon run 'buildah push [imageID] docker-daemon:terraform-alpine:v0.11.7 '"
18
+ echo " to push to docker-daemon run 'buildah push [imageID] docker-daemon:terraform-alpine:v0.11.8 '"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,14 +7,13 @@ cleanup() {
7
7
trap " cleanup" EXIT
8
8
ctr=$( buildah from scratch) || (echo " Must be root to execute buildah" && exit 1)
9
9
mnt=` buildah mount $ctr ` || (echo " Must be root to execute buildah" && exit 1)
10
- wget https://releases.hashicorp.com/terraform/0.11.7 /terraform_0.11.7_linux_amd64 .zip
11
- unzip terraform_0.11.7_linux_amd64 .zip
10
+ wget https://releases.hashicorp.com/terraform/0.11.8 /terraform_0.11.8_linux_amd64 .zip
11
+ unzip terraform_0.11.8_linux_amd64 .zip
12
12
cp terraform $mnt || exit 1
13
13
mkdir $mnt /tmp || exit 1
14
14
buildah unmount $ctr
15
15
buildah config --entrypoint=' ["/terraform"]' " ${ctr} "
16
- buildah commit $ctr terraform-scratch:v0.11.7
16
+ buildah commit $ctr terraform-scratch:v0.11.8
17
17
set +x
18
- echo " run 'podman run -v " $PWD " :" $PWD " :ro terraform-scratch:v0.11.7 fmt -list -check -write=false' to terraform fmt source"
18
+ echo " run 'podman run -v " $PWD " :" $PWD " :ro terraform-scratch:v0.11.8 fmt -list -check -write=false' to terraform fmt source"
19
19
echo " to cleanup run 'podman stop [containerid from podman run]; podman rm [containerid from podman run]'"
20
- echo " to push to docker-daemon run 'buildah push [imageID] docker-daemon:terraform-scratch:v0.11.7'"
You can’t perform that action at this time.
0 commit comments