Feature/packer jenkins (#31)

* packer jenkins update
This commit is contained in:
Edward Viaene
2020-03-17 21:21:40 +01:00
committed by GitHub
parent 50df73f39a
commit ef34e41349
10 changed files with 99 additions and 37 deletions
+1 -9
View File
@@ -30,18 +30,10 @@ echo "deb http://pkg.jenkins.io/debian-stable binary/" >> /etc/apt/sources.list
apt-get update
# install dependencies
apt-get install -y python3 openjdk-8-jre
update-java-alternatives --set java-1.8.0-openjdk-amd64
apt-get install -y python3 openjdk-11-jdk awscli
# install jenkins
apt-get install -y jenkins=${JENKINS_VERSION} unzip
# install pip
wget -q https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
rm -f get-pip.py
# install awscli
pip install awscli
# install terraform
wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& unzip -o terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin \