1
0
mirror of https://github.com/containers/youki synced 2024-09-22 11:50:51 +02:00
Commit Graph

25 Commits

Author SHA1 Message Date
Toru Komatsu
09e67372a8
Rust 1.72 (#2323)
* Rust 1.72.0

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Fix lint errors from 1.72.0

Signed-off-by: utam0k <k0ma@utam0k.jp>

---------

Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-08-29 08:50:15 -07:00
Yashodhan Joshi
4e26799e15 Rename the rootless struct and correspondigs to UserNamespaceConfig and according. 2023-08-12 19:50:25 +05:30
Eric Fang
f3da56e583
Make container_args clone-able (#2193)
Make the container_args clone-able and remove the use of references.
Container_args is passed to the intermediate and init process, so we
need to make sure it can across the clone process boundry safely by
allowing passing of the container_args ownership to the new process.

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-23 21:35:50 +09:00
Eric Fang
c3559e4a0a
refactored executor and executor manager (#2186)
* refactored executor and executor manager

Refactored the executor and executor manager to be clone-able and more
ergonomics.

Removed the use of executor manager with a vector of executor. Instead
we favor composing executors into a new executor. Composing also allows
the implementer to be precise about the execution orders. The old
executor manager with its vector implementation is not explicit enough
about the order when multiple executor is involved.

Re-implement the executor to be a function pointer instead of the Fn
family traits. Traits will type erase and difficult to deal with when
implementing clone.

Refactored the wasm related exectors to use the new scheme.

Signed-off-by: yihuaf <yihuaf@unkies.org>

* Add comments and address the reviews

Signed-off-by: yihuaf <yihuaf@unkies.org>

* Add a section in executor

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-21 21:12:21 +09:00
rongfu.leng
f6859f08ae
add io priority (#2164)
Signed-off-by: lengrongfu <1275177125@qq.com>
2023-07-17 08:41:29 -07:00
yihuaf
fb807b482c fix syscall reference and lifetime
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-10 23:00:55 -07:00
Eric Fang
0d6b0d563b
Finally, remove anyhow from the libcontainer dependency. (#1937)
* remove anyhow

Signed-off-by: yihuaf <yihuaf@unkies.org>

* removed anyhow from workload

Signed-off-by: yihuaf <yihuaf@unkies.org>

* clean up the anyhow errors

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix error message

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fixed wasm error

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-19 19:03:37 +09:00
yihuaf
b82f42e4b5 implemented thiserror for containers
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-16 14:50:45 -07:00
Eric Fang
dcc13ff365
convert youki to use tracing (#1899)
* convert youki to use tracing

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix default logging to stderr

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix unsafe

Signed-off-by: yihuaf <yihuaf@unkies.org>

* turn off time stamp for text log to stderr

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-12 20:47:05 +09:00
utam0k
c9a69e4525
libcontainer: Make the workloads injectable
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-03-11 10:37:16 +09:00
zhuli
03f60ba9e4 buffer read and write
Signed-off-by: zhuli <wanlisnx@gmail.com>
2023-02-21 08:30:50 +08:00
utam0k
72313bd5a8
fix the warns from cargo clippy
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-02-12 20:15:56 +09:00
utam0k
daf7fb2834
Update Rust 1.66
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-12-24 21:02:53 +09:00
Yashodhan Joshi
a96f8d0aac Upgrade to 1.65 and fix lint errors 2022-11-07 17:05:13 +05:30
Yashodhan Joshi
bed057fb75 Extract detached into main builder struct, better error message handling 2022-10-20 19:55:23 +05:30
Yashodhan Joshi
f5a84bd7ed Actually set value of detach from command args 2022-10-07 20:35:45 +05:30
Yashodhan Joshi
c6b8b819ec Make handling of exec containers slightly more idiomatic
Rather than drilling down RawFd from tenant to init_process,
this instead adds an enum in ContainerArgs, containing RawFd
2022-10-07 11:59:17 +05:30
Yashodhan Joshi
603475b478 Fix formatting 2022-10-06 14:00:10 +05:30
Yashodhan Joshi
911381c042 Fix exec command for detached 2022-10-04 16:01:05 +05:30
Yashodhan Joshi
4f2e27d588
Remove the is_exec_builder as it is redundant, replace with !init 2022-09-01 21:11:14 +09:00
Yashodhan Joshi
aa5d9c3c9b
Make the intermediate process wait conditionally, only for exec
Now the intermediate process waits for the main process only
when exec is called, not when the container is created. This
prevents it from waiting for created contianers, for which
exec might not be called.
This also fixes some formatting issues
2022-09-01 21:11:14 +09:00
utam0k
4bafaabb42
Wait for the terminated of the command ran by exec command.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-09-01 21:06:21 +09:00
Furisto
e3fcdafc92 Bump procfs from 0.13.2 to 0.14.0
Signed-off-by: Furisto <24721048+Furisto@users.noreply.github.com>
2022-08-06 09:48:19 +02:00
Furisto
211c05358c Ensure exec can find config.json 2022-01-17 23:29:24 +01:00
Furisto
9b7d2707e0
Fix ambigious names by renaming crate to libcontainer 2021-10-22 21:58:11 +02:00