Skip to content

Commit

Permalink
Merge branch 'main' into clean_makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 authored Jul 25, 2024
2 parents 129e434 + 65087e3 commit 29e392a
Show file tree
Hide file tree
Showing 8 changed files with 806 additions and 613 deletions.
1,374 changes: 784 additions & 590 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ chrono = { version = "0.4.26", default-features = false, features = [
] } # default features except `oldtime`
client = { path = "./client" }
clap = { version = "4.3.21", features = ["derive"] }
fancy-regex = "0.11.0"
fancy-regex = "0.13.0"
futures-util = "0.3.28"
heck = "0.4.1"
heck = "0.5.0"
lazy_static = "1.4.0"
nix = "0.26.2"
nix = "0.28.0"
proc-macro2 = "1.0"
proto = { path = "./proto" }
proto-reader = { path = "./crates/proto-reader" }
Expand Down
14 changes: 7 additions & 7 deletions auraed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,26 @@ clone3 = "0.2.3"
fancy-regex = { workspace = true }
futures = "0.3.28"
ipnetwork = "0.20.0"
iter_tools = "0.1.4"
iter_tools = "0.20.0"
libc = "0.2.155" # TODO: Nix comes with libc, can we rely on that?
lazy_static = { workspace = true }
libcgroups = { git = "https://github.com/containers/youki", tag = "v0.1.0", default-features = false, features = [
libcgroups = { git = "https://github.com/containers/youki", rev = "5b62356e377def45c36c29183c586c4302685cf8", default-features = false, features = [
"v2",
] }
libcontainer = { git = "https://github.com/containers/youki", tag = "v0.1.0", default-features = false, features = [
libcontainer = { git = "https://github.com/containers/youki", rev = "5b62356e377def45c36c29183c586c4302685cf8", default-features = false, features = [
"v2",
] }
log = "0.4.17"
netlink-packet-route = "0.13.0" # Used for netlink_packet_route::rtnl::address::nlas definition
nix = { workspace = true, features = ["sched"] }
oci-spec = "= 0.6.1"
nix = { workspace = true, features = ["sched", "mount", "signal"] }
oci-spec = "0.6.4"
once_cell = "1"
procfs = "0.14.2"
procfs = "0.16.0"
proto = { workspace = true }
rtnetlink = "0.11.0"
serde_json.workspace = true
serde.workspace = true
syslog-tracing = "0.1.0"
syslog-tracing = "0.3.1"
thiserror = { workspace = true }
tokio = { workspace = true, features = [
"fs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use client::AuraeSocket;
use clone3::Flags;
use nix::{
libc::SIGCHLD,
sys::signal::{Signal, SIGKILL, SIGTERM},
sys::signal::{Signal, Signal::SIGKILL, Signal::SIGTERM},
unistd::Pid,
};
use std::path::PathBuf;
Expand Down
8 changes: 4 additions & 4 deletions auraed/src/cri/oci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

use oci_spec::runtime::{
Capability, LinuxBuilder, LinuxDeviceCgroupBuilder, LinuxNamespaceBuilder,
LinuxNamespaceType, LinuxResourcesBuilder, LinuxRlimitBuilder,
LinuxRlimitType,
LinuxNamespaceType, LinuxResourcesBuilder, PosixRlimitBuilder,
PosixRlimitType,
};
use oci_spec::runtime::{
LinuxCapabilitiesBuilder, MountBuilder, ProcessBuilder, RootBuilder, Spec,
Expand Down Expand Up @@ -187,8 +187,8 @@ impl AuraeOCIBuilder {
.build()
.expect("default oci: process.capabilities"))
.rlimits(vec![
LinuxRlimitBuilder::default()
.typ(LinuxRlimitType::RlimitNofile)
PosixRlimitBuilder::default()
.typ(PosixRlimitType::RlimitNofile)
.hard(1024u32)
.soft(1024u32)
.build().expect("default oci: linux rlimit: RLIMIT_NOFILE"),
Expand Down
7 changes: 3 additions & 4 deletions auraed/src/cri/runtime_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ use crate::spawn_auraed_oci_to;
use chrono::Utc;
use libcontainer;
use libcontainer::container::builder::ContainerBuilder;
use libcontainer::syscall::syscall::create_syscall;
use nix::sys::signal::SIGKILL;
use libcontainer::syscall::syscall::SyscallType;
use nix::sys::signal::Signal::SIGKILL;
use proto::cri::{
runtime_service_server, AttachRequest, AttachResponse,
CheckpointContainerRequest, CheckpointContainerResponse,
Expand Down Expand Up @@ -124,11 +124,10 @@ impl runtime_service_server::RuntimeService for RuntimeService {
// TODO We made the decision to create a "KernelSpec" *name structure that will be how we distinguish between VMs and Containers

let sandbox = {
let scoped_syscall = create_syscall();
// Initialize a new container builder with the AURAE_SELF_IDENTIFIER name as the "init" container running a recursive Auraed
let container_builder = ContainerBuilder::new(
AURAE_SELF_IDENTIFIER.to_string(),
scoped_syscall.as_ref(),
SyscallType::default(),
);

let bundle_path = crate::AURAED_RUNTIME
Expand Down
2 changes: 1 addition & 1 deletion auraed/src/ebpf/perf_buffer_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub trait PerfBufferReader<T: Clone + Send + 'static> {
let num_cpus = nr_cpus()?;

// Query the page size on the host
let page_size = page_size()?;
let page_size = page_size();

// Get the size of the event payload
let event_struct_size: usize = size_of::<T>();
Expand Down
6 changes: 3 additions & 3 deletions auraescript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ path = "src/bin/main.rs"
[dependencies]
anyhow = { workspace = true }
client = { workspace = true }
deno_ast = { version = "0.39.2", features = ["transpiling"] }
deno_runtime = "0.166.0"
deno_core = "0.290.0"
deno_ast = { version = "0.40.0", features = ["transpiling"] }
deno_runtime = "0.169.0"
deno_core = "0.293.0"
macros = { package = "auraescript_macros", path = "./macros" }
proto = { workspace = true }
tokio = { workspace = true, features = ["fs", "rt-multi-thread"] }

0 comments on commit 29e392a

Please sign in to comment.