docker pull ciltocruz/php81xc:latest
CD / CI |
---|
Docker image built from PHP8.1.x CLI official + Xdebug + Composer, multiarchitectures.
Short tags are OFF.
Image ready to use as alias for development.
Do you use it? Star it!
Github / Docker Image tag | PHP Version | Composer version | XDebug | Architectures |
---|---|---|---|---|
latest | 7.4.29 | 1.10.26 | 3.1.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.7.0 | 7.4.29 | 1.10.26 | 3.1.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.6.0 | 7.4.28 | 1.10.25 | 3.1.3 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.5.0 | 7.4.22 | 1.10.22 | 3.0.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.4.0 | 7.4.20 | 1.10.22 | 3.0.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.3.0 | 7.4.19 | 1.10.22 | 3.0.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.2.0 | 7.4.16 | 1.10.22 | 3.0.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.1.0 | 7.4.16 | 1.10.21 | 3.0.3 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.0.1 | 7.4.16 | 1.10.20 | 3.0.3 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
1.0.0 | 7.4.16 | 1.10.20 | 3.0.3 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
During development, you can enable/disable xdebug.mode` with
# docker-compose.yml
services:
app:
environment:
XDEBUG_MODE: "off"
For values, see https://xdebug.org/docs/all_settings#mode
During development, you can enable/disable opcache_validate_timestamps
with
# docker-compose.yml
services:
app:
environment:
PHP_OPCACHE_VALIDATE_TIMESTAMPS: 1
$ docker pull sineverba/php74xc:latest
$ docker run --rm sineverba/php74xc php -m
PHP modules |
---|
bcmath |
Core |
ctype |
curl |
date |
dom |
exif |
fileinfo |
filter |
ftp |
gd |
hash |
iconv |
json |
libxml |
mbstring |
mysqli |
mysqlnd |
openssl |
pcntl |
pcre |
PDO |
pdo_mysql |
pdo_pgsql |
pdo_sqlite |
Phar |
posix |
readline |
Reflection |
session |
SimpleXML |
sodium |
SPL |
sqlite3 |
standard |
tokenizer |
xdebug |
xml |
xmlreader |
xmlreader |
xmlwriter |
xmlreader |
zlib |
Xdebug |
zip |
$ cd ~
$ nano .bashrc
$ alias php74='docker run -it -w /data -v ${PWD}:/data --entrypoint php --rm sineverba/php74xc:latest'
$ alias composer74='docker run -it -w /data -v ${PWD}:/data --entrypoint "/usr/bin/composer" --rm sineverba/php74xc:latest'
$ php -d memory_limit=-1 /usr/bin/composer require [...]
$ make build
$ make test
$ make destroy
- Check images list
$ docker image ls
- Clone the project
$ git clone git@github.com:sineverba/php74xc.git
- Run from same folder
$ docker build --tag php74xc:x.y.z .
- Check new image (php74xc:x.y.z)
$ docker image ls