-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup-env.sh
52 lines (42 loc) · 1.14 KB
/
setup-env.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
#!/usr/bin/env bash
echo "$(date): Starting setup-env.sh"
# this is also set in cdk/setup.py
export CDK_VERSION=1.137.0
export PACKER_VERSION=1.5.5
export TASKCAT_VERSION=0.9.29
# system upgrades and tools
export DEBIAN_FRONTEND=noninteractive
apt-get -y -q update && apt-get -y -q upgrade
apt-get -y -q install \
curl \
git \
groff \
jq \
less \
unzip \
vim \
wget
# aws cli
cd /tmp
curl --silent --show-error https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip
unzip -q awscliv2.zip
./aws/install
cd -
# taskcat
apt-get -y -q install python3 python3-pip
pip3 install -q taskcat==$TASKCAT_VERSION
# For scripts/pfl.py
pip3 install -q \
openpyxl \
pystache \
pyyaml
# more recent nodejs
curl -sL https://deb.nodesource.com/setup_14.x | bash -
apt-get -y -q install nodejs
# cdk
npm install -g aws-cdk@$CDK_VERSION
# packer
wget -q -O /tmp/packer.zip https://releases.hashicorp.com/packer/$PACKER_VERSION/packer_${PACKER_VERSION}_linux_amd64.zip
unzip /tmp/packer.zip -d /usr/local/bin/
rm /tmp/packer.zip
echo "$(date): Finished setup-env.sh"