Giter VIP home page Giter VIP logo

Comments (3)

erikh avatar erikh commented on May 30, 2024

This is something I really want to do. Here's a plan of attack:

We keep a running list of layers that we're currently operating on. Then, we manage a single mount using overlayfs stacking to mount them. we write to the top layer. Once the build has successfully completed, we tar the layers.

As for a build cache, if we were to specify a dir and rename each new mount with the SHA of the contents of the directory, as long as we don't rely on it at tar time we should have plenty to key off of for dirs to manage. This would also make the cache local and retargettable offering some additional options.

I don't see runc being used for more than the run statement, we have the OCI and docker image manipulation code available to us so we can use that for the rest. Managing the overlayfs mounts will be key.

A key problem with runc is that it doesn't have any networking, which is fine for many situations but certainly not optimal. Something to consider if we're going to go all-in on this.

The builder has been broken out into a building context and an execution context, so you could do this work on the side if you wanted.

from box.

diclophis avatar diclophis commented on May 30, 2024

Is there any value in leveraging some of the "multi container build-strategy" technology found in this project? https://github.com/haconiwa/haconiwa

from box.

erikh avatar erikh commented on May 30, 2024

@diclophis I'm on vacation; sorry about the late reply!

Since this is a C-based project it would be especially hard to cherry-pick this functionality.

You may or may not also be aware of GitHub.com/docker/libcontainer which is what powers docker and is written in go (which is what box uses). It is very mature software at this point. If I were to go down this road I would probably do that.

from box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.