Commit ab25cef
ci: Fix building with Podman
I had two issues building with Podman:
1. `/dev/shm` did not have available space--on a host with ~16 GiB of
RAM. To work around this, I added a check that at least 1 GiB of
space is available or else `/dev/shm` won't be used.
2. Permission denied errors when moving binaries to `/out` when running
rootlessly. The user ID inside the container was not mapping to the
host user ID. Setting `PODMAN_USERNS=keep-id` solves this. The use
of this environment variable instead of the equivalent `--userns`
option should ensure that Docker runs are not affected by this
change. (I do not override `$PODMAN_USERNS` if it is already set,
so that users can easily override it if needed for their host
system.)
Tested on Alpine Linux edge x86_64 with Podman 3.4.4. (`apk add
podman-docker` provides a shim for `docker` that invokes `podman`.)1 parent 9a13f09 commit ab25cef
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
0 commit comments