contour
contour copied to clipboard
support Podman for local development
Some contributors may want to use Podman locally to run containers. The scripts and documentation should be updated to support this use case in addition to the current use case of using Docker. From my initial testing, here are some things that need to be addressed:
- use
podmancommand instead ofdockerin scripts (e.g. https://github.com/projectcontour/contour/blob/main/test/scripts/make-kind-cluster.sh,make containercommand) - set
KIND_EXPERIMENTAL_PROVIDER=podman - the format of the
podman network inspectoutput is different than that ofdocker network inspect, which breaks https://github.com/projectcontour/contour/blob/main/test/scripts/make-kind-cluster.sh#L78-L89 -- update for the podman format kind load docker-imagedoes not work when using Podman -- need to replace withpodman save image | kind load image-archive -(ref. https://github.com/projectcontour/contour/blob/main/test/scripts/install-contour-working.sh#L37, https://github.com/kubernetes-sigs/kind/issues/2729#issuecomment-1110152680)
Ultimately, running commands like make install-contour-release and make install-contour-working should work properly with Podman.