# getting tests running with docker

- Thread: https://externals.io/message/102121
- Original archive: https://news-web.php.net/php.internals/102121
- Started by Frederik Bosch on 2018-05-22T09:34:42+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #102121 — Frederik Bosch — 2018-05-22T09:34:42+00:00

URL: https://externals.io/message/102121#102121

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

---

## #102146 — Peter Kokot — 2018-05-27T06:34:39+00:00

URL: https://externals.io/message/102121#102146 · In reply to: #102121

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...



> 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

---

## #102154 — Frederik Bosch — 2018-05-29T07:45:15+00:00

URL: https://externals.io/message/102121#102154 · In reply to: #102146

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




> 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 <f.bosch@genkgo.nl 
> <mailto:f.bosch@genkgo.nl>> 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:f.bosch@genkgo.nl>
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
