Coder Social home page Coder Social logo

OCI hooks about garden-runc-release HOT 6 CLOSED

cloudfoundry avatar cloudfoundry commented on September 13, 2024
OCI hooks

from garden-runc-release.

Comments (6)

cf-gitbot avatar cf-gitbot commented on September 13, 2024

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/153601433

The labels on this github issue will be updated when the story is started.

from garden-runc-release.

julz avatar julz commented on September 13, 2024

Hi @juaningan - no, you can't, garden uses the create/start split rather than OCI hooks. This means you can supply a network-plugin (via the network_plugin bosh property) which will be run to configure the network of the container after it is created but before it is started. We don't support generic plugins or hooks but if you're able to discuss your specific use case for them perhaps we can suggest other ways of achieving the same thing?

from garden-runc-release.

oneingan avatar oneingan commented on September 13, 2024

Really my usecase is to get kvm acceleration running in runC container in concourse. So I was thinking in OCI hooks to modify the standard config.json that concourse initialize.

from garden-runc-release.

julz avatar julz commented on September 13, 2024

cool! so you have two options there:

  1. You can define a runtime_plugin to use a runtime other than runc. If you like, this plugin can actually just do stuff to the bundle/config.json and then exec the actual runc binary.
  2. You can wait for us to expose bundle_plugins which will allow you to define transformations on bundles directly (but that's a little way down our backlog so you may want to go for the first approach!).

Let us know if you want any help and how you get on: we're always available in #garden channel on slack- good luck!

from garden-runc-release.

oneingan avatar oneingan commented on September 13, 2024

Ok, perfect thanks a lot. I'll give it a try. Just a question, what is the difference between runtime and image plugin?

from garden-runc-release.

julz avatar julz commented on September 13, 2024

image_plugin is responsible for downloading the image (e.g. from docker hub or an OCI registry, using OCI image-spec), runtime_plugin is responsible for running it (i.e. it implements OCI runtime-spec, like runc).

An example of an image_plugin is grootfs. An example of a runtime_plugin is runc.

(Concourse doesn't actually use image plugins, though, since it directly downloads the images with baggage_claim and passes them to us directly).

from garden-runc-release.

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.