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

Implement cgroups #24

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
acf3181
kaps: Implement a minimal OCI spec constructor
MaloPolese Feb 23, 2022
0d3fcb8
kaps: Implement a CLI command to generate the minimal OCI spec
MaloPolese Feb 23, 2022
9607401
kaps: Update github action workflow to run test in all workspace
MaloPolese Mar 14, 2022
aae48e7
container: Do not bind an empty return
sameo Apr 3, 2022
a04b24a
fix: fix mounts leak when spawn fails
mflagey Feb 23, 2022
52bec76
test: test mounts not leak when spawn fails
mflagey Apr 5, 2022
52e5476
mounts: Make apply a Mounts method
Apr 12, 2022
cdce0eb
mounts: Use a more sensible field name for Mounts
Apr 12, 2022
a972806
docs: add CLI reference
thomasgouveia Feb 20, 2022
d08d0c2
oci-image: add the snapshots module
thomasgouveia Apr 16, 2022
b00ace0
oci-image: add state module
thomasgouveia Apr 16, 2022
1a2080b
oci-image: add pull module
thomasgouveia Apr 16, 2022
c5c326b
oci-image: add image manager module
thomasgouveia Apr 16, 2022
a40d4a2
kaps: add oci-image crate to binary
thomasgouveia Apr 16, 2022
017d5e7
kaps: add `helper` module to avoid code duplication
thomasgouveia Apr 19, 2022
be192a5
kaps: add `pull` command support (#12)
thomasgouveia Feb 20, 2022
e45f656
kaps: add core logger
thomasgouveia Feb 23, 2022
ffdbe71
kaps: add mount command support (#12)
thomasgouveia Mar 14, 2022
8b1256f
docs: add quickstart in README
thomasgouveia Mar 30, 2022
ebb287a
ci: Run cargo as root
sameo Apr 20, 2022
b7a55b2
test: add test for environment
mflagey Apr 3, 2022
c45b97b
test: add test for command
mflagey Apr 6, 2022
9f6570e
test: add test for container
mflagey Apr 6, 2022
a3ac95b
test: add test for mounts
mflagey Apr 14, 2022
51c76fa
kaps: Implement simple OCI container state specification
kalil-pelissier Apr 12, 2022
716f943
kaps: Add id parameter to run command
kalil-pelissier Apr 12, 2022
d391810
kaps: add memory and cpu cgroups support
hugoamalric Apr 15, 2022
79f77a6
kaps: add cpu and memory resources in container config file example
hugoamalric May 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: add test for container
Signed-off-by: NelopsisCode <mathiasflagey1201@gmail.com>
  • Loading branch information
mflagey authored and sameo committed Apr 22, 2022
commit 9f6570e8a1933efe0b089a9c15a5512e85b25166
8 changes: 7 additions & 1 deletion container/src/lib.rs
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ impl Container {

#[cfg(test)]
mod tests {
use crate::Container;
use crate::{Container, Error};
use proc_mounts::MountList;
use tempdir::TempDir;

@@ -139,4 +139,10 @@ mod tests {

Ok(())
}

#[test]
fn test_create_container_with_invalid_oci_runtime_spec_file() -> Result<(), Error> {
assert!(Container::new("invalid_spec_file").is_err());
Ok(())
}
}