89luca89 / lilipod

Lilipod is a simple container manager, able to download, unpack and use OCI images from various container registries.
GNU General Public License v3.0
240 stars 11 forks source link

Implement a build command #1

Closed user-name-is-taken closed 9 months ago

user-name-is-taken commented 1 year ago

This is probably possible using buildkit if you're open to adding a dependency or run buildkit inside a container in daemonless mode as described here with a command similar to this:

docker run \
    -it \
    --rm \
    --privileged \
    -v /path/to/dir:/tmp/work \
    --entrypoint buildctl-daemonless.sh \
    moby/buildkit:master \
        build \
        --frontend dockerfile.v0 \
        --local context=/tmp/work \
        --local dockerfile=/tmp/work
89luca89 commented 1 year ago

Will investigate this @user-name-is-taken thanks :smile:

mirkobrombin commented 9 months ago

In my opinion this is out of scope here, the main purpose of lilipod is to serve as container engine rather than an image builder. The problem with implementing this feature is that it will open the window for more new features which are out of context here, this should be clear at the start.

Anyway, I can see a problem using imagebuildah; from my experience, it requires a standard image storage, which lilipod does not offer. If I am correct, this requires lilipod to setup another storage to be used just for those builds.

89luca89 commented 9 months ago

I agree, building is a bit too far off of the project