Skip to main content

'Odoo Framework'

Project description

Odoo Docker Framework

Provides functionalities:

  • setup empty new odoo with one bash command odoo init --version 15.0

  • setup full fleged odoo server environment containing

    • supports MANIFEST file in odoo root directory to install and uninstall modules
    • postgres with pg_activity, enhanced pgcli
    • fake webmail to receive AND SEND mails
    • logs.io integration to display container output on web browser
    • dividing web, cron, queuejob container per default
    • progress bar on postgres dump/restore
  • fzf compatible creation of and AST of your project

  • fast restore / create snapshots of complete databases using btrfs, which helps testing things on customer databases

How to install

  • clone repository to /opt/odoo
  • make a bin file /usr/local/bin/odoo and chmod a+x
#!/bin/bash
sudo -E /opt/odoo/odoo "$@"
  • make entry `/etc/sudoers.d/odoo
Cmnd_Alias ODOO_COMMANDS_ODOO = /usr/bin/find *, /opt/odoo/odoo *, /usr/bin/btrfs subvolume *, /usr/bin/mkdir *, /usr/bin/mv *, /usr/bin/rsync *, /usr/bin/rm *,  /usr/bin/du *, /usr/local/bin/odoo *, /opt/odoo/odoo *, /usr/bin/btrfs subvol show *, /usr/sbin/gosu *
odoo ALL=NOPASSWD:SETENV: ODOO_COMMANDS_ODOO

Make new empty odoo

  • make an empty directory and cd into it
  • then:
odoo init
  • You will be asked for a version, then building begins
  • After that:
odoo reload
odoo -f db reset
odoo up -d
  • Then you should see the odoo instance empty at http://localhost:80

Store settings not in ~/.odoo but local inside the current directory in .odoo

This is excellent for jenkins jobs where different branches are tested.

odoo reload --local --devmode --headless --project-name 'unique_name'

How to extend an existing service

  • make a docker-compose file like ~/.odoo/docker-compose.yml
services:
  odoo3:
    labels:
      compose.merge: base-machine
    environment:
      WHAT YOU WANT
    volumes:
      WHAT YOU WANT

Example for fixed ip addresses

services:
    proxy:
        networks:
            network1:
                ipv4_address: 10.5.0.6
networks:
    network1:
        driver: bridge
        ipam:
            config:
                - subnet: 10.5.0.0/16

Some labels

services:
    new_machine:
        ...
        labels:
          odoo_framework.apply_env: 0  # do not apply global environment from settings here

Project details


Release history Release notifications | RSS feed

This version

0.2.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wodoo-0.2.4.tar.gz (91.8 kB view details)

Uploaded Source

Built Distributions

wodoo-0.2.4-py3-none-any.whl (158.9 kB view details)

Uploaded Python 3

wodoo-0.2.4-py2.py3-none-any.whl (156.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file wodoo-0.2.4.tar.gz.

File metadata

  • Download URL: wodoo-0.2.4.tar.gz
  • Upload date:
  • Size: 91.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for wodoo-0.2.4.tar.gz
Algorithm Hash digest
SHA256 1fc0589ef14156da403419a2358948b19f6fca79f622c3c91fd5790002d96d3d
MD5 14a5d3e821845dae1d523bcd36af06d9
BLAKE2b-256 76d65dc51a3a4e0019072af8ebac8f6e99f164776e1a689d28e8e5a8a12d81fa

See more details on using hashes here.

File details

Details for the file wodoo-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: wodoo-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 158.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for wodoo-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 897d6064ed60649611daa7ccb4dfdaf1edb04250357ed48b725b691d3a9382ec
MD5 9ddeb5577bdd30f8ec4f59691a841fb0
BLAKE2b-256 3052b278270cc8aaea8b26d97a11f0084faecc05071a852a810d2e6717b3504c

See more details on using hashes here.

File details

Details for the file wodoo-0.2.4-py2.py3-none-any.whl.

File metadata

  • Download URL: wodoo-0.2.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 156.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for wodoo-0.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa30333ca724a370b1501ace02b9f0e26c52f94f040c84dfae26145cb627e473
MD5 1a11293a140accfde90b620c6c774dc8
BLAKE2b-256 bddaeabffe479ed809c3bc3bfe966865ba411f545e8f3e6283d62bb70a99581e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page