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.2.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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odoogci-0.2.2.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.18.9-arch1-2

File hashes

Hashes for odoogci-0.2.2.tar.gz
Algorithm Hash digest
SHA256 833a430ac1678513ebd55de1c42f11706bda774d010b3fc81d7ca0ac329f51f7
MD5 bb04a10d044744be9bff1ae1e0c6e25c
BLAKE2b-256 e71ffd666948d416fa01964fde2c8e42a13639b17920369eeb20fca018c7cd61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: odoogci-0.2.2-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.18.9-arch1-2

File hashes

Hashes for odoogci-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1fbc9545dd98de667bc23998e30c7be01789a7c6b1b345cf04ea39b5780272ad
MD5 e41ee9912ae5e517c17b1b890da58167
BLAKE2b-256 304984b8b6d0cf04b837807feb1c66afb0c4d24df240842c5bed2f003910700c

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