仮想マシンを構築後、http://192.168.55.112:8080/にユーザadmin、パスワードshipyardでアクセスします。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/centos-7.4"
config.vm.hostname = "co74shipyard"
config.vm.network :public_network, ip:"192.168.1.112"
config.vm.network "private_network", ip: "192.168.55.112", :netmask => "255.255.255.0"
config.vm.provider :virtualbox do |vbox|
vbox.name = "co74shipyard"
vbox.cpus = 4
vbox.memory = 4096
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.provision "shell", inline: <<-SHELL
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum-config-manager --disable docker-ce-edge
yum -y install docker-ce
systemctl enable docker
systemctl start docker
curl -sSL https://shipyard-project.com/deploy | bash -s
SHELL
end
shipyardのログイン画面shipyardのコンテナ一覧画面
0 件のコメント:
コメントを投稿