Skip to content

Europa support for docker.#Load #1304

Closed

Description

@aluzzardi

Leftover item from #1206

Loading Docker images to a remote engine is no longer possible in Europa due to the lack of op.#SaveImage.

Consider adding it back or finding an alternative

Activity

  1. added this to the milestone on Dec 23, 2021
  2. modified the milestones: , next on Jan 7, 2022
  3. aluzzardi commented on Jan 25, 2022

    @aluzzardi
    ContributorAuthor

    Pushing back milestone

  4. modified the milestones: next, on Jan 25, 2022
  5. self-assigned this
    on Mar 16, 2022
  6. helderco commented on Mar 16, 2022

    @helderco
    Contributor

    This was mentioned at least twice by users so I picked it up today. I already ported a working dagger.#Export saving the tar into an dagger.#FS. I'm going to make the dagger.#Load abstraction on top of it.

    I know there's a performance issue for buffering in memory, I'm leaving optimizations to last. Is it ok to export to a temporary dir in the client machine, or is there a better way?

  7. aluzzardi commented on Mar 16, 2022

    @aluzzardi
    ContributorAuthor

    I know there's a performance issue for buffering in memory, I'm leaving optimizations to last. Is it ok to export to a temporary dir in the client machine, or is there a better way?

    Turns out it was not just about performance, the problem was sending the entire tar in LLB (e.g. WriteFile). There's a maximum message size with buildit and we were exceeding it very easily. It worked with alpine, but as soon as we had something just a little bit bigger, it would fail.

    It wasn't possible pre-Europa, but I think the solution would be to create a temporary directory in PreRun and add it to LocalDirectories. Then in Run export to that local directory and create a #FS using llb.Local.

    That way we avoid keeping the tar in memory AND avoid sending it as bytes in LLB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions