-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·36 lines (26 loc) · 1.2 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·36 lines (26 loc) · 1.2 KB
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
#!/bin/sh
trap clean EXIT
set -e
arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)
terraform_version=1.7.1
packer_version=1.10.1
sops_version=3.8.1
clean() {
rm -f *.zip
rm -rf aws
}
apk update && apk add curl unzip aws-cli bash
# ----------------------------------------------------------------------------------------------------------------------
# terraform
curl -sLO https://releases.hashicorp.com/terraform/${terraform_version}/terraform_${terraform_version}_linux_${arch}.zip
unzip -o terraform_${terraform_version}_linux_${arch}.zip -d /bin
chmod +x /bin/terraform
# ----------------------------------------------------------------------------------------------------------------------
# packer
curl -sLO https://releases.hashicorp.com/packer/${packer_version}/packer_${packer_version}_linux_${arch}.zip
unzip -o packer_${packer_version}_linux_${arch}.zip -d /bin
chmod +x /bin/packer
# ----------------------------------------------------------------------------------------------------------------------
# sops
curl -sLO https://github.com/mozilla/sops/releases/download/v${sops_version}/sops-v${sops_version}.linux.${arch}
mv sops-v${sops_version}.linux.${arch} /bin/sops && chmod +x /bin/sops