Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107120 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27835 invoked from network); 15 Sep 2019 23:05:25 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 15 Sep 2019 23:05:25 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id B31AC2CB13F for ; Sun, 15 Sep 2019 13:42:08 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3265 194.109.0.0/16 X-Spam-Virus: No Received: from lb2-smtp-cloud9.xs4all.net (lb2-smtp-cloud9.xs4all.net [194.109.24.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Sun, 15 Sep 2019 13:42:07 -0700 (PDT) Received: from [IPv6:2001:983:6fc5:1:20a3:7b22:2bae:2552] ([IPv6:2001:983:6fc5:1:20a3:7b22:2bae:2552]) by smtp-cloud9.xs4all.net with ESMTPA id 9bLQijkOwV17O9bLSi9DAb; Sun, 15 Sep 2019 22:42:06 +0200 To: Nikita Popov , PHP internals References: Message-ID: Date: Sun, 15 Sep 2019 22:42:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfOjUEeH2CltMenXs2Ce9Atx2kh05uZZu3/1H3HiGTvYakcrAGX8Z8rUhsGR95FYi/Bqt5NF8VM7NCRSs3yeIND6DS/++TKTrKrQeZBbezSjVO8A0x6sn 4ZWY0sOxyBb1G9Def++knhclryfDQMEv0ZLNP8N7hj8vRZwJDPSxAPSX64o+SQPm2PPb8sm2AFq8do/z3Hg3XaGzG2Gx5c+AT9rY2hawHmDILcrcdkl0+VmR 7Ty5TC1MkqjVNukUhrBKaoTUrAxQN1PUteTiV4jX4Y/uAx0vyGijh/cVTFEA9YSF1wcE0HGoL6fHr4FsCId9tA== X-Envelope-From: Subject: Re: [PHP-DEV] Build instructions for Ubuntu 18.04 (and other systems) From: d.takken@xs4all.nl (Dik Takken) On 15-09-19 20:49, Nikita Popov wrote: > > Anyone interested in doing this? > Hi Nikita, May I suggest to provide instructions to build using Docker? This has a number of advantages: * Same instructions will work on Linux, MacOS and Windows * No need to install build dependencies on your host * Spin up a MySQL container by running 'docker run mysql:version' I took this route a while ago when I needed to setup a dev environment and it works nicely. I could do a write-up of this route if desired. Part of the instructions could be cast into a Docker image that can be published on Github and Docker Hub. This image could even have the command to run the tests baked into the image itself. Then, anyone can just run docker run php-tests:7.4 to build the sources and run the tests. For development you can mount your local git clone in the container. Regards, Dik Takken