Giter Club home page Giter Club logo

docker-ocb's Introduction

[WIP] Odoo with all OCA code (OCB + addon repositories)

Docker Stars Docker Pulls

DEPRECATED

This project is being deprecated in favor of https://github.com/Tecnativa/docker-odoo-base, head there now please 😉

Usage

First of all, please read help for yajo/odoo.

Now, on top of that, you have more features in this image.

Additional features

The /opt/odoo/available folder, which holds a lot of code repositories, python-compiled & optimized. The folder structure is $USER/$REPO. You have BTW all OCA addon repositories under /opt/odoo/available/OCA.

addons/enabled contains a handmade selection of repositories enabled by default in all instalations.

Development

Building

./hooks/build

Updating addons

Available addons are git submodules, you can update all of them by:

git submodule update --remote --recursive --init

Enabled addons are just symlinks to the available ones, so just add or remove the symlinks and they will get into the docker image.

Using this for development

You can use this image for development. First of all, clone it and activate its submodules:

git clone --recursive <url>
cd <dir>

Now enter the ./env directory and make copies of all .sample files wihthout the .sample suffix, and replace variables in them. If you want to know what each variable does, consult the docs for the image of the corresponding service under ./development.yml.

Whenever you need to make a PR for any of the submodules, you will want to add your remote, make changes, push... just enter the submodule directory and work as usual.

Useful commands

Start all containers:

docker-compose -f development.yml up -d

Restart Odoo quickly (required when you change Python code):

docker-compose -f development.yml restart -t0 odoo9

Output containers log to the console

docker-compose -f development.yml logs -f --tail 50 # From all containers
docker-compose -f development.yml logs -f odoo9 # Just from Odoo

Stop your whole environment:

docker-compose -f development.yml stop

docker-ocb's People

Contributors

yajo avatar kutyel avatar pedrobaeza avatar

Stargazers

Pablo Alexis Valdivia Muñoz avatar Mohamed M. Hagag avatar

Watchers

James Cloos avatar  avatar  avatar Sergio Teruel Albert avatar Carlos Dauden avatar Rafael Blasco avatar  avatar

docker-ocb's Issues

Improve readme

I think we should add to the README something like this:

Useful commands

docker-compose -f development.yml up -d     # starts all the containers
docker-compose -f development.yml logs -f   # outputs containers log to the console
docker-compose -f development.yml stop      # stops all the containers

Any other idea or improvement that the team (@Tecnativa) thinks is worth adding?

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.