Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125402 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 97DAD1A00BD for ; Tue, 3 Sep 2024 01:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1725327418; bh=4mc50h6UelqAi0/8TQN4IOj0XrQSqvNirxrj6xtto2M=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=cKgYw04u1cen7IV6FeE1AZvurclpiic4HVLyWqJtCfAmoh2JcPkKddca0aID7R84D Nwy7WHtmyClC/Bp2tMDjTACVr/yGmpiPOLePxlnGOcdAX3ihPes/ECpv4999mTufik txwPzj2ylcXVtFFvIstyJyPd7mPXCLfsIPgIswr4GVmsU4WSnRqSwMgxML4ivarN8O /73ikqQKt20IepOL5F1gdX3As6GZl0T3n1QZYmT3z5ql7sD6ht3jM4HG9m7tiHLgIP iPqmVlkoSdZj8fajy0p5K9CU0fE8KK4R+htd80MwdrwHf8LlduMx4TjjNCbR+ttkHi nomzLkTolpr9g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A0B15180082 for ; Tue, 3 Sep 2024 01:36:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_50,DMARC_NONE, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 3 Sep 2024 01:36:57 +0000 (UTC) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-e1a82d1ef62so3468886276.0 for ; Mon, 02 Sep 2024 18:35:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725327299; x=1725932099; h=to:references:message-id:cc:date:in-reply-to:from:subject :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6tOiJd4jeecfzNacijSRgR/KI+slJxWvgpax21kH/i8=; b=lqKQ4nthTpRCEav0BeYxulyLtcHBvDWFLkpu11jKAnG3f5qzOEXHzAQf9FGCKwzSPS 5ajARsEVNx2e5PQBGSBM6LO+UtG+qrslwDs8o1fQYpRa0e6yvmXg6HRSZrClLyaqh1uX mCSG1G4i5xAvIhXHP+/Ojp0+QI5zMoSHOPr3oDDOqDzGYwVszcbhEw1iRlff6qvVjkgO Q2l3JfYceelU5T8wSv8kN8FRiXgfeL+7B71a6PqI+8ecDxIdAfS/Wk5NbUyYg4r1ilDO XgGLwAGpOjHmrZXTjqEce3ozC7nw6JYpjeUGZeQoBOtpLD5UhonciqPxroHDEKPbRDBk 0a/A== X-Gm-Message-State: AOJu0YyBwOwrFT68fO4J9sgzwRiDqM3Hom2Htud39XjfVNgBNo2HqbD6 sp/WSdVXh69VOx+Z7ZJNP5s82J7ftnJMcBdQqH2i2q/WvjArgvHRhqX90ylV2g== X-Google-Smtp-Source: AGHT+IHes8rAhZdCbaSsXhGmLBWvqG8pGNexDPF+gcAgHzuQVqvsede5J+AkEybG4hKY5Kc0xN8kLQ== X-Received: by 2002:a05:6902:2e11:b0:e16:6785:1a5b with SMTP id 3f1490d57ef6-e1a79fd8aaemr14154866276.14.1725327299300; Mon, 02 Sep 2024 18:34:59 -0700 (PDT) Received: from smtpclient.apple (h96-61-170-179.lvrgtn.broadband.dynamic.tds.net. [96.61.170.179]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e1a626fa51fsm1905880276.61.2024.09.02.18.34.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Sep 2024 18:34:58 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_985D3E03-FE69-4071-9344-02BC8E460D3B"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: [PHP-DEV] Debug Build Container Image for GitHub Packages In-Reply-To: Date: Mon, 2 Sep 2024 20:34:48 -0500 Cc: internals@lists.php.net Message-ID: <444E0751-A2DD-4581-9134-95D580702FBB@php.net> References: <5C7B4216-6D52-4BF0-9C30-89DD5465FB48@php.net> <8D35CEB1-3B48-4889-BEAB-63AAE6DB8A01@php.net> To: Bob Weinand X-Mailer: Apple Mail (2.3776.700.51) From: ramsey@php.net (Ben Ramsey) --Apple-Mail=_985D3E03-FE69-4071-9344-02BC8E460D3B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Sep 2, 2024, at 19:36, Bob Weinand wrote: >=20 > On 3.9.2024 02:18:30, Ben Ramsey wrote: >>> On Sep 2, 2024, at 18:53, Bob Weinand wrote: >>>=20 >>> On 3.9.2024 01:44:21, Ben Ramsey wrote: >>>=20 >>>>> On Sep 2, 2024, at 08:11, Go Kudo wrote: >>>>>=20 >>>>> Hi Internals. >>>>>=20 >>>>> PHP currently does not provide official container images. Given = that DockerHub adequately maintains these and considering the = maintenance costs, we haven't felt the need to change the status quo. >>>>>=20 >>>>> However, the official DockerHub images lack debug builds, which = can be somewhat inconvenient when trying to report bugs or reproduce = issues. >>>>>=20 >>>>> What if we were to provide debug build container images that are = compatible with the official DockerHub images? Fortunately, we already = conduct most of our development on GitHub, which has a container = registry called Packages. >>>>>=20 >>>>> This could be achieved simply by creating a single repository = under the php organization on GitHub. What are your thoughts on this? >>>>>=20 >>>>> Best Regards. >>>>> Go Kudo >>>>>=20 >>>> Since the folks who do the DockerHub builds already have all the = infrastructure set up to maintain the images, I think it might be easier = to work with them to have them provide debug builds. >>>>=20 >>>> Perhaps there=E2=80=99s someone from that team on this list who can = speak to that? >>>>=20 >>>> Cheers, >>>> Ben >>>>=20 >>> Hey Ben, >>>=20 >>> what I'd _really_ like to see is not debug-builds, but debug = symbols. >>>=20 >>> Basically, you'd have a docker image "php:8.3" and a docker image = "php:8.3-dbgsym". The former image then just has a gnu_debuglink. The = latter has the actual symbols file included and is based on the former. >>>=20 >>>=20 >>> Thanks, >>>=20 >>> Bob >>>=20 >>=20 >> I think the team who manages the Docker builds could also provide = images with debug symbols. Since they=E2=80=99re already equipped for it = and have the experience, why don=E2=80=99t we partner with them to = provide these images to the community? >>=20 >> Cheers, >> Ben > Yes. Absolutely. > The problem, however, if you want to provide a build with debug = symbols and one without, the primary value for me would be being able to = take a core dump produced in an image without debug symbols and then = simply open the image with debug symbols and inspect it there. > To the best of my knowledge however, it isn't trivially possible to = build two docker images with the same docker build invocation. Basically = you'd need an intermediary image, from which you then create both (so, 3 = different docker builds - one base image which has the build and the = symbols but is not uploaded. And two images where the base images files = are copied into.). I believe this would not be compatible with the way = docker-library/php is built currently. > So, yes, please reach out to them what they are willing to do. >=20 > Thanks, > Bob I opened an issue on their GitHub tracker to gauge their interest: = https://github.com/docker-library/php/issues/1538 Cheers, Ben --Apple-Mail=_985D3E03-FE69-4071-9344-02BC8E460D3B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEObZBND2MEEsrFG3D+cOdwLlphUQFAmbWZ7gACgkQ+cOdwLlp hUSd4w//WLZi/CZsWpVpISgjVmTkyPT3PIYW36UK5fsXDYcuXABmLWn/exTYn2s7 0wttzy6fAVNM+cs011MZJtMmId8d8nsK1iesgOVtGtuUDDPx84CIumqe1jxt2VnY 2tko4jGV17q7Y1kZoxvMFws6A1d4e55THWRGjvRD1+EBP0FvpFB+mnvRLbVXjg9C smJKyD4n5mdOyeS6sUpBeCPNeTDkMzEc+DdXyibxTEuMZaEEt7JSyPgpovdQPyRn GWJ51HUTZF9v4WLgHZ3YPH4tAZZVWI+37HsBYOHkcNHHjGERMbL/erKSf1Kgfy0T dj3BLRIIdcPoZGkRwjfCqZp5kJkrzjyy6pWFQPPLMdoziqbS0eyKWxGUO4Fu/Fbr Fb6vZh1nhbwlJxJssXBPWbR5MktQovw0Gzi9vIFaj1DhUjoMkeMd8oC55UiFC1P/ hdVUjh1blbjNTOXTUQNwFDRVIouX81u15LKm1PHIj9Rntez14BoF9XrAQ7FG4Rz4 buEJPMyfhpbOuGWu4hn/vTrAVjiLV/0mMCblbTgcv11YWA4cgDkmPIxSEho3vtkL AAnFdjkPUdZRAijakNufxIq7oKqqItokMrHGtZhBYqpPze+sOPV/s77Yq0SUupKH M1DBo/LekE73uuHzb/CZIfJhxCweeeUjg6CJyiwFlWLy+mZ10WU= =R4BW -----END PGP SIGNATURE----- --Apple-Mail=_985D3E03-FE69-4071-9344-02BC8E460D3B--