mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 09:01:59 +03:00
move apt-get update before apt-get
This commit is contained in:
@@ -25,12 +25,12 @@ echo '/dev/data/volume1 /var/lib/jenkins ext4 defaults 0 0' >> /etc/fstab
|
|||||||
mount /var/lib/jenkins
|
mount /var/lib/jenkins
|
||||||
|
|
||||||
# install default-jre (needed for ubuntu 18.04)
|
# install default-jre (needed for ubuntu 18.04)
|
||||||
|
apt-get update
|
||||||
apt-get install -y default-jre
|
apt-get install -y default-jre
|
||||||
|
|
||||||
# install jenkins and docker
|
# install jenkins and docker
|
||||||
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
|
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
|
||||||
echo "deb http://pkg.jenkins.io/debian-stable binary/" >> /etc/apt/sources.list
|
echo "deb http://pkg.jenkins.io/debian-stable binary/" >> /etc/apt/sources.list
|
||||||
apt-get update
|
|
||||||
apt-get install -y jenkins=${JENKINS_VERSION} unzip docker.io
|
apt-get install -y jenkins=${JENKINS_VERSION} unzip docker.io
|
||||||
|
|
||||||
# enable docker and add perms
|
# enable docker and add perms
|
||||||
|
|||||||
Reference in New Issue
Block a user