Coder Social home page Coder Social logo

pierrealainkouakou / dinar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itpp-labs/dinar

0.0 0.0 0.0 367 KB

Docker based runbot-like solution for odoo addons repositories

License: Apache License 2.0

Shell 31.66% Python 68.04% Dockerfile 0.29%

dinar's Introduction

DINAR

DINAR Is Not A Runbot.

DINAR helps you to configure Github Actions to maintain Odoo addons.

  • deploy common files (e.g. pre-comming config)
  • run checks in pull requests
  • preview pull requests
  • port modules to next Odoo version

Usage

  • Fork DINAR

  • Set secrets

    • BOT_TOKEN -- github token with push access to the repos
    • BOT_NAME -- Optional. Default Github Actions
    • BOT_EMAIL -- Optional. Default [email protected]
  • Make config.yml file to list repositories and set other settings. See config.example.yml for details.

  • Check Actions tab in the fork

  • In your repositories: set secrets:

    • DINAR_TOKEN -- with access write:packages, read:packages
  • In your repositories: send new PR or rebase existing one

Repository structure

  • .github/workflows/:

    • DINAR2fork.yml -- checks for updates in DINAR and makes PR to your fork
    • fork2repos.yml -- Github Workflow to install forked DINAR to your repositories
  • static-files/ -- copy and push to a repo with overwriting. Mandatory files to make the system work.

    • all/ -- files for any version
    • 10.0/, 11.0/, etc -- version specific files
  • editable-files/ -- copy and push to a repo without overwriting. The files can be modified per repository.

  • embedded-files/ -- copy to a repo without overwriting. The files used on generating Docker images and normally shall not be modified per repository.

  • workflow-files/ -- scripts that can be used from workflows without coping.

  • local-files/ -- files to download to maintainer's machine to work with the dockers locally

Docker images

DINAR builds and push docker images to Github Packages. It works only for stable branches (e.g. 12.0) and branches marked with -dev- code (e.g. 12.0-dev-some-new-feature). Examples of docker images for 12.0 branch of repo-name repository:

  • dinar-odoo-repo-name:12.0-base - base odoo image with dependencies: installs packages and fetches repositories. It uses settings from .DINAR/image/.

  • Odoo and postgres images with preinstalled modules specified in manifest's depends attribute plus modules listed in addons.include attribute of .DINAR/config.yaml.

    • dinar-odoo-repo-name:12.0, dinar-db-repo-name:12.0 -- modules are installed with demo data
    • dinar-odoo-repo-name:12.0-nodemo, dinar-db-repo-name:12.0-nodemo -- modules are installed without demo data

dinar's People

Contributors

yelizariev avatar trojikman 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.