diff --git a/Containerfile b/Containerfile index b10f453..4e6f6b1 100644 --- a/Containerfile +++ b/Containerfile @@ -14,6 +14,12 @@ RUN apt-get install -y gpg sudo wget curl build-essential software-properties-co # Install handy developer tools. RUN apt-get install -y iputils-ping postgresql-client git-delta golang jq sqlite3 vim pipx ripgrep openssh-server +# Install and configure Podman. +RUN apt-get install -y iptables podman +# Podman doesn't use IPv6, so we only need to update the path for the IPv4 executable. +RUN update-alternatives --set iptables /usr/sbin/iptables-legacy +COPY --chown=root ./assets/podman/containers.conf /etc/containers/containers.conf + # Install mise-en-place for project (and in some cases global) tooling management. RUN install -dm 755 /etc/apt/keyrings RUN wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null diff --git a/assets/podman/containers.conf b/assets/podman/containers.conf new file mode 100644 index 0000000..835ba49 --- /dev/null +++ b/assets/podman/containers.conf @@ -0,0 +1,2 @@ +[network] +firewall_driver = "iptables"