Comments (8)
Tried to run kahlan
under phpdbg
for PHP5. It failed with error:
$ docker run --rm -it -v $(pwd):/app --entrypoint /usr/local/bin/kahlan-phpdbg kahlan/kahlan:2.5.8-php5-alpine --config=.tests/kahlan-config.php
[Attempting compilation of /usr/src/kahlan/vendor/kahlan/kahlan/bin/kahlan]
[Success]
#!/usr/bin/env php
_ _
/\ /\__ _| |__ | | __ _ _ __
/ //_/ _` | '_ \| |/ _` | '_ \
/ __ \ (_| | | | | | (_| | | | |
\/ \/\__,_|_| |_|_|\__,_|_| |_|
The Unit/BDD PHP Test Framework for Freedom, Truth, and Justice.
Working Directory: /app
[PHP Fatal error: Call to undefined function Kahlan\Reporter\Coverage\Driver\phpdbg_start_oplog() in /app/vendor/kahlan/kahlan/src/Reporter/Coverage/Driver/Phpdbg.php on line 37]
00036: {
>00037: phpdbg_start_oplog();
00038: }
00039:
For php5
official docker image is used phpdbg
of version v0.4.0
.
/app # phpdbg
[Welcome to phpdbg, the interactive PHP debugger, v0.4.0]
To get help using phpdbg type "help" and press enter
[Please report bugs to <http://github.com/krakjoe/phpdbg/issues>]
Which is turned off by default, but can be enabled with from-sources recompiling:
# Example for Alpine based php image
RUN apk add --update --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
sqlite-dev \
&& docker-php-source extract \
&& cd /usr/src/php \
&& ./configure --enable-phpdbg \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make install-phpdbg \
&& docker-php-source delete \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*
However it has no sense as v0.4.0
for PHP5 does not support phpdbg_start_oplog()
function required for code coverage. And won't. See related topic why.
Conclusions
Sad =( There will be no phpdbg
in php5
Kahlan Docker image versions.
from docker-image.
@jails would you be so kind to provide email address of CrysaLEAD to specify it in MAINTAINER
of this image?
from docker-image.
I added you as a maintainer here https://hub.docker.com/u/kahlan/, is it enough ?
And what about not supporting PHP < 7 ? http://php.net/supported-versions.php ?
from docker-image.
@jails thanks, that was also required (I wanted to ask you later). But at the moment I mean MAINTAINER
instruction of Dockerfile
. I think it is right to specify there the same author that owns Kahlan license and is used as author in composer.json
. It's CrysaLEAD
at the moment. But for specifying it also requires some email address, not only name. That is what I'm asking you to provide.
I have almost all project still at PHP5. There are a lot of legacy stuff and I'm pretty sure that I'm not alone with that problem. So this is quite necessary.
But I don't invent stuff and only 5.6.*
branch of PHP5 is supported, as official PHP image and Composer image do. Our image is just build on top of them.
from docker-image.
I'll write README.md
soon, so things will be more clear.
from docker-image.
Oh ok just use: [email protected]
from docker-image.
@jails would you be so kind to check my access privileges to kahlan/kahlan repo on Dockerhub once again? I was able to docker push
images there, but from web interface I'm unable to do anything: neither change description, nor add Github link.
from docker-image.
I'm not really familiar with the dockhub permissions thingy. I created a maintainer
team at the kahlan
level (i.e orga), added [this user)(https://hub.docker.com/u/tyranron/) in the maintainer team and then added maintainer
as a collabors entry for kahlan/kahlan
(i.e. the repo).
Previously maintainer
had write
permissions for kahlan/kahlan
and I just switched as admin
. Feel free to join the #kahlan IRC channel to sort that up if it still doesn't work.
from docker-image.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-image.