Sign inSign up

noxinmortus/docker-php-checks

By noxinmortus

•Updated over 3 years ago

Image
0

684

noxinmortus/docker-php-checks repository overview

⁠Docker-PHP-Checks

This Docker image is used to run a batch of tests on PHP files. Current tests are :

This image is rootless.

⁠Available Architectures

  • amd64
  • arm64 (aarch64)
  • armv7 (arm)

⁠Common Usage exemple

docker run --rm --name=docker-php-checks -v docker-php-checks:/home/container \
  -e FILES='*.php *.inc' \
  -e DEBUG='true' \
 noxinmortus/docker-php-checks

The docker image will execute its checks on files present in /home/container (your docker-php-checks volume).

⁠User / Group Identifiers

When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user UID and group GID :

-e UID=1000 # for UserID
-e GID=1000 # for GroupID

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance UID=1000 and GID=1000, to find yours use id user as below:

  $ id username
    uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)

⁠Configuration

Volume to mount is /home/container and contains no files by default.

Environment variablesDefaultUsage
FILES*.phpFiles pattern to run check on
DEPTH2Depth of the directory tree to check
DEBUGfalseDebug mode

Tag summary

Content type

Image

Digest

sha256:888573772…

Size

32.3 MB

Last updated

over 3 years ago

docker pull noxinmortus/docker-php-checks