odoo-deploy
Stateless CLI tool that consumes a per-company project repository and produces deployment-ready Odoo artifacts.
Status: pre-alpha. Design complete; init, info, aggregate, the action subcommands (run/start/stop/status/test/update/install), build (zip / docker / podman), and the project-ops subcommands (lint, up/down/restart/logs/ps/compose, db …, module …) are all implemented.
What it does
odoo-deploy init— creates a project repository (project.yaml+repos.yaml+ stubs).odoo-deploy aggregate— re-aggregates sources fromrepos.yamlintoparts/and symlinks found modules intoaddons/(sat-style: no hook framework, optionalwhitelist/blacklist).odoo-deploy run | start | stop | status | test | update | install— operate on a dev Odoo instance against a project repo.odoo-deploy build zip | docker | podman— produce a deployment artifact. Images are tagged with the build date in ISO format (--tagfor a custom tag, plus:latest) and pushed with--pushto the registry named byimage_baseinproject.yaml. Seedocs/global-design.mdfor the tagging and environment model.odoo-deploy info— show supported Odoo versions and the catalog.odoo-deploy install-dev-requirements— (run withsudo, Debian/Ubuntu only) install the developer requirements: git, python build deps, and docker or podman with compose (--runtime podman). Python ≥ 3.11 + venv/pip are a prerequisite, not installed by it.odoo-deploy lint— run pre-commit against all files (port ofinvoke lint).odoo-deploy up | down | restart | logs | ps | compose …— manage the compose environments defined in the project repo (compose/<env>.yaml);--envselects the environment (defaultdevel). Ports ofinvoke start/stop/restart/logs.odoo-deploy db reset | prepare | snapshot | restore— database operations inside the composeodooservice (ports of the doodba invoke tasks; Odoo ≥ 20 usesodoo db drop/duplicate, older usesclick-odoo-*).odoo-deploy module update-pot | uninstall— translation POT update (with .po date stripping + pre-commit) and module uninstall, inside the composeodooservice.
Container images ship wkhtmltopdf + paper-muncher (amd64) for PDF reports, and the image entrypoint dispatches any binary on PATH (doodba direxec-style), so docker compose run --rm odoo <cmd> works for both odoo-bin subcommands and tools like click-odoo-initdb or psql.
All artifacts are self-contained: no git-aggregate, git, or other build tooling is needed at runtime — all code is baked in at build time.
The catalog
catalog/<odoo_version>.yaml holds per-Odoo-version knowledge: minimal + recommended Python, tool-level pip pins (requirements_extra), notes. The catalog is the tool's only source of truth for version compatibility. Edit the files directly; the tool picks up changes on next run.
Supported Odoo versions today: 17.0, 18.0, 19.0, 20.0 (verify 17.0/18.0 against upstream release notes before relying on them).
Install (development)
Prerequisite: Python ≥ 3.11 with python3-venv and python3-pip — Debian ≥ 12 (bookworm, python3 = 3.11) and Ubuntu ≥ 24.04 LTS (noble, python3 = 3.12) ship python3 ≥ 3.11 by default; on both, sudo apt install python3-venv python3-pip is still needed (they are not in the default install).
git clone https://forgejo.openeyedev.eu/OpenEyeDev/odoo-deploy.git
cd odoo-deploy
# Create a venv at the version in `python-version` (currently 3.12 —
# this is the Python the *tool* runs on; instances it builds may use
# different versions per the catalog).
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e .
Then:
odoo-deploy --help
odoo-deploy info
odoo-deploy init --project acme --odoo-version 20.0
Architecture
See docs/manual/ for the hands-on manual (design → production, buildable to HTML/PDF), docs/architecture/ for the C4 model (Structurizr DSL + rendered diagrams, incl. the end-to-end deployment flow) and docs/cli-design.md for the full CLI design (subcommands, catalog format, init spec, build model). Operator runbooks live in docs/runbooks/ — e.g. installing a staging/prod instance from a prebuilt image with docker or podman compose.
Relationship to sat (software-atrium)
software-atrium (sat) is a bare-metal Debian server-administration toolkit. sat clones OpenEyeDev/odoo-deploy to seed each Odoo instance, then layers server setup (PostgreSQL, systemd, nginx, certbot, OS deps) on top.
In the current state:
- sat's install scripts read
${INST_BUILD_DIR}/repos.yaml(the template shipped in this repo's root) and callgitaggregatedirectly. bin/build(the legacy sat-style script at this repo's root) is what instances inherit via the clone. It's the live script — not vestigial.
The long-term plan is for sat's install scripts to call odoo-deploy init + odoo-deploy aggregate instead of inline git-aggregate logic. aggregate is implemented, so this switch is no longer blocked.
License
AGPL-3.0-or-later. See LICENSE.
Conventions
.yamlextension throughout (not.yml— the 3-letter abbreviation is a DOS-era remnant).- Tool runs on Python ≥3.11, independent of the Python versions in the catalog (which are for the Odoo instances being built).
- Stateless tool. The project repository IS the state; the tool tracks no environments itself.
- Flat subcommand structure — no
dev <action>nesting. Action subcommands are top-level:odoo-deploy run,odoo-deploy install, etc. - Migrations between major Odoo versions are out of scope for now — each major version is its own deployment branch (
deploy-<version>) and image line. Seedocs/global-design.md.
Metadata
Release files for odoo-deploy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| odoo_deploy-0.1.0.tar.gz | 1.4 MB | Without provenance | Details for odoo_deploy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_deploy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for odoo_deploy-0.1.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / odoo_deploy-0.1.0.tar.gz
| Download URL | odoo_deploy-0.1.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d461bc2add9b8e1b4a0d9dace32bab89c2a79376c151e65ad4846460def7a5f
|
|
BLAKE2b-256 checksum How to use checksums |
afc345197c0b22e28cc73ad4361849365ef00641b70a647ceac8d24af3c0d8d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / odoo_deploy-0.1.0-py3-none-any.whl
| Download URL | odoo_deploy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 99.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea9ef62109f1605bd0c18377c0be6598adcd527c0d388fddb5d9750e397d8ddf
|
|
BLAKE2b-256 checksum How to use checksums |
65c6a876d86ef20e0c4301703355d72bf8f0201ad5d1b7d062cfd7cccec002ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for odoo-deploy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.