npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@universityofwarwick/github-runner-podman-hooks

v0.9.0

Published

Podman hooks for GitHub Actions self-hosted runners

Readme

Runner Container Hooks for Podman

The GitHub Actions runner has a feature called Container Hooks that let you customise what actually happens when a workflow requests some work run in a container. The default behaviour without hooks is to run docker.

This repo is based on the official container hooks repo which has implementations for Kubernetes and Docker. The Docker one has been customised relatively lightly here to instead call Podman, and makes allowances for differences in Podman behaviour.

These hooks will run podman as the runner user, so it assumes a rootless setup. Generally this is best especially for a persistent server.

⚠️ These hooks seem to work fine for us but we haven't tested every action and every server. Some issues may be related to your specific Podman configuration. If there's a general bug, we may look at fixing it. If there is some extra behaviour that you need for your use case, please raise a PR.

Summary of changes made for Podman

  • The command being run is now podman, naturally
  • Passing environment variables for the container through to podman was confusing it, especially for variables like HOME, so the values of those are now passed through in the arguments.
  • Podman will not create missing volume sources, but the runners assumes this behaviour, so we will create it if required.
  • If a volume mount is detected where the source is /var/lib/docker.sock, we will translate that to be a Podman socket so that Docker-in-Podman will possibly work. It's recommended to use podman directly, though.
  • Volume mounts often need :z to be appended so that the correct SELinux labels are added to files. Without this, the container generally can't access a host mount at all.

Other allowances you may need to make

These don't relate to the hook itself but may affect how you set up the system containing your runner compared to running Docker. Some of these aren't even to do with running jobs as Podman containers but simply running any containers using Podman instead of Docker.

  • Add config to /etc/containers/registries.conf.d to teach it how to resolve short names, as it won't always assume that the registry is docker.io and will fail rather than guess. Alternatively, stop using short names.

  • Podman may re-exec itself with a cut-down PATH and be unable to find tools such as pasta. Configure ~/.config/containers/containers.conf to include locations for all your networking helpers. e.g.:

    [engine]
    helper_binaries_dir = [
      "/usr/libexec/podman",
      "/usr/bin"
    ]
  • If you are using Testcontainers, make sure ~/.testcontainers.properties contains:

    docker.client.strategy=org.testcontainers.dockerclient.DockerClientProviderStrategy
    docker.host=unix:///run/user/1000/podman/podman.sock

    where /run/user/1000 should match your value for $XDG_RUNTIME_DIR (unfortunately this properties file doesn't support variable substitution)

Building

npm run bootstrap
npm run build-all

This should create a file at packages/podman/dist/index.js which you can then pass to your runner.