Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125401 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 497851A00BD for ; Tue, 3 Sep 2024 00:36:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1725323891; bh=kdMW6agxMVTpvSvxMjud1fYH6jNeNc34XnbhkzZcvUk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SBOfB/OVNHpIcLroq6irMbco6Sp0uFlqLiEgR41iG8Otnk6FgZu7hveV1Y6rdYjKQ EI4hzYP7CeMbPX+Q8T19gEIlwUp6pIsJnYj2Aiwhtvb4Z98DDqAiqrQPIOyoqisp+r 4k+aK7W94CNB2x/LuXUSQaDuZ7qZccMbwILK0nphO5gqR4VNJtwE+d+Md5LFqZq0Wd 8rMRlY0TSKr0QwpZmjPM84J71ddJC/J6k2+aLaCFsJgygMeYyaFZ2BvjEbhCL+JlZF 0LerXNom1ZPK30PFEjeIx8PLWkKdRf7UWfwWUPFOFCahnyrzGbz2OZ2ud0VW6osnqi 5qt5XsGKfub9Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4DE9F18005B for ; Tue, 3 Sep 2024 00:38:11 +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=0.9 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE, 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 EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03olkn2018.outbound.protection.outlook.com [40.92.58.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 3 Sep 2024 00:38:10 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=agV+azewZ5UbLcthvcxKlTK3gb47JM2B41aZbQRjici2Mn1J6TfQYzNKA6YV9AWc0nUHtbA4GmlrNzHDPXFWSk+qelksCN3LMFvGbOsHL+2BN8GuhXhVfPY43EQGevxSqIbbK3tYQqeYhsPiQUs09pdUaoH1Rx3C2z2Hd6vyn31qELFM7ogSJRJPHmydZripg9YoSJYBO2toyevOiu8mLv0FdTjK9YukxC3L6y8WsO5n6D/EFGM0vKMFwJjXKc8rK6khqFzQJZG6TA68zY06ppYuuC7gvTR/gL/bayQXO1cUGUzxk/jpgctpV3MySLYc7cAsKVrz/ON03krjCjqHPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NzVJK6RRwgmcVPkK9fVW9J5u7wbOgdcE0pBZdeyQbqs=; b=ve15dKuC1NgsToqe1sgllrwdVBI/ivYec7eph7aRwi39rNAkGDHhVb5jz6gJJSB+G/6hGJZp7cJUtdmLj93sEvfOSPlkE/i9pjBN+OVsl7FJkqaxyAnTYwbLRPqzeH7QXgzLs1q+4Ze5sB089eoiLmhBWUL6zs5ID3FaGpgPPmL1PF02GAyTgqLzC0gmme/5SEyGGpH1N+GNDjOzuIgzxkQocyds6MUx6UK8CvVirdHoU3en0LARlHnnLPunG9/f+ZS08zX/YcaXEO3c6W2fBZO9BOp0Y9Tp0tQC87GDMOkO8zWkaMj3O2rydrgaB8KRPI3u9gTZwT9JtEmjheFiwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NzVJK6RRwgmcVPkK9fVW9J5u7wbOgdcE0pBZdeyQbqs=; b=spbhmB3SLTua5yoD/d3JIdCXovrLvpBYJ4qS8FUETinAsGJ/snk6FknHDVTKhC7fpXNxpxSZh3ca27KatLlPLeTDTqfPeJoJSWYowe4cN6aUE8hSRxBMIB0H7pevONvHalLf/9nkjmoyovkcP34EI0a3LhboZUwmWN/19iy5akuSuD286KPjORAlGsYzyIsvddqyLb1CgJAKpmXnuwyj43r8/e2B4cslsSzJn5nKwIW+TuADU2yf+QlgumYQomf7Ryl3xoh7jlnJlELSsi30J5OjxqWj0mWVgIO9SRed/ogMp02U5ZJbVsgHQHOU0HcnyI0iAHUn1y9bJV4apj6LTw== Received: from AM8P250MB0170.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:321::21) by AM8P250MB0199.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:326::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Tue, 3 Sep 2024 00:36:12 +0000 Received: from AM8P250MB0170.EURP250.PROD.OUTLOOK.COM ([fe80::651e:bbd2:b18a:80ff]) by AM8P250MB0170.EURP250.PROD.OUTLOOK.COM ([fe80::651e:bbd2:b18a:80ff%3]) with mapi id 15.20.7918.024; Tue, 3 Sep 2024 00:36:12 +0000 Content-Type: multipart/alternative; boundary="------------dlGS03OvgvLJ52xg7WQN0mAs" Message-ID: Date: Tue, 3 Sep 2024 02:36:11 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Debug Build Container Image for GitHub Packages To: Ben Ramsey Cc: internals@lists.php.net References: <5C7B4216-6D52-4BF0-9C30-89DD5465FB48@php.net> <8D35CEB1-3B48-4889-BEAB-63AAE6DB8A01@php.net> Content-Language: en-US In-Reply-To: <8D35CEB1-3B48-4889-BEAB-63AAE6DB8A01@php.net> X-TMN: [yKSqwUVpsO41yWhb7O3afFsF0ImAkzebN/xg1Oyciz+a8G0JRy4gqDE5f52kIutI] X-ClientProxiedBy: FR3P281CA0012.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1d::15) To AM8P250MB0170.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:321::21) X-Microsoft-Original-Message-ID: <17e23649-7d18-44bf-935f-4b9602f5334b@hotmail.com> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM8P250MB0170:EE_|AM8P250MB0199:EE_ X-MS-Office365-Filtering-Correlation-Id: 5587c10b-d50f-4c7b-f391-08dccbb06912 X-Microsoft-Antispam: BCL:0;ARA:14566002|12050799009|461199028|19110799003|8060799006|5072599009|15080799006|440099028|3412199025; X-Microsoft-Antispam-Message-Info: RenEhp1iz2AohEPQiSdwdk0endW0IFvPHIVa5lMOzqpSTS7Tx7jE1GjyEvhTtqMNuKEUCWU3buL2BF2+oD9Vjw1Ib3QEpAh828blw8ZVJNIfOzLFxHo5I8P+eKr1nUjpSbMrqFnuvmxEaAnBg0yR47+CDzsaLnq2Q/cLqHYOfMgv3txrkn28Jdb3oIoXjjR9EzMsW1lGKXs3IqsED2VCSD8WWXSzi/c89zozFMeRwRCd2KobkRzX8RVFoELM84xDlVtH2nQgrsyIKknWe9JrsCh6+KiGRbrSN4mLlIe72zjG39FB5r131aE7pM6pZflO+UPgSzBlEr7Ff3x1fyVc8V0M4wsWgnX668dywVESgujUshLzONBt++3YPBQHSFAfJIsPOVPdyhdSnXljm1tYL6ruLY0J43lhjF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CbmtVaFBUSEhy?= =?utf-8?B?R0ZMVGIxTjVUa1lwZnZwNWtVSFlVcFdtV2p5MXh4OEoxaFFWM2V3MEN3Zmdm?= =?utf-8?B?eDlXS0MxZFBWamZzNUNUYmR4SDEwc3JDOG43OEcrMG1nVEM3Z3lXRDBWdXhp?= =?utf-8?B?SXFxSG1FeHpuVVJFaDU3SGJtZnBJVGxCQWc5anFKcjdraU1DdHh3c3cxNEND?= =?utf-8?B?SExQK1dZL2laanJBd214UmdKM3NSRVg5RFliL2dEQ2I5eXZOY1d3bU9jaHVV?= =?utf-8?B?YURUQ25ER3NvQnFGc0VtcTBZMmgvdWFtQm9id0R5a3c4ZEo3dmdSblc4L0Z1?= =?utf-8?Q?edAUFsuFpCTPOmMXNs=3D?= X-OriginatorOrg: sct-15-20-7784-11-msonline-outlook-95b76.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 5587c10b-d50f-4c7b-f391-08dccbb06912 X-MS-Exchange-CrossTenant-AuthSource: AM8P250MB0170.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2024 00:36:11.9530 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P250MB0199 From: bobwei9@hotmail.com (Bob Weinand) --------------dlGS03OvgvLJ52xg7WQN0mAs Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3.9.2024 02:18:30, Ben Ramsey wrote: >> On Sep 2, 2024, at 18:53, Bob Weinand wrote: >> >> On 3.9.2024 01:44:21, Ben Ramsey wrote: >>>> On Sep 2, 2024, at 08:11, Go Kudo wrote: >>>> >>>> Hi Internals. >>>> >>>> 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. >>>> >>>> However, the official DockerHub images lack debug builds, which can be somewhat inconvenient when trying to report bugs or reproduce issues. >>>> >>>> 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. >>>> >>>> This could be achieved simply by creating a single repository under the php organization on GitHub. What are your thoughts on this? >>>> >>>> Best Regards. >>>> Go Kudo >>> 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. >>> >>> Perhaps there’s someone from that team on this list who can speak to that? >>> >>> Cheers, >>> Ben >> Hey Ben, >> >> what I'd _really_ like to see is not debug-builds, but debug symbols. >> >> 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. >> >> >> Thanks, >> >> Bob > > I think the team who manages the Docker builds could also provide images with debug symbols. Since they’re already equipped for it and have the experience, why don’t we partner with them to provide these images to the community? > > 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. Thanks, Bob --------------dlGS03OvgvLJ52xg7WQN0mAs Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 3.9.2024 02:18:30, Ben Ramsey wrote:
On Sep 2, 2024, at 18:53, Bob Weinand <bobwei9@hotmail.com> wrote:

On 3.9.2024 01:44:21, Ben Ramsey wrote:
On Sep 2, 2024, at 08:11, Go Kudo <zeriyoshi@gmail.com> wrote:

Hi Internals.

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.

However, the official DockerHub images lack debug builds, which can be somewhat inconvenient when trying to report bugs or reproduce issues.

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.

This could be achieved simply by creating a single repository under the php organization on GitHub. What are your thoughts on this?

Best Regards.
Go Kudo
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.

Perhaps there’s someone from that team on this list who can speak to that?

Cheers,
Ben
Hey Ben,

what I'd _really_ like to see is not debug-builds, but debug symbols.

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.


Thanks,

Bob

I think the team who manages the Docker builds could also provide images with debug symbols. Since they’re already equipped for it and have the experience, why don’t we partner with them to provide these images to the community?

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.


Thanks,

Bob

--------------dlGS03OvgvLJ52xg7WQN0mAs--