Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D Dev Documentation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • crnd-public
  • Dev Documentation
  • Wiki
  • Odoo Packager

Odoo Packager · Changes

Page history
Create Odoo Packager authored May 29, 2019 by Dmytro Katyukha's avatar Dmytro Katyukha
Hide whitespace changes
Inline Side-by-side
Odoo-Packager.md 0 → 100644
View page @ fc388d1a
# Odoo Packager
Program that fetches Odoo addons from various sources and saves them in
single git repository. Designed to work as gitlab build tool.
For detailed documentation look at [Docker Image repo](https://gitlab.crnd.pro/crnd/docker/odoo-apps-packager)
## Docker image
- [Odoo Apps Packager](https://gitlab.crnd.pro/crnd/docker/odoo-apps-packager)
## Configuration format
The configuration file for packager have to be placed into the root of repository
and named `odoo-packager.yml`
This configuration file use [YAML](https://yaml.org/) syntax and have following format:
```yaml
// Example odoo-packager configuration
addons-list:
// Usualy contains list of addon names
- generic_condition
- generic_rule
- website_snippet_anchor
- website_legal_page
// In specific cases you can specify source to get addon from.
- name: crnd_web_diagram_fix
source: crnd-web
- name: website_logo
source: website_logo
- auth_saml
// List of git repositories to fetch addons from.
git-sources:
// Usually it is enough to specify repository url only
- url: "https://github.com/crnd-inc/generic-addons"
- url: "https://github.com/OCA/website"
// also we can specify name for repository,
// that could be used to reference this repository
// in addons-list section.
- url: "git@gitlab.crnd.pro:crnd/crnd-web"
name: "crnd-web"
// Also it is possible to specify branch to of repository to be clonned.
// It is possible to specify one repository multiple times with different branches.
// There is specific parametr 'no_search' which means that this repository
// will not take part in search of source for addon. It will be used as source
// only if it is manually specified as source for addon (in addons-list)
- url: "https://github.com/eslAmer/website"
branch: "12.0-mig-website_logo"
no_search: true
name: "website_logo"
// There are some shortcuts available.
// This is shortcut for OCA repositories located under github.com/OCA
// and internaly it will be converted to
// url: "https://github.com/OCA/server-auth"
- oca: server-auth
// There is one more shortcut available: 'github'.
// specification below will be automatically converted to
// url: "https://github.com/OCA/web"
- github: OCA/web
```
## Addon encription
Encription of addons is managed via environment variables.
To tell packager that addon `my_addon` have to be encrypted via [PyArmor](https://github.com/dashingsoft/pyarmor)
you have to specify following environment variable:
```
ARMOR_ADDON_my_addon = 1
```
As we can see, variable name consists of two parts separated by underscore (`_`):
1. `ARMOR_ADDON` which tells packager that some addon have to be encrypted
2. `my_addon` - name of addon that have to be encrypted.
Thus if you need to encrypt multiple addons, you have to specify one variable per addon.
Clone repository
  • CI Review App
  • Development Process
  • File Templates
    • .gitignore
    • gitlab ci.yml
    • odoo packager.yml
  • Odoo Packager
  • Set up develpment environment
  • Useful Links
  • Home
  • Процеси
    • Процес створення нового модуля в новому репозитарії
  • Тестові задачі
    • KPI
    • OKR
    • Weather Measurement
    • Робоче місце охорони