Skip to content

Instantly share code, notes, and snippets.

@migonzalvar
Created September 14, 2017 18:47
Show Gist options
  • Save migonzalvar/9dfcfbe6991c47128d347e7506b63925 to your computer and use it in GitHub Desktop.
Save migonzalvar/9dfcfbe6991c47128d347e7506b63925 to your computer and use it in GitHub Desktop.
Simple Vagrantfile to install Odoo
$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