Giter Club home page Giter Club logo

odoo-docker's Introduction

Custom Odoo Docker Setup

Set of docker images and some sample docker-compose files for Odoo.

Directories layout:

├── base :       Base image for Odoo, OCB and OpenUpgrade
├── ocb-oca :    docker image for **OCB + OCA modules**
├── openupgrade-oca : docker image for **OpenUpgrade + OCA modules**
├── odoo-ee :    docker image for **Odoo EE**

Update the images in the CI

By default during the rebuild, the previous images are used. If you want to trigger a full rebuild of the base Debian image, the Odoo code and modules code, you just have to update the LASTBUILD variable in the Dockerfile of the debian base image

Locally build the docker images

First checkout this repository:

git clone https://github.com/anybox/odoo-docker
cd odoo-docker

Choose the version you want:

git checkout 12.0

Read the help of the available commands

make help

Build the base Odoo image:

cd odoo
make build

Either build the image with additional OCA modules:

cd odoo-oca
make build

Or build the image with only Enterprise Edition:

cd odoo-ee
make build

Start Odoo and PostgreSQL

make init
make run

Then open on a browser on your local machine:

firefox http://localhost:8069

Stop Odoo

make stop

Destroy the application and all data

make destroy

Restore db

docker cp backup.dump odoo_db_1:/tmp/
docker-compose exec --user db postgresql pg_restore --role odoo -O -Fc -d odoo /tmp/<dumpfile>
docker-compose exec postgresql rm /tmp/<dumpfile>

Update all

docker-compose run --rm odoo -u all --stop-after-init

Reset password

docker-compose exec --user db postgresql psql odoo -c "update res_users set password='admin' where login='admin';"

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.