podman/pkg/specgenutil
Paul Holzinger 9e94dc53b2
add new artifact mount type
Add a new option to allow for mounting artifacts in the container, the
syntax is added to the existing --mount option:
type=artifact,src=$artifactName,dest=/path[,digest=x][,title=x]

This works very similar to image mounts. The name is passed down into
the container config and then on each start we lookup the artifact and
the figure out which blobs to mount. There is no protaction against a
user removing the artifact while still being used in a container. When
the container is running the bind mounted files will stay there (as the
kernel keeps the mounts active even if the bind source was deleted).
On the next start it will fail to start as if it does not find the
artifact. The good thing is that this technically allows someone to
update the artifact with the new file by creating a new artifact with
the same name.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-12 19:42:14 +01:00
..
createparse.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
ports.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
ports_test.go Unit tests for pkg/specgenutil pkg/signal 2022-04-25 14:48:39 -05:00
specgen.go add new artifact mount type 2025-03-12 19:42:14 +01:00
specgenutil_test.go Switch all calls of assert.Nil to assert.NoError 2025-01-15 07:08:27 -05:00
util.go cleanup: add new --stopped-only option 2024-08-27 15:01:23 +02:00
util_test.go Unit tests for pkg/specgenutil pkg/signal 2022-04-25 14:48:39 -05:00
volumes.go add new artifact mount type 2025-03-12 19:42:14 +01:00
volumes_test.go Replace strings.SplitN with strings.Cut 2024-01-11 13:50:15 +00:00