Giter VIP home page Giter VIP logo

Comments (5)

jvinod avatar jvinod commented on August 18, 2024

I propose we start with a simple implementation as an additional field to CreateOptions

// CreateOptions are passed in with a CreateRequest
type CreateOptions struct {
    // FailIfExists fail create request if a volume with matching Locator already exists.
    FailIfExists bool
    // CreateFromSnap will create a volume with specified SnapID
    CreateFromSnap VolumeID
       // SourceURI e.g github://github.com/libopenstorage/openstorage
    SourceURI string
}

from openstorage.

gourao avatar gourao commented on August 18, 2024

That would work for starters. However I think people will have multiple source URIs and do not necessarily want that to equate to multiple production volumes to manage. That said, this is a start in the right direction.

from openstorage.

kunalkushwaha avatar kunalkushwaha commented on August 18, 2024

The need is very practical, But I feel putting provisioning logic in osd/driver code will make it more complex.
I like the way Hashicorp Packer does the provisioning for preparing images. You may like to take look at that.

Parse the yaml file, and move the provisioning code in shell script or if any other supported provisioner format like chef, ansible. (sooner or later, people will raise this request too)

So whole provisioning will be offloaded to external process rather then OSD.

from openstorage.

gourao avatar gourao commented on August 18, 2024

I think my original proposal is a bit complicated but I think one of the most common practices with volumes and containers are to start up a job with some pre populated data. In order to do that you want to create a volume staged with some contents and that is the motivation behind this PR.

Maybe a simple workflow where a volume create followed by a "cp" of some sort into the volume (not a running container) will suffice. Then the volume can be attached to the container ... and then the container can be started with the volume with the staged contents.

from openstorage.

gourao avatar gourao commented on August 18, 2024

Seeding for github is supported.

from openstorage.

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.