mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 23:02:12 +03:00
docker demo 3 updates
This commit is contained in:
@@ -29,8 +29,12 @@ 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 -
|
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee \
|
||||||
echo "deb http://pkg.jenkins.io/debian-stable binary/" >> /etc/apt/sources.list
|
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
|
||||||
|
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
|
||||||
|
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
|
||||||
|
/etc/apt/sources.list.d/jenkins.list > /dev/null
|
||||||
|
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
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ variable "ECS_AMIS" {
|
|||||||
variable "AMIS" {
|
variable "AMIS" {
|
||||||
type = map(string)
|
type = map(string)
|
||||||
default = {
|
default = {
|
||||||
us-east-1 = "ami-13be557e"
|
us-east-1 = "ami-01b996646377b6619"
|
||||||
us-west-2 = "ami-06b94666"
|
us-west-2 = "ami-0637e7dc7fcc9a2d9"
|
||||||
eu-west-1 = "ami-844e0bf7"
|
eu-west-1 = "ami-081ff4b9aa4e81a08"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,6 +39,6 @@ variable "INSTANCE_DEVICE_NAME" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
variable "JENKINS_VERSION" {
|
variable "JENKINS_VERSION" {
|
||||||
default = "2.303.1"
|
default = "2.319.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user