fix: latest Pulumi, make rootless containers work again using podman 4.X

master
Stefan Reimer 4 weeks ago
parent 8eefe1b3d8
commit fb7258dc0e
  1. 3
      Dockerfile
  2. 2
      conf/containers.conf
  3. 4
      conf/podman-containers.conf
  4. 12
      conf/storage.conf
  5. 2
      requirements.txt

@ -1,6 +1,6 @@
ARG RUNTIME_VERSION="3.10"
ARG DISTRO_VERSION="3.16"
ARG PULUMI_VERSION="3.40.1"
ARG PULUMI_VERSION="3.45.0"
FROM python:${RUNTIME_VERSION}-alpine${DISTRO_VERSION} AS builder
ARG PULUMI_VERSION
@ -79,7 +79,6 @@ RUN echo -e "$USER:1:999\n$USER:1001:64535" > /etc/subuid && \
WORKDIR /workspace
ENV XDG_RUNTIME_DIR=/tmp/podman-run-1000
ENV _CONTAINERS_USERNS_CONFIGURED=""
ENV BUILDAH_ISOLATION=chroot

@ -1,4 +1,5 @@
[containers]
volumes = [ "/proc:/proc" ]
netns="host"
userns="host"
ipcns="host"
@ -6,6 +7,7 @@ utsns="host"
cgroupns="host"
cgroups="disabled"
log_driver = "k8s-file"
[engine]
cgroup_manager = "cgroupfs"
events_logger="file"

@ -1,4 +0,0 @@
[containers]
volumes = [
"/proc:/proc",
]

@ -1,14 +1,2 @@
[storage]
driver = "overlay"
runroot = "/run/containers/storage"
graphroot = "/var/lib/containers/storage"
[storage.options]
additionalimagestores = [
"/var/lib/shared",
]
[storage.options.overlay]
mount_program = "/usr/bin/fuse-overlayfs"
mountopt = "nodev,fsync=0"
[storage.options.thinpool]

@ -5,7 +5,7 @@ click
pexpect
python-minifier
cfn-lint>=0.34
pulumi>=3.40.1
pulumi>=3.45.0
pulumi-aws>5.0.0
pulumi-aws-native
pulumi-policy

Loading…
Cancel
Save