Skip to content

Commit

Permalink
refactor cross container and enable seccomp
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
  • Loading branch information
jprendes committed Sep 25, 2023
1 parent fd40db4 commit 1fd2964
Show file tree
Hide file tree
Showing 19 changed files with 168 additions and 93 deletions.
2 changes: 1 addition & 1 deletion containerd-shim-lunatic-v1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
containerd-shim = "0.5.0"
containerd-shim-wasm = { git = "https://github.com/containerd/runwasi", rev = "4d212b968d24d42a27952e8b04979382b543a613", features = ["cgroupsv2"] }
containerd-shim-wasm = { git = "https://github.com/containerd/runwasi", rev = "4d212b968d24d42a27952e8b04979382b543a613", features = ["cgroupsv1", "cgroupsv2"] }
log = "~0.4"
anyhow = "1.0.72"
chrono = { version = "0.4.26", features = ["std"] }
Expand Down
4 changes: 2 additions & 2 deletions containerd-shim-lunatic-v1/Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
default-target = "x86_64-unknown-linux-musl"

[target.x86_64-unknown-linux-musl]
dockerfile = "./containerd-shim-lunatic-v1/Dockerfile"
dockerfile = "./cross/Dockerfile"

[target.aarch64-unknown-linux-musl]
dockerfile = "./containerd-shim-lunatic-v1/Dockerfile"
dockerfile = "./cross/Dockerfile"
4 changes: 0 additions & 4 deletions containerd-shim-lunatic-v1/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion containerd-shim-slight-v1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Containerd shim for running Slight workloads.

[dependencies]
containerd-shim = "0.5.0"
containerd-shim-wasm = { git = "https://github.com/containerd/runwasi", rev = "4d212b968d24d42a27952e8b04979382b543a613", features = ["cgroupsv2"] }
containerd-shim-wasm = { git = "https://github.com/containerd/runwasi", rev = "4d212b968d24d42a27952e8b04979382b543a613", features = ["cgroupsv1", "cgroupsv2"] }
log = "0.4"
tokio = { version = "1", features = [ "full" ] }
slight = { git = "https://github.com/deislabs/spiderlightning", version = "0.5.1" }
Expand Down
4 changes: 2 additions & 2 deletions containerd-shim-slight-v1/Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
default-target = "x86_64-unknown-linux-musl"

[target.x86_64-unknown-linux-musl]
dockerfile = "./containerd-shim-slight-v1/Dockerfile"
dockerfile = "./cross/Dockerfile"

[target.aarch64-unknown-linux-musl]
dockerfile = "./containerd-shim-slight-v1/Dockerfile"
dockerfile = "./cross/Dockerfile"
4 changes: 0 additions & 4 deletions containerd-shim-slight-v1/Dockerfile

This file was deleted.

140 changes: 130 additions & 10 deletions containerd-shim-spin-v1/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion containerd-shim-spin-v1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Containerd shim for running Spin workloads.

[dependencies]
containerd-shim = "0.5.0"
containerd-shim-wasm = { git = "https://github.com/containerd/runwasi", rev = "4d212b968d24d42a27952e8b04979382b543a613", features = ["cgroupsv2"] }
containerd-shim-wasm = { git = "https://github.com/containerd/runwasi", rev = "4d212b968d24d42a27952e8b04979382b543a613", features = ["cgroupsv1", "cgroupsv2"] }
log = "0.4"
spin-trigger = { git = "https://github.com/fermyon/spin", tag = "v1.5.0" }
spin-trigger-http = { git = "https://github.com/fermyon/spin", tag = "v1.5.0" }
Expand Down
6 changes: 2 additions & 4 deletions containerd-shim-spin-v1/Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
default-target = "x86_64-unknown-linux-musl"

[target.x86_64-unknown-linux-musl]
dockerfile.file = "./containerd-shim-spin-v1/Dockerfile"
dockerfile.context = "./containerd-shim-spin-v1/polyfill/"
dockerfile = "./cross/Dockerfile"

[target.aarch64-unknown-linux-musl]
dockerfile.file = "./containerd-shim-spin-v1/Dockerfile"
dockerfile.context = "./containerd-shim-spin-v1/polyfill/"
dockerfile = "./cross/Dockerfile"
7 changes: 0 additions & 7 deletions containerd-shim-spin-v1/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions containerd-shim-spin-v1/polyfill/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions containerd-shim-spin-v1/polyfill/polyfill.sh

This file was deleted.

14 changes: 0 additions & 14 deletions containerd-shim-spin-v1/polyfill/polyfill_vld1q_s8_x4.h

This file was deleted.

Loading

0 comments on commit 1fd2964

Please sign in to comment.