Skip to content

Instantly share code, notes, and snippets.

@drkpkg
Created December 29, 2022 03:21
Show Gist options
  • Save drkpkg/fbf8b7e23acd1b97bdd2f69f8a927c93 to your computer and use it in GitHub Desktop.
Save drkpkg/fbf8b7e23acd1b97bdd2f69f8a927c93 to your computer and use it in GitHub Desktop.

Install dependencies for build

sudo apt install git wget nodejs npm python3 build-essential libzip-dev python3-dev libxslt1-dev python3-pip libldap2-dev python3-wheel libsasl2-dev python3-venv python3-setuptools node-less libjpeg-dev xfonts-75dpi xfonts-base libpq-dev libffi-dev fontconfig

Install wkhtmltopdf

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb 
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb

System account

sudo adduser --system --group --home=/opt/odoo --shell=/bin/bash odoo 

Docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo usermod -aG docker $USER
sudo systemctl enable docker
sudo systemctl start docker

Postgresql

docker run --name pg_latest -e POSTGRES_PASSWORD=odoo16 -e POSTGRES_USER=odoo16 -p 5432:5432 --restart=always -d postgres

Odoo

sudo mv ~/Downloads/home/odoo-16.0.zip
sudo chown -R odoo:odoo /opt/odoo/
sudo su - odoo
python3 -m venv venv
source venv/bin/activate
pip3 install wheel
pip3 install -r requirements.txt

Odoo conf

[options]
admin_passwd = somepass
db_user = odoo16
db_pass = odoo16
addons_path = addons
log_level  = debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment