All #awesome-ci Docker images
ansible-lint β’ ansible β’ awesome-ci β’ bandit β’ black β’ checkmake β’ eslint β’ file-lint β’ gofmt β’ goimports β’ golint β’ jsonlint β’ kubeval β’ linkcheck β’ mypy β’ php-cs-fixer β’ phpcbf β’ phpcs β’ phplint β’ pycodestyle β’ pydocstyle β’ pylint β’ terraform-docs β’ terragrunt-fmt β’ terragrunt β’ yamlfmt β’ yamllint
View Dockerfiles on GitHub.
Available Architectures: amd64
, i386
, arm64
, arm/v7
, arm/v6
Tiny Alpine-based multistage-builld dockerized version of phpcbf[1]. The image is built nightly against multiple stable versions and pushed to Dockerhub.
[1] Official project: https://github.com/squizlabs/PHP_CodeSniffer
The following Docker image tags are rolling releases and are built and updated every night.
Docker Tag | Git Ref | PHPCBF | PHP | Available Architectures |
---|---|---|---|---|
latest |
master | latest | latest | amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php8.1 |
master | latest | 8.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php8.0 |
master | latest | 8.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.4 |
master | latest | 7.4 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.3 |
master | latest | 7.3 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.2 |
master | latest | 7.2 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.1 |
master | latest | 7.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.0 |
master | latest | 7.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php5.6 |
master | latest | 5.6 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3 |
master | 3.x.x |
latest | amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php8.1 |
master | 3.x.x |
8.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php8.0 |
master | 3.x.x |
8.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.4 |
master | 3.x.x |
7.4 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.3 |
master | 3.x.x |
7.3 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.2 |
master | 3.x.x |
7.2 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.1 |
master | 3.x.x |
7.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.0 |
master | 3.x.x |
7.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php5.6 |
master | 3.x.x |
5.6 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2 |
master | 2.x.x |
latest | amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php8.1 |
master | 2.x.x |
8.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php8.0 |
master | 2.x.x |
8.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.4 |
master | 2.x.x |
7.4 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.3 |
master | 2.x.x |
7.3 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.2 |
master | 2.x.x |
7.2 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.1 |
master | 2.x.x |
7.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.0 |
master | 2.x.x |
7.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php5.6 |
master | 2.x.x |
5.6 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
The following Docker image tags are built once and can be used for reproducible builds. Its version never changes so you will have to update tags in your pipelines from time to time in order to stay up-to-date.
Docker Tag | Git Ref | PHPCBF | PHP | Available Architectures |
---|---|---|---|---|
latest-<tag> |
git: <tag> |
latest | latest | amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php8.1-<tag> |
git: <tag> |
latest | 8.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php8.0-<tag> |
git: <tag> |
latest | 8.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.4-<tag> |
git: <tag> |
latest | 7.4 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.3-<tag> |
git: <tag> |
latest | 7.3 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.2-<tag> |
git: <tag> |
latest | 7.2 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.1-<tag> |
git: <tag> |
latest | 7.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php7.0-<tag> |
git: <tag> |
latest | 7.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
latest-php5.6-<tag> |
git: <tag> |
latest | 5.6 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-<tag> |
git: <tag> |
3.x.x |
latest | amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php8.1-<tag> |
git: <tag> |
3.x.x |
8.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php8.0-<tag> |
git: <tag> |
3.x.x |
8.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.4-<tag> |
git: <tag> |
3.x.x |
7.4 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.3-<tag> |
git: <tag> |
3.x.x |
7.3 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.2-<tag> |
git: <tag> |
3.x.x |
7.2 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.1-<tag> |
git: <tag> |
3.x.x |
7.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php7.0-<tag> |
git: <tag> |
3.x.x |
7.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
3-php5.6-<tag> |
git: <tag> |
3.x.x |
5.6 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-<tag> |
git: <tag> |
2.x.x |
latest | amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php8.1-<tag> |
git: <tag> |
2.x.x |
8.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php8.0-<tag> |
git: <tag> |
2.x.x |
8.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.4-<tag> |
git: <tag> |
2.x.x |
7.4 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.3-<tag> |
git: <tag> |
2.x.x |
7.3 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.2-<tag> |
git: <tag> |
2.x.x |
7.2 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.1-<tag> |
git: <tag> |
2.x.x |
7.1 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php7.0-<tag> |
git: <tag> |
2.x.x |
7.0 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
2-php5.6-<tag> |
git: <tag> |
2.x.x |
5.6 |
amd64 , i386 , arm64 , arm/v7 , arm/v6 |
Where
<tag>
refers to the chosen git tag from this repository.
The working directory inside the Docker container is /data/
and should be mounted locally.
$ docker run --rm -v $(pwd):/data cytopia/phpcbf .
----------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------
2 | ERROR | [ ] Missing file doc comment
5 | ERROR | [x] First condition of a multi-line IF statement must
| | directly follow the opening parenthesis
6 | ERROR | [x] Line indented incorrectly; expected at least 4
| | spaces, found 1
6 | ERROR | [x] Closing brace must be on a line by itself
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
π Related #awesome-ci projects
Save yourself from installing lot's of dependencies and pick a dockerized version of your favourite linter below for reproducible local or remote CI tests:
GitHub | DockerHub | Type | Description |
---|---|---|---|
awesome-ci | Basic | Tools for git, file and static source code analysis | |
file-lint | Basic | Baisc source code analysis | |
linkcheck | Basic | Search for URLs in files and validate their HTTP status code | |
ansible | Ansible | Multiple versions and flavours of Ansible | |
ansible-lint | Ansible | Lint Ansible | |
gofmt | Go | Format Go source code [1] | |
goimports | Go | Format Go source code [1] | |
golint | Go | Lint Go code | |
eslint | Javascript | Lint Javascript code | |
jsonlint | JSON | Lint JSON files [1] | |
kubeval | K8s | Lint Kubernetes files | |
checkmake | Make | Lint Makefiles | |
phpcbf | PHP | PHP Code Beautifier and Fixer | |
phpcs | PHP | PHP Code Sniffer | |
phplint | PHP | PHP Code Linter [1] | |
php-cs-fixer | PHP | PHP Coding Standards Fixer | |
bandit | Python | A security linter from PyCQA | |
black | Python | The uncompromising Python code formatter | |
mypy | Python | Static source code analysis | |
pycodestyle | Python | Python style guide checker | |
pydocstyle | Python | Python docstyle checker | |
pylint | Python | Python source code, bug and quality checker | |
terraform-docs | Terraform | Terraform doc generator (TF 0.12 ready) [1] | |
terragrunt | Terraform | Terragrunt and Terraform | |
terragrunt-fmt | Terraform | terraform fmt for Terragrunt files [1] |
|
yamlfmt | Yaml | Format Yaml files [1] | |
yamllint | Yaml | Lint Yaml files |
[1] Uses a shell wrapper to add enhanced functionality not available by original project.
Visit cytopia/makefiles for dependency-less, seamless project integration and minimum required best-practice code linting for CI. The provided Makefiles will only require GNU Make and Docker itself removing the need to install anything else.
Copyright (c) 2019 cytopia