-
-
Save plainspooky/53362bb398d50592d3ee98863553448e to your computer and use it in GitHub Desktop.
Arquivo do Vagrant para a instalação da versão LTS do Jenkins em Ubuntu 16.04 LTS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
vb.customize ["modifyvm", :id, "--cpus", "2"] | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
ln -sf /usr/share/zoneinfo/Brazil/East /etc/localtime | |
dpkg-reconfigure -f noninteractive tzdata | |
curl --silent https://pkg.jenkins.io/debian-stable/jenkins.io.key | apt-key add - | |
echo 'deb https://pkg.jenkins.io/debian-stable binary/' > /etc/apt/sources.list.d/jenkins.list | |
apt-get update && apt-get --yes upgrade | |
apt-get --yes install jenkins | |
curl --silent http://localhost:8080 2>/dev/null | |
while [ ! -f /var/lib/jenkins/secrets/initialAdminPassword ] ; do sleep 1 ; done | |
cat /var/lib/jenkins/secrets/initialAdminPassword | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment