Commit 0fd34e450a5cb5ea765503561888d642205383d9
1 parent
086bea7a
Exists in
master
Correção do bug do VirtualBox relacionado incompatibilidade do VirtualBox Guest …
…Additions e a versão do kernel do linux
Showing
1 changed file
with
14 additions
and
12 deletions
Show diff stats
Vagrantfile
@@ -25,7 +25,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | @@ -25,7 +25,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
25 | # config.vm.box = "guilhermeadc/centos65" | 25 | # config.vm.box = "guilhermeadc/centos65" |
26 | # config.vm.box_download_checksum = "76a2a61de2d89f6cfd4d795e57cc4406" | 26 | # config.vm.box_download_checksum = "76a2a61de2d89f6cfd4d795e57cc4406" |
27 | # config.vm.box_download_checksum_type = "md5" | 27 | # config.vm.box_download_checksum_type = "md5" |
28 | - config.vm.box = "chef/centos-7.0" | 28 | + config.vm.box = "hashicorp/precise64" |
29 | 29 | ||
30 | # Disable automatic box update checking. If you disable this, then | 30 | # Disable automatic box update checking. If you disable this, then |
31 | # boxes will only be checked for updates when the user runs | 31 | # boxes will only be checked for updates when the user runs |
@@ -55,20 +55,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | @@ -55,20 +55,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
55 | vb.customize ["modifyvm", :id, "--memory", params_memoria_vm, "--usb", "off", "--audio", "none"] | 55 | vb.customize ["modifyvm", :id, "--memory", params_memoria_vm, "--usb", "off", "--audio", "none"] |
56 | end | 56 | end |
57 | 57 | ||
58 | - $script_banco_dados = <<SCRIPT | ||
59 | - mkdir -p /mnt/sei/ops/mysql/.tmp/ | ||
60 | - cp /mnt/sei/db_sei/$1 /mnt/sei/ops/mysql/.tmp/sei_mysql.sql | ||
61 | - cp /mnt/sei/db_sip/$2 /mnt/sei/ops/mysql/.tmp/sip_mysql.sql | ||
62 | - cp /mnt/sei/ops/sei/ConfiguracaoSEI.php /mnt/sei/src/sei/ConfiguracaoSEI.php | ||
63 | - cp /mnt/sei/ops/sei/ConfiguracaoSip.php /mnt/sei/src/sip/ConfiguracaoSip.php | 58 | + # Correção da bug do VirtualBox relacionado ao Guest Additions |
59 | + config.vm.provision "shell", inline: <<SCRIPT | ||
60 | + apt-get update -y | ||
61 | + apt-get install linux-headers-$(uname -r) dkms | ||
62 | + /etc/init.d/vboxadd setup | ||
64 | SCRIPT | 63 | SCRIPT |
65 | 64 | ||
66 | - # Atualização da VM de host do docker | ||
67 | - config.vm.provision "shell", inline: "yum -y update" | ||
68 | - | ||
69 | config.vm.provision "shell", | 65 | config.vm.provision "shell", |
70 | - inline: $script_banco_dados, | ||
71 | - args: [File.basename(params_script_sei), File.basename(params_script_sip)] | 66 | + args: [File.basename(params_script_sei), File.basename(params_script_sip)], |
67 | + inline: <<SCRIPT | ||
68 | + mkdir -p /mnt/sei/ops/mysql/.tmp/ | ||
69 | + cp /mnt/sei/db_sei/$1 /mnt/sei/ops/mysql/.tmp/sei_mysql.sql | ||
70 | + cp /mnt/sei/db_sip/$2 /mnt/sei/ops/mysql/.tmp/sip_mysql.sql | ||
71 | + cp /mnt/sei/ops/sei/ConfiguracaoSEI.php /mnt/sei/src/sei/ConfiguracaoSEI.php | ||
72 | + cp /mnt/sei/ops/sei/ConfiguracaoSip.php /mnt/sei/src/sip/ConfiguracaoSip.php | ||
73 | +SCRIPT | ||
72 | 74 | ||
73 | # Provisionamento da Máquina Virtual responsável por manter os containers do Docker | 75 | # Provisionamento da Máquina Virtual responsável por manter os containers do Docker |
74 | config.vm.provision "docker" do |docker| | 76 | config.vm.provision "docker" do |docker| |