-
Notifications
You must be signed in to change notification settings - Fork 2k
Allow to install extension without enabling it #1018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to install extension without enabling it #1018
Conversation
|
If I want to enable the extension later on calling |
|
In principle yes… but i'm going a bit fast and i tested with an extension already activated. I pass the MR in WIP and I correct as soon as I have time |
|
After doing some more relevant tests I can confirm I did it right. For exemple test with php -m | fgrep bcmath
# <no result>
docker-php-ext-install --no-enable bcmath
# <install output>
php -m | fgrep bcmath
# <no result>
docker-php-ext-enable bcmath
php -m | fgrep bcmath
# bcmathAnother with php -m | fgrep pdo_mysql
# <no result>
docker-php-ext-install --no-enable pdo_mysql
# <install output>
php -m | fgrep pdo_mysql
# <no result>
docker-php-ext-enable pdo_mysql
php -m | fgrep pdo_mysql
# pdo_mysql |
If this is to create custom base images in a CI pipeline to speed up diverse child images, why can't the php modules just be left enabled for all of them? |
|
All child images do not need all extensions, it is a will on the project to activate only the strict necessary… I know it's not the docker way to install unnecessary resources but it will really speed up my CI Deps are installed only once, extensions are builds only once too. We can have up to 51 child images… and growing |
|
I would have said to just pass Why not just |
|
Yes I can I'll just find it's a more convenient way with So, as you wish, i adapt |
|
Added #1021 so that |
|
Thx |
This little change allow to install extension without enabling it.
It can be useful for preparing base images and speedup sub build in CI context