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 <[email protected]>
  • Loading branch information
jprendes committed Oct 24, 2023
1 parent 50dd14f commit d2efdc3
Show file tree
Hide file tree
Showing 21 changed files with 171 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler -y
sudo apt-get install -y protobuf-compiler libseccomp-dev
- name: build ${{ matrix.shims }}
run: |
VERBOSE=1 make build SHIMS=${{ matrix.shims }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler -y
sudo apt-get install -y protobuf-compiler libseccomp-dev
- name: fmt
run: |
make fmt
Expand Down
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-app = { git = "https://github.com/fermyon/spin", tag = "v1.5.0" }
spin-core = { 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.

Loading

0 comments on commit d2efdc3

Please sign in to comment.