Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105675 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 25159 invoked from network); 11 May 2019 13:45:13 -0000 Received: from unknown (HELO mail-ot1-f65.google.com) (209.85.210.65) by pb1.pair.com with SMTP; 11 May 2019 13:45:13 -0000 Received: by mail-ot1-f65.google.com with SMTP id g18so7583932otj.11 for ; Sat, 11 May 2019 03:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KZPIByZPhNH/X6G9SocXIoMPxHBF8I3ZNnco4Eo4WBg=; b=oINowDvv2OdR3DRkevO+6WzbV6czdqKbTRLvrv1uAavbKR7T2zLqCQBmCgfHG+K4Os W9L7BjUkgrIEMNhdhgjEzIGw+Ejketig/Be+kyFWdkof9oaGI4ZrrmfPmLZYpPqc2azz YUb8SrHZKKiFh6l4VhOU4Pe1Assa0f/Y0wFGTRigdirfLx2MYS/MdS8gBleAXatorAk1 HzaieHQzM1YvDSd1uRoCIE8F2TlKjBurMBRHlTkfCJpkuqwh+g+Ha7rthCR081ImH7y+ KYpzS6BIyyFyCON97Kj/3CKlr1jnN/fEgbuzcxiJUTqqJcu8MPCyAnFMKzYUn5DLlQqJ WJNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KZPIByZPhNH/X6G9SocXIoMPxHBF8I3ZNnco4Eo4WBg=; b=kFugv5nxLZ0DtyEDiBj37wPzF1xytiwhxSI4h6GY+dvuQkAe0BaOGiBcxH0tQyXfaj 7f043B0/picUdFGidRIyVuhzTmNxf61EsIg9/TkP9xsXj/cELAbo0zqc+tc4kfwhTxfB ea0FM1v7ICh5mMMKxGDYTZdaHbEYl6LcCQSE5HyNYfduxR8o6LPThNGxWhaVu6iOxpdE z5EUu3Tguj2en7Ln4h8m2bKd70lR1iIGRJRqZeBUwTdLf+pGVbsL0S5MCHZlpmkAmw7z u63OeNcnfGs3sT+9H4u/nzPct9isBwrRt2OLbR2Cg6Kico9cCf4qn9WcLw1y91PRXbgx iRLQ== X-Gm-Message-State: APjAAAWPRUH7GHSFQFDG4fNsHjCTCs/we+pqX04cUEu1UpJUFi2EvbAH b/T5eyu7usHW0bQ6272iqi3aolbgc43S0OVe9M0= X-Google-Smtp-Source: APXvYqzpt20/5i7EQFdD/M2Bw+Z2OFUcDJ6NxGvbuGSfZVTD/vshQHer5UDc/51MATLl6c7rEjIblRcTLqaSc0P9oaw= X-Received: by 2002:a9d:3c2:: with SMTP id f60mr7389111otf.74.1557571804988; Sat, 11 May 2019 03:50:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 11 May 2019 12:49:46 +0200 Message-ID: To: Pierre Joye Cc: Martins Sipenko , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] PHP Docker images From: peterkokot@gmail.com (Peter Kokot) On Sat, 11 May 2019 at 06:12, Pierre Joye wrote: > > On Fri, May 10, 2019, 2:06 PM Peter Kokot 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