Coder Social home page Coder Social logo

Comments (4)

wking avatar wking commented on June 7, 2024

On Mon, Sep 14, 2015 at 08:21:24PM -0700, Tiesheng wrote:

However, I found that there is no complete oci-bundle example to
use, and I had to scrabble up an oci-bundle directory through
scanning the opencontainers/specs project.

I have a few OCI bundles in branches of 1, e.g. [2,3], but I haven't
updated them to match the v0.1.1 spec (or v0.1.0, #183). They're
2-clause BSD, so feel free to borrow under those terms ;).

I'm less enthusiastic about bundling an example like that into this
repository, since we'd have to pick a platform, vendor some random
binaries compiled elsewhere, etc. I think it's better to have a few
external repositories with simple things (like my busybox shell 2),
ideally under github.com/opencontainer/ and link to those.

from runtime-spec.

ChengTiesheng avatar ChengTiesheng commented on June 7, 2024

@wking, thanks for your detailed reply. What I want is something like https://github.com/mrunalp/ocitools
When I run oci generate, I can get config.json and runtime.json, but no corresponding rootfs.
So what I exactly need is a tool can generate a complete bundle, including json files and rootfs.

from runtime-spec.

wking avatar wking commented on June 7, 2024

On Thu, Sep 24, 2015 at 06:42:44PM -0700, Tiesheng wrote:

When I run oci generate, I can get config.json and runtime.json, but
no corresponding rootfs. So what I exactly need is a tool can
generate a complete bundle, including json files and rootfs.

Generating a rootfs is hard, because there are so many choices. For
example, this is the section of my Makefile that downloads a Gentoo
stage3 and unpacks the bare minimum needed to run a Go binary with
some cgo linking 1. That's not much work, but it is a ~200 MB
download (the whole, compressed stage3) for 3.8 MB of unpacked rootfs.
And if you don't trust the Gentoo releng signature, you'll be using
untrusted binaries. So I don't think my β€œgrab stuff from a stage3”
approach is going to be everyone's cup of tea. But those are problems
without an easy solution. For example, if someone grabbed files from
a Debian release to populate a rootfs, you'd need to trust the Debian
releng signature (or however they sign their packages/releases). And
maybe you need more from your distribution than just ld, libc, and
libpthread? Or maybe you want musl and not glibc?

If folks intend to use OCI bundles directly (instead of through
higher-level tools like Docker), I think it's probably best to have
folks publish generic templates like my oci-gentoo-minimal master
branch, and then have folks who don't want to get into that just pick,
for example, someone else's popular BusyBox template (or whatever) for
their project.

from runtime-spec.

ChengTiesheng avatar ChengTiesheng commented on June 7, 2024

Solved, thanks.

from runtime-spec.

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.