1
0
mirror of https://github.com/containers/youki synced 2024-11-23 01:11:58 +01:00
Commit Graph

66 Commits

Author SHA1 Message Date
dependabot[bot]
492f26993d
chore(deps): bump clap from 3.1.6 to 3.1.7 in /crates
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.6...v3.1.7)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 00:57:52 +00:00
Yashodhan Joshi
f38639c84b Fix remaining clap-related clippy warnings 2022-03-28 18:31:26 +05:30
Yashodhan Joshi
a8dec2f3af Resolve deprecation warnings from clap 2022-03-27 17:20:37 +05:30
utam0k
96a50d9868
Merge pull request #732 from utam0k/improvement/meta-data
Add the metadates for publishing a crate
2022-02-25 22:16:22 +09:00
Adrian Reber
653b719dbb
Initial checkpoint support
This adds the first code to checkpoint a container. The checkpoint
command is name 'checkpointt' (with two 't's at the end) so that
container engines like Podman do not think to use this not yet finished
checkpoint restore implementation.

For Podman it is still necessary to tell CRIU that the network namespace
is external at least and restoring needs special handling to support
'--console-socket'.

Signed-off-by: Adrian Reber <areber@redhat.com>
2022-02-24 14:36:21 +00:00
utam0k
ff6d86b8fd
Add the metadates for publishing a crate.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-02-23 17:32:16 +09:00
Yashodhan Joshi
a8408661e8 Add minimum rust version requirement to libcgroups and libcontainers due to CVE-2022-21658 2022-01-21 20:19:50 +05:30
Emanuele Aina
45813109cb fix(docs): Fix link syntax in liboci-cli/README.md
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
2022-01-03 22:06:03 +01:00
Jian Zeng
21eaf4e020
feat: add --resource option to update subcommand
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2021-12-18 23:56:43 +08:00
Jian Zeng
09ecfba778 fix: address review comments
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2021-12-16 10:19:28 +08:00
Jian Zeng
37bf9387bb feat: add subcommand update 2021-12-16 10:19:28 +08:00
David Gibson
3626f4f4ec Move global command line options to liboci-cli crate
The OCI CLI document doesn't define any required global options, but there
are a number which are commonly accepted by most runtimes.  We define this
subset there, and incorporate it into the top-level Parser in Youki using

fixes #508

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:55 +11:00
David Gibson
2b66005d93 Move subcommand enums to liboci-cli crate
Because we want to allow a final user to add extension commands
easily, it doesn't work to entirely move the enum of runtime
subcommands into the liboci-cli crate.  However, using the
incoporate those into the top-level enum defined by youki.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:55 +11:00
David Gibson
09d9fae8cd Move unspecified, but common subcommands to liboci-cli crate
The OCI Runtime Command Line Interface specification[0] specifies only five
subcommands to implement.  However, there are a number of other subcommands
that are commonly implemented by runtimes, and commonly used by their
clients.

Move the parsing of a number of those subcommands into the liboci-cli
crate.  This leaves only one subcommand "info" parsed in the youki crate.
As far as I can tell this is a youki specific extension, since it doesn't
appear in either runc or crun.

[0] https://github.com/opencontainers/runtime-tools/blob/master/docs/command-line-interface.md

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:55 +11:00
David Gibson
ea448d05a8 Add some rudimentary documentation to the liboci-cli crate
In particular it has a summary of what subcommands implemented by various
runtimes are included in the frontend crate so far.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:50 +11:00
David Gibson
bf5577ccc0 Move argument structures for specified subcommands to a new crate
It would be useful to have an independent crate covering solely the OCI
command line front end of youki, to which other backends can then be
written.

To start on that, we create a new "oci-runtime-clap" crate, and move some
subcommand structure definitions into it.  For now we only move the
subcommands which are actually specified in the OCI runtime command line
interface document (v1.0.1):

https://github.com/opencontainers/runtime-tools/blob/master/docs/command-line-interface.md

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-02 17:20:31 +11:00