Skip to content

Instantly share code, notes, and snippets.

@esciara
Created August 1, 2017 14:12
Show Gist options
  • Save esciara/a174aa6f26b08ff5ffaa569a69a40fd1 to your computer and use it in GitHub Desktop.
Save esciara/a174aa6f26b08ff5ffaa569a69a40fd1 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.network "forwarded_port", guest: 8069, host: 8069, auto_correct: true
config.vm.network "forwarded_port", guest: 5432, host: 5432, auto_correct: true
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
config.vm.provision "shell", inline: <<-SHELL
# installing odoo as explained in https://www.odoo.com/documentation/10.0/setup/install.html#deb
# but with sudo modifications and other minor changes to make it work on ubuntu 16.04
wget -O - https://nightly.odoo.com/odoo.key | sudo apt-key add -
sudo echo "deb http://nightly.odoo.com/10.0/nightly/deb/ ./" >> odoo.list
sudo mv odoo.list /etc/apt/sources.list.d/
sudo apt-get update
sudo apt-get install -y odoo
# installing wkhtmltopdf as explained in
# following http://askubuntu.com/questions/556667/how-to-install-wkhtmltopdf-0-12-1-on-ubuntu-server
sudo apt-get install -y wkhtmltopdf
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment