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.3.tar.gz (3.4 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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odoogci-0.2.3.tar.gz
  • Upload date:
  • Size: 3.4 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.3.tar.gz
Algorithm Hash digest
SHA256 eb53e4829a218ded5e9638bc4907702bba10a9c87ac43ddf631d741694c99cd9
MD5 dbb7265b96975ddf7966436c7080bc11
BLAKE2b-256 3740ac6ef12d10d02bb38bab27bd780161e916a02b73205133a4dfc1579f977d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: odoogci-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 94acb441a2266c1a58a92445028187532408f2e0c0376ac2b60f3d3db0013c2f
MD5 3ff949a1b5a049e6b523202fce6ddea7
BLAKE2b-256 29ce3e507a3cf0f62516048fd542595e2a8d58960e69999a2afe4d6f2fc927bc

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