Skip to main content

Utility to clone odoo modules repository with requirements installation

Project description

odoogci

A utility for cloning Git repositories, removing unnecessary files, and installing dependencies from requirements.txt. It is specifically designed to facilitate building Odoo Docker images.

Requirements

Ensure you have the following tools installed on your system:

  • Python ^3.9
  • Git
  • pip (Python package manager)

Installation

Via pipx (Recommended for CLI)

pipx install odoogci

Via pip

pip install odoogci

In a Dockerfile (From source)

Add the following line to your Dockerfile:

RUN pip3 install git+https://gitlab.com/alitux/odoogci.git

Usage

The general usage of the tool is:

odoogci [URL] [OPTIONS]

Arguments

  • URL: URL of the repository to clone.

Options

  • --branch TEXT: Branch of the repository.
  • --repositories TEXT: JSON string with a list of repositories to clone.
  • --requirements / --no-requirements: Install dependencies from requirements.txt. [default: no-requirements]
  • --repopath TEXT: Local path where the repository will be cloned.
  • --token TEXT: Access token for the repository (supports GitHub and GitLab).

Examples

Simple Clone

odoogci https://github.com/ingadhoc/odoo-argentina --branch 16.0

Clone Multiple Repositories using JSON

odoogci --repositories '[
    {
        "url": "https://github.com/org/repo1",
        "branch": "18.0",
        "repo_path": "repo1"
    },
    {
        "url": "https://github.com/OCA/commission",
        "branch": "18.0",
        "repo_path": "oca/commission"
    }
]'

Usage in a Dockerfile

RUN cd /usr/lib/python3/dist-packages/odoo/addons/ && \
    odoogci https://github.com/ingadhoc/odoo-argentina --branch 16.0 && \
    odoogci https://github.com/ingadhoc/account-invoicing --branch 16.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odoogci-0.2.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoogci-0.2.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file odoogci-0.2.4.tar.gz.

File metadata

  • Download URL: odoogci-0.2.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.19.8-arch1-1

File hashes

Hashes for odoogci-0.2.4.tar.gz
Algorithm Hash digest
SHA256 23ce3a3981b511ab6f624d49896f0481a3de86bb56bb0ea48362d5fcbf57b1e9
MD5 0909a3bdee35e7f2b592baab091b015a
BLAKE2b-256 d314569d58937502e96d9f2ae94ae28a7e5d501b2e1183cdf3442b4a0e50e4a3

See more details on using hashes here.

File details

Details for the file odoogci-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: odoogci-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.19.8-arch1-1

File hashes

Hashes for odoogci-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 108dab0e49a59a0761a55e3416586e615ccb673a0f28caa98d7c29bf106bb512
MD5 f32897967398eeb4da3992b053659f4f
BLAKE2b-256 0d54e1483e524d2c2d7b21702bd4f31c1cdb4d18b438cf8df54d9030bf7d2d64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page