i tested locally with rootless podman i hate you

zenfyr.dev 5872d27b 9d442aef

verified
Changed files
+30 -1
.tangled
workflows
+30 -1
.tangled/workflows/build-test.yml
···
- buildah
- curl
+
environment:
+
HOME: "/root"
+
TMPDIR: "/root/tmp"
+
BUILDAH_ISOLATION: "chroot"
+
steps:
- name: set up buildah
command: |
-
id
+
cat >/etc/passwd <<'EOF'
+
root:x:0:0:root:/root:/bin/sh
+
EOF
+
+
echo 'root:x:0:' >/etc/group
+
mkdir -p /root
+
chown 0:0 /root
+
+
mkdir -p "$HOME/tmp" "$HOME/.local/share/containers/storage" "$HOME/.local/run/containers/storage" "$HOME/.config/containers"
+
chmod 1777 "$HOME/tmp"
+
+
cat > "$HOME/.config/containers/policy.json" <<'EOF'
+
{ "default": [ { "type": "insecureAcceptAnything" } ] }
+
EOF
+
+
cat > "$HOME/.config/containers/registries.conf" <<'EOF'
+
unqualified-search-registries = ["docker.io"]
+
EOF
+
+
cat > "$HOME/.config/containers/storage.conf" <<'EOF'
+
[storage]
+
driver = "vfs"
+
graphroot = "$HOME/.local/share/containers/storage"
+
runroot = "$HOME/.local/run/containers/storage"
+
EOF
- name: build image
command: |