-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (30 loc) · 1.15 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/centos-7.8"
config.vm.synced_folder '.', '/vagrant'
config.vm.network 'forwarded_port',
guest: 5601, host: 5601
config.vm.network 'forwarded_port',
guest: 9200, host: 9200
config.vm.provision "Boostrap", type: "shell" do |sh|
sh.inline = "echo Boostrap process #################"
sh.inline = "sudo yum install -y docker;
sudo systemctl start docker;
sudo yum install -y python3;
sudo pip3 install --upgrade pip"
end
config.vm.provision "Configurating compose", type: "shell" do |sh|
sh.inline = "sudo pip3 install docker-compose;
sudo chmod +x /usr/local/bin/docker-compose;
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose"
end
config.vm.provision "Starting application", type: "shell" do |sh|
sh.inline = "cd /vagrant/bin/scripts/config;
sudo docker-compose up"
end
config.vm.provider 'virtualbox' do |vb|
vb.name = "Smart library"
vb.memory = 2048
end
end