GithubHelp home page GithubHelp logo

docker-odoo's Introduction

docker-odoo

Requirements

Docker

Install Docker by packagemanager

apt-get install docker

Docker Compose

Install Docker Compose by Python pip. To get latest stable version.

pip3 install docker-compose

Project Bootstrap

  1. Fork this repo to <PROJECT>-docker-odoo
  2. git clone <PROJECT>-docker-odoo
  3. cd <PROJECT>-docker-odoo
  4. Edit docker-compose.yml. Change (Odoo) ports mapping.
  5. Edit docker/db/Dockerfile.
    • Change PostreSQL version.
  6. Edit docker/odoo/Dockerfile
    • Change Ubuntu version
    • Add/change OS and Python packages

Build (init)

Following commands/actions can run at same time.

  1. ./init
  2. Put the Odoo sources under <PROJECT>-docker-odoo/odoo
    • git clone <GIT-REPO>
  3. Put the Odoo addons (custom, external) under <PROJECT>-docker-odoo/addons

Start services (run)

  • ./run

Wkhtmltopdf

In case of troubles (layout, styling), rename or remove the report.url System parameter.

Python debugger (pdb)

The debugger is running inside the container, so we need to attach into the container to use it.

  1. Find the container id using docker container ps and copy the first two or three letters of the container id column.
  2. Use the command docker attach CONTAINER_ID to attach to the container.

Ensure following are set in docker-compose.yml:

stdin_open: true
tty: true

(?) Filesystem mapping Docker Container => Host

Following on host:

  • Edit: /etc/docker/daemon.json {'userns-remap': 'bob'}

Check uid/groupid user. Change to 1000000 (very big int).

  • Edit: /etc/subuid bob:<UID>:1000000

  • Edit: /etc/subgid bob::1000000

docker-odoo's People

Contributors

bobslee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.