Skip to content

Allow reading Cmd and WorkingDir from the OCI image config #18

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

Merged
merged 2 commits into from
Aug 4, 2022

Conversation

slp
Copy link
Collaborator

@slp slp commented Aug 4, 2022

No description provided.

slp added 2 commits August 4, 2022 15:02
libkrun's init is now able to read the workload parameters from a
per-container configuration file ("/krun_config.json"). Since the
configuration set via the library takes preference over the settings
in the configuration file, avoid configuring a initial binary nor a
workdir unless the user has explicitly requested them.

In case the configuration file is missing, libkrun's init is able to
fall back to some reasonable defaults.

Signed-off-by: Sergio Lopez <[email protected]>
libkrun's init/init.c is now able to read the workload parameters from
an OCI config file. Use "buildah inspect" to obtain this configuration
and write it to the expected location ("/.krun_config.json").

Signed-off-by: Sergio Lopez <[email protected]>
@slp slp merged commit 023c665 into containers:main Aug 4, 2022
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