Comments (4)
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.
@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.
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.
Solved, thanks.
from runtime-spec.
Related Issues (20)
- IMA Namespace support
- runtime-linux.md: terms "source" and "destination" are very unclear for symlinks HOT 4
- lifecycle: which pid the Query State operation returns is underspecified
- [RFC] Defining semantics for "implied directories" in the image spec HOT 1
- https://github.com/opencontainers/runtime-spec/blob/494a5a6aca782455c0fbfc35af8e12f04e98a55e/schema/config-schema.json#L35 HOT 1
- Runtime and Lifecycle:Operations: why split create cmd and start cmd? HOT 1
- PRs are not mergeable due to the pending `code-review/pullapprove` HOT 3
- config.json: process.rlimits and linux.resources.memory/cpu
- runtime.md: State MUST be serialized with specific indentation pattern? HOT 3
- `runAsGroup` vs `supplementalGroups` HOT 3
- support PostExit Hook HOT 11
- Proposal: Add the `update` operation HOT 1
- When using Windows containers in Containerd the windows layerFolder is null and the root is blank HOT 10
- whether update container delete doc
- When running `make rust-oci-tests` getting error `container state could not be retrieved successfully.` HOT 3
- features.md: add unsafe annotation list HOT 2
- config-linux: Should we clarify when should we set the swap limit? HOT 2
- idmapped mounts: should they be applied recursively?
- dev versions don't respect semver HOT 6
- features: mountExtensions: how best to represent feature support for idmap? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runtime-spec.