Docker の php:7-alpine イメージで Composer と Xdebug を使えるようにする

2022/05/07

Xdebug

Warning: XDEBUG_MODE=coverage or xdebug.mode=coverage has to be set

が出たので step3 実施。

今回は

extension=xdebug.so

は不要だった。

Dockerfile

ほぼこれでOK.

こちらも参照。 php -vwith Xdebug と付いていればOK.

Mariadb

could not find driver

普通に考えたら確かにドライバがないので。追加して解決。

シェル

bash ではなく ash 。 bin/ash

sr -c

最終的には使わずに済んだがメモ。


Written by Circle
A mound built by the accumulation of hyperlinks are like Kowloon.