Commit Graph
87 Commits
Author SHA1 Message Date
Janik von Rotz bdd83120b7 fix(task): ensure migration script continues on update-module failure
- Modify `migrate` function to prevent exit on `update-module` command failure
- Adjust `remove-ssh-key` script to improve SSH agent detection and cleanup
- Maintain compatibility with existing SSH key handling behavior
2025-11-24 13:50:34 +01:00
Janik von Rotz a5a5b9dd28 fix(odoo): add enterprise path to addons path configuration 2025-11-17 21:50:28 +01:00
Janik von Rotz 69f31d8f61 fix(odoo): improve version regex matching and update documentation 2025-11-17 21:47:54 +01:00
Janik von Rotz d46802c670 feat(ssh): add support for configurable SSH key algorithm and improve key handling 2025-11-13 19:42:04 +01:00
Janik von Rotz 1b5c16d0f1 feat(revision): introduce ODOO_ENTERPRISE_PATH environment variable to configure enterprise modules path 2025-11-10 17:05:57 +01:00
Janik von Rotz 8cab4c9c4e feat(revision): introduce ODOO_ENTERPRISE_PATH environment variable to configure enterprise modules path 2025-11-10 17:03:32 +01:00
Janik von Rotz 4a0528f347 feat(revision): add support for WITHOUT_DEMO environment variable to skip demo data during tests 2025-11-07 17:40:52 +01:00
Janik von Rotz 4e63b479ff feat(revision): add support for WITHOUT_DEMO environment variable to skip demo data during init 2025-11-07 17:33:20 +01:00
Janik von Rotz 2d7dedfaa4 feat(revision): replace find command with ripgrep for faster manifest search 2025-11-07 11:27:57 +01:00
Janik von Rotz 0bf782b78f feat(task): add aggregate-git-folders command and improve activate-venv handling
- Add new command `aggregate-git-folders` to run gitaggregate for provided repos.yaml
- Make `activate-venv` a default call for all commands by moving it to the main execution block
- Remove redundant `activate-venv` calls from individual functions
- Improve `activate-venv` function with better error handling and messaging
- Update CHANGELOG.md to reflect the changes
- Fix regex pattern in install-requirements for requirements.txt file detection
- Set default language for Odoo initialization via environment variable
- Remove deprecated `activate-venv` call from version command
2025-11-07 10:54:55 +01:00
Janik von Rotz be51a8263a feat(odoo): support multiline PYTHON_INSTALL and update test dependencies
- Extend `PYTHON_INSTALL` parsing to handle both comma and newline-separated formats
- Update documentation to reflect new multiline support for `PYTHON_INSTALL`
- Modify `install-python-packages` script to differentiate between input formats
- Update test case to use `prometheus-client,pyjwt` as example dependencies
- Improve flexibility for users specifying multiple Python packages via env var
2025-11-05 14:23:02 +01:00
Janik von Rotz 4a1edfa5fe feat(odoo): improve addons path resolution and update documentation
- Refactor `set-addons-path` script to use more robust manifest filtering
- Filter modules by Odoo version using `ripgrep` for better performance
- Ensure unique and sorted addon paths in final configuration
- Update `README.md` with detailed `pyproject.toml` example
- Document `repos.yml` usage for git-aggregator
- Improve code readability and maintainability in path resolution logic
2025-11-05 13:50:19 +01:00
Janik von Rotz e8072520e8 feat(task): remove setup-mail command and move script to Odoo image
- Removed `setup-mail` command from taskfile
- Moved `setup-mail` script to Odoo image scripts directory
- Updated Dockerfile to copy `setup-mail` from new location
- Updated README to reflect new location of `setup-mail` script
- Modified `init-db` script to conditionally execute mail setup only when database is initialized
- Added proper shebang line to `setup-mail` script
2025-11-05 08:35:56 +01:00
Janik von Rotz 3039bc07df feat(odoo): add script to install Python packages with uv and PyPi check 2025-11-03 10:09:00 +01:00
Janik von Rotz 70b69876de feat(odoo): standardize log function calls in download-git-archive script
- Replace `log_entrypoint` with `log-entrypoint` for consistency
- Ensure uniform error and info logging throughout the script
- Maintain existing functionality and download logic
2025-11-03 09:50:52 +01:00
Janik von Rotz 46156c7066 chore(deps): migrate from requirements.txt to pyproject.toml and uv lock
- Remove `requirements.txt` in favor of `pyproject.toml` dependencies
- Add `uv.lock` file for dependency resolution
- Update `task` script to use `uv sync --active` instead of `uv pip install -r requirements.txt`
- Replace `install-python-packages` script with `sync-python-project` in Odoo image
- Modify Python package installation logic in Odoo container to use `uv sync` with `pyproject.toml`
- Adjust test cases in `task` script to validate new Python project syncing
- Update documentation to reflect changes in Python dependency management
2025-10-31 13:44:13 +01:00
Janik von Rotz edb4822012 feat(images/odoo): optimize enterprise module download and update dependencies
- Refactor download-git-archive script to skip redundant downloads using .last_ref tracking
- Enforce bash coding conventions: lowercase variables, proper quoting, and modern conditionals
- Update enterprise, odoo, and themes submodule references
- Bump Python version from 3.10 to 3.11 for version 17.0
2025-10-30 14:19:34 +01:00
Janik von Rotz aaa23bde68 chore(odoo): refine database initialization and SSH key removal logic 2025-10-29 20:12:49 +01:00
Janik von Rotz 069648b278 feat(images/odoo): enforce bash coding conventions and improve git config handling
- Enforce bash coding conventions across all scripts as outlined in new AGENTS.md
- Convert local variables to lowercase and use proper quoting
- Update conditionals to use `[[ ... ]]` and remove `function` keyword
- Add support for setting git author name and email via env vars
- Improve SSH key handling and git operations
- Update documentation and changelog to reflect changes
2025-10-29 19:03:23 +01:00
Janik von Rotz f565b36a85 feat(odoo): improve logging and path resolution in set-addons-path script 2025-10-28 17:48:41 +01:00
Janik von Rotz 33feedad16 feat(odoo): update default values for LOGFILE and gevent memory limits 2025-10-28 15:33:29 +01:00
Janik von Rotz 83c7e03b35 feat(odoo): remove editable install flag and update enterprise module path 2025-10-28 13:27:59 +01:00
Janik von Rotz 6bc1dc0dd8 fix(odoo): prepend extra-addons and enterprise paths in set-addons-path script
- Update log messages to reflect that paths are prepended rather than appended
- Remove redundant conditional check and streamline addons path combination
- Add test case for set-addons-path execution and addons path validation
2025-10-24 09:57:10 +02:00
Janik von Rotz c5a4861b8d fix(odoo): enhance addons path resolution with logging and version filtering 2025-10-24 09:50:29 +02:00
Janik von Rotz 9685115a78 fix(ci): add odoo image test step and improve ssh key handling scripts
* Add `test-image` step in build workflow to validate Odoo image before push
* Improve logging in `add-ssh-key` script by clarifying log message
* Enhance `remove-ssh-key` script with safety checks for SSH agent and file existence
* Fix typo in `test-image` task function for correct image path matching
* Clean up unnecessary blank line in `test-image` task function
2025-10-22 11:46:25 +02:00
Janik von Rotz 22653d3c85 fix(scripts): improve clone-git-addons script reliability and logging
* Remove `set -e` to prevent premature exit on non-error conditions (e.g., git pull with no changes)
* Enhance logging by displaying the full Git URL instead of partial components
* Maintain consistent behavior during addon repository cloning and pulling operations
2025-10-22 09:49:53 +02:00
Janik von Rotz 13665f7cf6 fix(tests): streamline requirement installation and improve script reliability 2025-10-22 09:40:29 +02:00
Janik von Rotz 50a4751424 fix(scripts): remove redundant log entry in init-db script
* Remove unnecessary debug log statement that was cluttering the output
* Keep only essential logging for database existence check
* Align with cleaner logging practices used elsewhere in the codebase
2025-10-21 20:15:37 +02:00
Janik von Rotz 76a8a75f20 fix(scripts): add set -e to all shell scripts and correct variable assignments in template-odoo-rc 2025-10-21 19:59:34 +02:00
Janik von Rotz c65efae758 fix(config): add missing DB_NAME environment variable assignment in template-odoo-rc
* Introduce `DB_NAME` with empty string as default value to align with other environment variable assignments
* Ensure consistency in environment variable declaration pattern within the template script
2025-10-21 19:23:25 +02:00
Janik von Rotz 47fde7fec2 fix(config): correct LOG_HANDLER and LOGFILE variable assignments in template-odoo-rc
* Fix incorrect assignment of `LOG_HANDLER` and `LOGFILE` which were mistakenly using `LIST_DB`'s value
* Ensure each environment variable is assigned its intended default value
* Align with existing pattern of self-referential default assignments for consistency
2025-10-21 18:18:21 +02:00
Janik von Rotz 5509aaeede feat(config): add support for custom odoo.conf sections via env vars
- Introduce `ADDITIONAL_ODOO_RC` to append custom config to main section
- Introduce `IR_CONFIG_PARAMETER` to append to ir config section
- Move SSH key parameters from separate variables to `IR_CONFIG_PARAMETER`
- Update documentation and examples for new configuration options
- Fix inconsistent heading in README from "Test" to "Testing"
2025-10-21 17:26:34 +02:00
Janik von Rotz 0fbbd5e1b3 feat(config): reorganize environment variables in template-odoo-rc
- Move SMTP and email-related variables to top section for better readability
- Add new environment variables: DB_MAXCONN, WITHOUT_DEMO
- Remove duplicate SMTP and email variable declarations from lower section
- Maintain existing default values and structure
2025-10-21 17:03:59 +02:00
Janik von Rotz 26b1f56d7f feat(revision): release 18.0.20251008 2025-10-21 11:55:26 +02:00
Janik von Rotz 88bae82403 feat(revision): release 16.0.20251008 2025-10-21 11:50:22 +02:00
Janik von Rotz 4f3707016e feat(images/odoo): remove PYTHON_INSTALL_ADDONS_REQUIREMENTS and support test-requirements.txt for setup-tests 2025-10-19 20:57:00 +02:00
Janik von Rotz 1aab888d4a feat(odoo): add support for new environment variables to configure database connections, logging, and memory limits 2025-10-16 09:39:30 +02:00
Janik von Rotz 88441d55ac fix(odoo): remove --no-cache-dir from uv pip install to allow caching 2025-10-15 12:02:39 +02:00
Janik von Rotz 772da3ab64 feat(odoo): add PYTHON_INSTALL_ADDONS_REQUIREMENTS to install requirements.txt from addons 2025-10-15 12:00:24 +02:00
Janik von Rotz 3b6961c99e feat(odoo): split SSH key management and move git-aggregator to entrypoint 2025-10-15 11:45:14 +02:00
Janik von Rotz a18c8cde39 feat(odoo): support git-aggregator and rename ENVIRONMENT to RUNNING_ENV 2025-10-15 11:23:44 +02:00
Janik von Rotz ee34720f8b feat(revision): release 18.0.20251008 2025-10-15 10:40:31 +02:00
Janik von Rotz 1676949553 feat(revision): release 18.0.20251008 2025-10-15 10:31:28 +02:00
Janik von Rotz 723c98c3f3 feat(odoo): add git-aggregator support and prefix entrypoint echos with ENTRYPOINT 2025-10-15 10:05:39 +02:00
Janik von Rotz 276b238228 feat(odoo): add support for automatic modules list update and improve database initialization checks
- Added `AUTO_UPDATE_MODULES_LIST` environment variable to trigger modules list update on container start
- Created new `update-modules-list` script to refresh available modules from addons path
- Introduced `check-database-initialized` utility script to verify database initialization status
- Refactored database initialization and module operations to use the new check
- Updated documentation to include new functionality and commands
- Added git-aggregator to requirements for improved dependency management
- Updated compose template and task scripts to support the new functionality
2025-09-27 14:05:33 +02:00
Janik von Rotz c58a7761b4 feat(revision): release 18.0.20250909 2025-09-12 13:39:58 +02:00
Janik von Rotz 9a2e17a20f feat(revision): release 19.0.20250909 2025-09-12 12:02:10 +02:00
Janik von Rotz 0ee34f0934 feat(build): refactor docker build process and remove upgrade-util library 2025-09-05 16:30:02 +02:00
Janik von Rotz bea7bcd186 fix(init-db): remove unnecessary logging punctuation and whitespace 2025-09-02 13:53:16 +02:00
Janik von Rotz 4de6640b59 Merge branch 'main' into feature/database-init-rebase 2025-09-02 11:37:56 +02:00