On Sat, 11 May 2019 at 06:12, Pierre Joye <pierre....@gmail.com> wrote:
>
> On Fri, May 10, 2019, 2:06 PM Peter Kokot <peterko...@gmail.com> wrote:
>
> >
> > The images for such C software are one of the more useless ones. Snaps
> > or custom Linux repositories are the way to go here. Because of the
> > installation time. Building several extensions from source is really
> > time consuming...
>
>
> Maybe this is exactly why docker images are nice. You do not build them but
> once (on dockerhub f.e.) and users only grab them. Just maybe...
>
> best
> Pierre

Yes, theoretically :) There are actually more cases where you will
build them more than once. Almost several times per day. For example,
to build intl extension one must do:
docker-php-ext-install intl and also install dependencies that belong
to it. Imagine now doing this for a normal PHP environment which is
about several more extensions, some pecl ones and you get to an
installation time of almost 10 minutes (over the thumb). Docker
registries are not that common as we think. And with building the same
Docker image using Linux repositories the installation becomes a
matter of seconds (without worrying which extensions need another apk
add --no-cache libfoo or apt install libfoo-dev) and then also
cleaning those dev packages after the build.

-- 
Peter Kokot

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to