Welcome! Log In Create A New Profile

Advanced

[PHP-DEV] getting tests running with docker

Posted by Frederik Bosch 
Frederik Bosch
[PHP-DEV] getting tests running with docker
May 22, 2018 11:40AM
Hi there,

As the release managers of PHP 7.3 have been chosen - congratulations to
both - I realized I have to hurry up with the implementation of the
passed RFC on Same Site Cookies. A few weeks ago I was ready to start
working on this. So I started with setting up my dev environment. I
chose to go for a containerized setup: create a container that is ready
to run tests, then mount the git repo, see that the tests are running
and then start working on the feature.

However, I never managed to get a single test running. My starting point
was the official Docker based on Alpine 3.7
(https://github.com/docker-library/php/blob/master/7.2/alpine3.7/cli/Dockerfile).
However, when compiling PHP I always run into the same error.

|Error relocating /usr/src/php/sapi/cli/php: unsupported relocation type
37 Error relocating /usr/src/php/sapi/cli/php: unsupported relocation
type 37 Error relocating /usr/src/php/sapi/cli/php: unsupported
relocation type 37 Error relocating /usr/src/php/sapi/cli/php:
unsupported relocation type 37 |


Do anyone has a clue what this could this be? I have very little
experience with these kind of issues. Googling did not help to find the
answer. Maybe someone can help, or even better, setup a Docker that is
able to a) compile using travis/compile.sh and then b) run
../sapi/cli/php run-tests.php c) when mounting a (forked) git src repo
into that container. I think this will improve dev experience of other
people that want to help improving php source.

Kind regards,
Frederik Bosch
Peter Kokot
Re: [PHP-DEV] getting tests running with docker
May 27, 2018 08:40AM
Hello, yes, same is happening here also with PHP master branch and Alpine
Linux. It has something to do with the musl libc (Alpine) . Checking it
out... Probably this should be reported to bugs.php.net also...

On Tue, 22 May 2018 at 11:35, Frederik Bosch <[email protected]> wrote:

> Hi there,
>
> As the release managers of PHP 7.3 have been chosen - congratulations to
> both - I realized I have to hurry up with the implementation of the
> passed RFC on Same Site Cookies. A few weeks ago I was ready to start
> working on this. So I started with setting up my dev environment. I
> chose to go for a containerized setup: create a container that is ready
> to run tests, then mount the git repo, see that the tests are running
> and then start working on the feature.
>
> However, I never managed to get a single test running. My starting point
> was the official Docker based on Alpine 3.7
> (
> https://github.com/docker-library/php/blob/master/7.2/alpine3.7/cli/Dockerfile).
>
> However, when compiling PHP I always run into the same error.
>
> |Error relocating /usr/src/php/sapi/cli/php: unsupported relocation type
> 37 Error relocating /usr/src/php/sapi/cli/php: unsupported relocation
> type 37 Error relocating /usr/src/php/sapi/cli/php: unsupported
> relocation type 37 Error relocating /usr/src/php/sapi/cli/php:
> unsupported relocation type 37 |
>
>
> Do anyone has a clue what this could this be? I have very little
> experience with these kind of issues. Googling did not help to find the
> answer. Maybe someone can help, or even better, setup a Docker that is
> able to a) compile using travis/compile.sh and then b) run
> ./sapi/cli/php run-tests.php c) when mounting a (forked) git src repo
> into that container. I think this will improve dev experience of other
> people that want to help improving php source.
>
> Kind regards,
> Frederik Bosch
>
>

--
Peter Kokot
Frederik Bosch
Re: [PHP-DEV] getting tests running with docker
May 29, 2018 09:50AM
Hi Peter,

Good to learn that I am not the only one having troubles. I remember I
also tried Debian stretch. It came with the same error.

Frederik



On 27-05-18 08:34, Peter Kokot wrote:
> Hello, yes, same is happening here also with PHP master branch and
> Alpine Linux. It has something to do with the musl libc (Alpine) .
> Checking it out... Probably this should be reported to bugs.php.net
> http://bugs.php.net also...
>
> On Tue, 22 May 2018 at 11:35, Frederik Bosch <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi there,
>
> As the release managers of PHP 7.3 have been chosen -
> congratulations to
> both - I realized I have to hurry up with the implementation of the
> passed RFC on Same Site Cookies. A few weeks ago I was ready to start
> working on this. So I started with setting up my dev environment. I
> chose to go for a containerized setup: create a container that is
> ready
> to run tests, then mount the git repo, see that the tests are running
> and then start working on the feature.
>
> However, I never managed to get a single test running. My starting
> point
> was the official Docker based on Alpine 3.7
> (https://github.com/docker-library/php/blob/master/7.2/alpine3.7/cli/Dockerfile).
>
> However, when compiling PHP I always run into the same error.
>
> |Error relocating /usr/src/php/sapi/cli/php: unsupported
> relocation type
> 37 Error relocating /usr/src/php/sapi/cli/php: unsupported relocation
> type 37 Error relocating /usr/src/php/sapi/cli/php: unsupported
> relocation type 37 Error relocating /usr/src/php/sapi/cli/php:
> unsupported relocation type 37 |
>
>
> Do anyone has a clue what this could this be? I have very little
> experience with these kind of issues. Googling did not help to
> find the
> answer. Maybe someone can help, or even better, setup a Docker
> that is
> able to a) compile using travis/compile.sh and then b) run
> ./sapi/cli/php run-tests.php c) when mounting a (forked) git src repo
> into that container. I think this will improve dev experience of
> other
> people that want to help improving php source.
>
> Kind regards,
> Frederik Bosch
>
>
>
> --
> Peter Kokot

--


Frederik Bosch


Partner

Genkgo logo
Mail: f.bosch@genkgo.nl <mailto:[email protected]>
Web: support.genkgo.com https://support.genkgo.com

Entrada 123
Amsterdam
+31 208 943 931

Genkgo B.V. staat geregistreerd bij de Kamer van Koophandel onder nummer
56501153
Sorry, only registered users may post in this forum.

Click here to login