Created
September 14, 2017 18:47
-
-
Save migonzalvar/9dfcfbe6991c47128d347e7506b63925 to your computer and use it in GitHub Desktop.
Simple Vagrantfile to install Odoo
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
$script = <<SCRIPT | |
yum install -y epel-release | |
yum install -y postgresql-server | |
postgresql-setup initdb | |
systemctl enable --now postgresql | |
yum install -y yum-utils | |
yum-config-manager --add-repo=https://nightly.odoo.com/10.0/nightly/rpm/odoo.repo | |
yum install -y odoo | |
systemctl enable --now odoo | |
yum install -y https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-centos7-amd64.rpm | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
config.vm.box = "centos/7" | |
config.vm.network "forwarded_port", guest: 8069, host: 8069 | |
config.vm.network "forwarded_port", guest: 8070, host: 8070 | |
config.vm.provision "shell", inline: $script | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment