Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: umoci: add umoci-raw-runtime-config(1) #110

Merged
merged 7 commits into from
Apr 10, 2017
Merged

cmd: umoci: add umoci-raw-runtime-config(1) #110

merged 7 commits into from
Apr 10, 2017

Conversation

cyphar
Copy link
Member

@cyphar cyphar commented Apr 9, 2017

Add a new command to allows users that have to parse the generated
config.json often much more efficient (by allowing them to skip the
layer unpacking steps).

Since the output of this command is not quite obvious unless you know
what it's doing, hide it behind a "raw" subcommand that should scare
away users that don't know enough about the OCI specs.

Implements #21
Signed-off-by: Aleksa Sarai asarai@suse.de

@cyphar cyphar force-pushed the cmd-raw-config branch 2 times, most recently from 324067a to 9edbbf5 Compare April 9, 2017 12:57
@cyphar cyphar force-pushed the cmd-raw-config branch 4 times, most recently from 472f37c to 96b597f Compare April 10, 2017 04:20
Make UnpackManifest a bit less monolithic, though this code really needs
a stream cleaning. This is in preparation of umoci-raw-config(1).

Signed-off-by: Aleksa Sarai <asarai@suse.de>
If the Config.User string is numeric then this isn't an issue, however
we need to return defaults if Config.User is some user and we haven't
provided a rootfs. This is going to be required for umoci-raw-config(1)
to work nicely.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
Add a new command to allows users that have to parse the generated
config.json often much more efficient (by allowing them to skip the
layer unpacking steps).

Since the output of this command is not quite obvious unless you know
what it's doing, hide it behind a "raw" subcommand that should scare
away users that don't know enough about the OCI specs.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
These tests are basically a clone of the umoci-config(1) tests, but
using just umoci-raw-runtime-config(1) to generate the config.json.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
Signed-off-by: Aleksa Sarai <asarai@suse.de>
Signed-off-by: Aleksa Sarai <asarai@suse.de>
The old system of symlinks was bad and kept breaking quite often, so
switch to symlinking the sources not the results. In addition, clean up
some of the overly-liberal usage of [].

Signed-off-by: Aleksa Sarai <asarai@suse.de>
@cyphar
Copy link
Member Author

cyphar commented Apr 10, 2017

LGTM.

@cyphar cyphar merged commit 06871d9 into master Apr 10, 2017
cyphar referenced this pull request Apr 10, 2017
LGTMs: @cyphar
Closes openSUSE/umoci#110
@cyphar cyphar deleted the cmd-raw-config branch April 10, 2017 14:11
@cyphar cyphar added this to the 0.2.0 milestone Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant