Commit 932b29b
committed
test(cpu-usage): fix archlinux container build and keep images between runs
Two fixes so the cpu-usage integration test actually runs on
archlinux-vlatest and subsequent runs reuse cached layers:
- The cached archlinux:latest base image can be months out of date,
so its archlinux-keyring no longer trusts the current packagers
and pacman -Syu fails with "signature ... is unknown trust".
Refresh the keyring via pacman-key --init / --populate and pull
in a fresh archlinux-keyring package before the full upgrade.
Also pass --disable-sandbox so pacman 7.x's landlock download
helper does not need to create the sandbox user inside rootless
podman, which is not allowed.
- Testcontainers' DockerImage defaults to clean_up=True, which
untags the built image and prunes dangling parent layers on
every run. That wipes the cached build context and turns each
invocation into a full rebuild from the base image. Setting
clean_up=False keeps the image on the host so subsequent runs
hit the layer cache and finish in seconds instead of minutes.1 parent d594d80 commit 932b29b
File tree
2 files changed
+19
-3
lines changed- check-plugins/cpu-usage/unit-test
- containerfiles
2 files changed
+19
-3
lines changedLines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
8 | 18 | | |
9 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
0 commit comments