You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Especially since the license/usage changes to Docker this year, it is evident that other virtualization tools will be used more often.
I for one have been replacing Docker with Podman for a long time now.
It would be great if it could also gain first-class support in pre-commit.
Since it is a drop-in replacement for Docker it would be great if the docker and docker_image languages could also be used when there is no docker but only podman installed.
The current workaround is to add a script to the path called docker that just forwards all CLI parameters to podman.
Something along the lines of:
# In /usr/bin/docker#!/usr/bin/shexec /usr/bin/podman "$@"
pre-commit --version
pre-commit 2.16.0
.pre-commit-config.yaml
# See https://pre-commit.com for more information# See https://pre-commit.com/hooks.html for more hooksrepos:
- repo: https://github.com/pre-commit/pre-commit-hooksrev: v3.2.0hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: localhooks:
- id: valename: Validate Style Guide with Valedescription: Validate Style Guide with Valelanguage: docker_imageentry: docker.io/jdkato/valepass_filenames: truealways_run: falseverbose: truerequire_serial: false
yeah that's basically the setup that I use -- however it's currently broken and being worked on in #1484 -- if you'd like to contribute perhaps you can help get that patch into shape!
Activity
asottile commentedon Dec 24, 2021
yeah that's basically the setup that I use -- however it's currently broken and being worked on in #1484 -- if you'd like to contribute perhaps you can help get that patch into shape!