Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604jenkins"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604jenkins"
vbox.cpus = 2
vbox.memory = 2048
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.104", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.104", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
# update packages
apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
apt-get -y install unzip
locale-gen ja_JP.UTF-8
localectl set-locale LANG=ja_JP.UTF-8
# install jenkins
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
echo 'deb https://pkg.jenkins.io/debian-stable binary/' >> /etc/apt/sources.list
apt-get update
apt-get -y install jenkins
# show display password
echo 'access http://192.168.55.104:8080';
echo 'password in /var/lib/jenkins/secrets/initialAdminPassword file.'
cat /var/lib/jenkins/secrets/initialAdminPassword
SHELL
end
○jenkinsの設定画面1
○jenkinsの設定画面2
○jenkinsの設定画面3
○jenkinsの設定画面4
○jenkinsの設定画面5
○jenkinsの画面
0 件のコメント:
コメントを投稿