Re: Build instructions for Ubuntu 18.04 (and other systems)
| From: | Dik Takken | Date: | Sun, 15 Sep 2019 20:42:04 +0000 |
| Subject: | Re: Build instructions for Ubuntu 18.04 (and other systems) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107120@lists.php.net to get a copy of this message | ||
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