GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — First-class Podman support · Issue #2173 · pre-commit/pre-commit

First-class Podman support #2173

New issue
Copy link
New issue
Copy link
Closed
Closed
First-class Podman support#2173
Copy link

Description

@MLNW
MLNW
opened on Dec 24, 2021
Issue body actions

describe your issue

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/sh
exec /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 hooks
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v3.2.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
  - repo: local
    hooks:
      - id: vale
        name: Validate Style Guide with Vale
        description: Validate Style Guide with Vale
        language: docker_image
        entry: docker.io/jdkato/vale
        pass_filenames: true
        always_run: false
        verbose: true
        require_serial: false

~/.cache/pre-commit/pre-commit.log (if present)

No response

Activity

  1. asottile commented on Dec 24, 2021

    @asottile
    asottile
    on Dec 24, 2021
    Member
    More actions

    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!

  2. asottile
    closed this as completedon Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.