You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ bazel-out/aarch64-fastbuild/bin/foobar_tarball.sh
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: payload does not match any of the supported image formats (oci, oci-archive, dir, docker-archive)
tar: Write error
Looking into the issue, this appears to be a compatibility issue with how older versions of podman implement podman load. In particular the following two commands lines work differently:
# fails with "payload does not match any of the supported image formats"
podman load --input <(tar -c $FILES)
# succeeds and loads the image
tar -c $FILES | podman load
This issue appears fixed in newer versions of podman, however I haven't tracked down the details.
The fix is relatively straightforward; to change the podman load command line oci/private/load.sh.tpl
The text was updated successfully, but these errors were encountered:
nholstein
added a commit
to nholstein/rules_oci
that referenced
this issue
Oct 9, 2024
Older versions of Podman appear to handle loading a tarball differently
depending upon with the input is /dev/stdin or not. In particular:
podman load --input <(cat foo.tar)
raises an error, while:
cat foo.tar | podman load
works without error. (Podman loads from stdin if no --input is specified.)
This enables support for podman v3.4.4 included in Ubuntu 22.04.
fixesbazel-contrib#711
Older versions of Podman appear to handle loading a tarball differently
depending upon with the input is /dev/stdin or not. In particular:
podman load --input <(cat foo.tar)
raises an error, while:
cat foo.tar | podman load
works without error. (Podman loads from stdin if no --input is specified.)
This enables support for podman v3.4.4 included in Ubuntu 22.04.
fixesbazel-contrib#711
I'm running Bazel v7.2.0, rules_oci v2.0.0 on an Ubuntu 22.04.5 LTS system. I've installed the Ubuntu package for podman which is currently v3.4.4.
My build uses
oci_load
to build and import containers into podman:The resulting script fails to run:
Looking into the issue, this appears to be a compatibility issue with how older versions of podman implement
podman load
. In particular the following two commands lines work differently:This issue appears fixed in newer versions of podman, however I haven't tracked down the details.
The fix is relatively straightforward; to change the
podman load
command line oci/private/load.sh.tplThe text was updated successfully, but these errors were encountered: