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 fromrequirements.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoogci-0.2.5.tar.gz.
File metadata
- Download URL: odoogci-0.2.5.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.14.4 Linux/7.0.3-arch1-2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6138209050f6d347668527e3968ff6980406be3d1a75d3a7aab35e0a524db88a
|
|
| MD5 |
9a8c68065ed2bef5b0bb93adac33f1ce
|
|
| BLAKE2b-256 |
bfaf66e4318770ae77c42a934631fdf0db3634f06edb81b9944913535d1fada6
|
File details
Details for the file odoogci-0.2.5-py3-none-any.whl.
File metadata
- Download URL: odoogci-0.2.5-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.14.4 Linux/7.0.3-arch1-2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220ef0814f3253a73972e12d555b9d4a2fe4cef482c53ee02ee54a9975f79ad3
|
|
| MD5 |
f744715f5af754b21e6d78cd19b5904c
|
|
| BLAKE2b-256 |
17c0b22b6e0ff08fc027306dc4580df953896851efda819990b0feda5a5604f7
|