Rector Container.
https://getrector.com
- Dockerfile 100%
| conf | ||
| .editorconfig | ||
| Containerfile | ||
| readme.md | ||
Rector container image
Container image containing php and the refactoring tool rector.
Intended image contents
- php
- rector
Run
podman container run \
--rm \
--interactive --tty \
--volume=.:/src \
code.netztechniker.at/ludwig/rector:latest \
process
# or the short variant
podman run --rm -it -v .:/src code.netztechniker.at/ludwig/rector process
Build
PHP_VERSION=x.y \
RECTOR_VERSION=x.y.z \
podman image build . \
--build-arg PHP_VERSION=$PHP_VERSION \
--build-arg RECTOR_VERSION=$RECTOR_VERSION \
--annotation=org.opencontainers.image.revision=$(git rev-parse HEAD) \
--tag code.netztechniker.at/ludwig/rector:$RECTOR_VERSION