Skip to content

Instantly share code, notes, and snippets.

@rockavoldy
Last active April 8, 2023 05:18
Show Gist options
  • Save rockavoldy/948ad8fe90345e6a90422b4ebe983105 to your computer and use it in GitHub Desktop.
Save rockavoldy/948ad8fe90345e6a90422b4ebe983105 to your computer and use it in GitHub Desktop.
Install Odoo 13 on macOS 10.15.7 Catalina
version: '3'
services:
db:
image: postgres:13
ports:
- 5432:5432
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- db-data:/var/lib/postgresql/data/pgdata
volumes:
db-data:
driver: local

Install Odoo 13 on macOS 10.15.7 Catalina

Requirements

  • Homebrew (for installing python)
  • Docker (for postgresql server, you can install postgre with homebrew too)
  • python3 (for installing virtualenv)
  • virtualenv (to run as python3.7, pillow 6.1.0 dependencies can be run with python3.5, 3.6, and 3.7)

Steps

  1. Install python3.7 with brew
    brew install python3
  2. Then install virtualenv with pip3
    pip3 install virtualenv
  3. Clone Odoo from git repository
    git clone https://github.com/odoo/odoo --branch 13.0 --depth 1
  4. Create virtualenv inside odoo directory
    cd odoo
    virtualenv -p /usr/local/opt/python@3.7/bin/python3 venv
  5. Activate venv
    source venv/bin/activate
  6. Install setuptools and wheel, and requirements.txt with pip, but first confirm pip use python3.7
    pip --version
    pip install setuptools wheel && pip install -r requirements.txt 
  7. Once done, run postgresql, here i am using docker-compose.yml that i provided with this gist
    docker compose up -d
  8. postgresql run on localhost:5432, then run odoo-bin with some flag arguments for database
    python odoo-bin --addons-path=addons -d postgres -r odoo -w odoo --db_host=localhost  --db_port=5432 -i base
  9. Odoo installed on port :8069, create new database here http://localhost:8069/web/database/manager (example db_name is odt, and check "demo data")
  10. Wait page to automatically refresh to login page. Once done, cancel odoo from terminal, then run odoo-bin with new database name
    python odoo-bin --addons-path=addons -d odt -r odoo -w odoo --db_host=localhost  --db_port=5432
  11. Now, you can access http://localhost:8069 and login with your credentials from step number 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment