project-machine / puzzlefs

A next-generation container filesystem
Apache License 2.0
393 stars 17 forks source link

Remove docker dependency for `build_and_extract_is_noop` test #68

Closed ariel-miculas closed 1 year ago

ariel-miculas commented 1 year ago

We use docker only to pull the ubuntu:latest image, which can be done by a combination of skopeo and umoci: something like

skopeo copy docker://ubuntu:jammy oci:oci:ubuntu
^ copy ubuntu:jammy into image called 'ubuntu' in directory 'oci/'
umoci unpack --rootless --image oci:ubuntu ubuntu
^ unpack the image called "ubuntu" in directory oci/ into directory ubuntu/rootfs/
ariel-miculas commented 1 year ago

We can store the ubuntu image and unpack the rootfs into $XDG_DATA_HOME/puzzlefs (defaults to $HOME/.local/share)