Add COMPOSER_EXTRA_PACKAGES env var for runtime package installation in Docker#1138
Conversation
…ontainers Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
|
@copilot Add documentation on how to use it to the email documentation page, and also add text how to install a package when Part-DB is directly installed (not inside docker) |
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Added documentation to |
|
@copilot Ensure that no dev packages get installed |
|
This fixes issue #1132 |
…ation Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
|
@copilot --no-dev does not work with require. Use --no-install and run an install command afterwards |
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1138 +/- ##
============================================
- Coverage 58.34% 58.33% -0.02%
Complexity 7286 7286
============================================
Files 580 580
Lines 23193 23193
============================================
- Hits 13533 13530 -3
- Misses 9660 9663 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Plan: Add support for installing additional composer packages in Docker containers
This addresses issue #1132 - allowing users to install additional mailer packages (like symfony/mailgun-mailer) without rebuilding the Docker image.
Checklist:
.docker/partdb-entrypoint.shto support installing additional composer packages via env variable.docker/frankenphp/docker-entrypoint.shfor frankenphp supportdocs/installation/installation_docker.md) with instructions and examplesImplementation Summary
Added Features:
COMPOSER_EXTRA_PACKAGESenvironment variable support in both Docker entrypoint scriptscomposer require --no-installfollowed bycomposer install --no-devto prevent dev dependencies from being installedTechnical Implementation:
composer require --no-installto update composer.json/composer.lock without installingcomposer install --no-devto install packages without dev dependenciesDocumentation Updates:
docs/installation/email.mdexplaining how to install additional mailer packages for both Docker and direct installationOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.