-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
It would be great to add a way to install additional extensions.
For example: vimeo/php-mysql-engine have errors with PDO::MYSQL_ATTR_INIT_COMMAND, since it comes with pdo_mysql extension.
Base docker image (php:7.4-alpine) have docker-php-ext-install which will do the job, ex. docker-php-ext-install pdo_mysql will download tools, compile extension, install it and delete tools; also tests will pass ;)
I tried to do it by myself and found out some ways to get extension installed before running test:
- using custom docker image: use vimeo/psalm-github-actions as a base + install of some extensions
as result every person/project will come with it's own custom image, think it's not a best way - install some extensions during vimeo/psalm-github-actions docker image build
also isn't correct way because many users would like to add many extensions, so resulting image will be full of php-extensions - pass list of needed extensions to
entrypoint.shto install before running test
this is will not make image huge, but running tests (ex. at CI of vimeo/php-mysql-engine) will be more time- and cpu-consuming; also it isn't that simple (at least for me) to pass "list of string to shell command as a set of arguments" without security issues (like globbing) with onlyshmanipulations.
bravik and braindawg
Metadata
Metadata
Assignees
Labels
No labels