Compare commits

...

41 Commits

Author SHA1 Message Date
Jiaxiao Zhou dd3404f0ba
Merge pull request #1015 from containerd/dependabot/cargo/patch-dd3b444903
chore(deps): bump libc from 0.2.173 to 0.2.174 in the patch group
2025-06-23 21:52:28 -07:00
Jiaxiao Zhou 70c84db7f6
Merge pull request #1014 from containerd/dependabot/github_actions/sigstore/cosign-installer-3.9.1
chore(deps): bump sigstore/cosign-installer from 3.8.2 to 3.9.1
2025-06-23 21:52:17 -07:00
dependabot[bot] d76ea36416
chore(deps): bump libc from 0.2.173 to 0.2.174 in the patch group
Bumps the patch group with 1 update: [libc](https://github.com/rust-lang/libc).


Updates `libc` from 0.2.173 to 0.2.174
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.174/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.173...0.2.174)

---
updated-dependencies:
- dependency-name: libc
  dependency-version: 0.2.174
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-23 18:07:21 +00:00
dependabot[bot] 817ae9ed67
chore(deps): bump sigstore/cosign-installer from 3.8.2 to 3.9.1
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.8.2 to 3.9.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](3454372f43...398d4b0eee)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-version: 3.9.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-23 18:00:55 +00:00
Jiaxiao Zhou ed2ab4f081
Merge pull request #1013 from containerd/dependabot/github_actions/anchore/sbom-action-0.20.1
chore(deps): bump anchore/sbom-action from 0.20.0 to 0.20.1
2025-06-16 21:03:23 -07:00
Jiaxiao Zhou 518d562f0a
Merge pull request #1012 from containerd/dependabot/cargo/patch-8aebe0f0a7
chore(deps): bump the patch group with 3 updates
2025-06-16 21:03:11 -07:00
Jiaxiao Zhou ab702d3544
Merge pull request #1011 from containerd/dependabot/github_actions/github/codeql-action-3.29.0
chore(deps): bump github/codeql-action from 3.28.18 to 3.29.0
2025-06-16 21:02:59 -07:00
dependabot[bot] 47ea1fc3c3
chore(deps): bump anchore/sbom-action from 0.20.0 to 0.20.1
Bumps [anchore/sbom-action](https://github.com/anchore/sbom-action) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/anchore/sbom-action/releases)
- [Changelog](https://github.com/anchore/sbom-action/blob/main/RELEASE.md)
- [Commits](e11c554f70...9246b90769)

---
updated-dependencies:
- dependency-name: anchore/sbom-action
  dependency-version: 0.20.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-16 18:20:47 +00:00
dependabot[bot] d37911d6d5
chore(deps): bump the patch group with 3 updates
Bumps the patch group with 3 updates: [libc](https://github.com/rust-lang/libc), [cfg-if](https://github.com/rust-lang/cfg-if) and [clap](https://github.com/clap-rs/clap).


Updates `libc` from 0.2.172 to 0.2.173
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.173/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.172...0.2.173)

Updates `cfg-if` from 1.0.0 to 1.0.1
- [Release notes](https://github.com/rust-lang/cfg-if/releases)
- [Changelog](https://github.com/rust-lang/cfg-if/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cfg-if/compare/1.0.0...v1.0.1)

Updates `clap` from 4.5.39 to 4.5.40
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.39...clap_complete-v4.5.40)

---
updated-dependencies:
- dependency-name: libc
  dependency-version: 0.2.173
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: cfg-if
  dependency-version: 1.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: clap
  dependency-version: 4.5.40
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-16 18:07:17 +00:00
dependabot[bot] 53e2e0bb8c
chore(deps): bump github/codeql-action from 3.28.18 to 3.29.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.18 to 3.29.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](ff0a06e83c...ce28f5bb42)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.29.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-16 17:50:14 +00:00
Jiaxiao Zhou 5322c335c7
Merge pull request #1009 from containerd/dependabot/cargo/patch-2599ad99c4
chore(deps): bump toml from 0.8.22 to 0.8.23 in the patch group
2025-06-09 23:01:59 -07:00
dependabot[bot] a9fe3c6a84
chore(deps): bump toml from 0.8.22 to 0.8.23 in the patch group
Bumps the patch group with 1 update: [toml](https://github.com/toml-rs/toml).


Updates `toml` from 0.8.22 to 0.8.23
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.22...toml-v0.8.23)

---
updated-dependencies:
- dependency-name: toml
  dependency-version: 0.8.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 17:00:48 +00:00
Rikito Taniguchi 124b5b087a
chore(deps): bump the wasmtime to 33.0.0 (#1006)
`IOView` is split off of `WasiView`.
https://github.com/bytecodealliance/wasmtime/pull/10016

`static_memory_maximum_size` is now `memory_reservation`.
https://github.com/bytecodealliance/wasmtime/pull/9545

`detect_precompiled` is now associated function.
https://github.com/bytecodealliance/wasmtime/pull/10405

Moved WASIp2 related things to `wasmtime_wasi::p2` module.
https://github.com/bytecodealliance/wasmtime/pull/10073
2025-06-08 12:47:41 +01:00
Jiaxiao Zhou f372b70d85
Merge pull request #1005 from tanishiking/fix-quickstart
docs: update quickstart to use containerd v2 configuration
2025-06-05 23:36:20 -07:00
Rikito Taniguchi 77f565f971 docs: update quickstart to use containerd v2 configuration
fix: https://github.com/containerd/runwasi/issues/1002

The latest version of kind and k3s uses containerd v2, containerd configuration did change in 2.0.

This commit updates the quickstart doc to use containerd v2 configration format.

https://github.com/kubernetes-sigs/kind/pull/3828
https://github.com/k3s-io/k3s/pull/11626
2025-06-05 14:37:01 +09:00
dependabot[bot] 80aa9854ad
chore(deps): bump ossf/scorecard-action from 2.4.1 to 2.4.2 (#1001)
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](f49aabe0b5...05b42c6244)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-version: 2.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-04 17:50:33 +01:00
Rikito Taniguchi 72997bd78e
docs: fix installation guide to pull the test image (#1003)
fix: https://github.com/containerd/runwasi/issues/989
2025-06-04 17:47:56 +01:00
Jiaxiao Zhou 7a9c892274
Merge pull request #1000 from containerd/dependabot/cargo/oci-wasm-0.3.0
chore(deps): bump oci-wasm from 0.2.1 to 0.3.0
2025-06-03 19:01:55 -07:00
Jiaxiao Zhou 1c9aad22ea
Merge pull request #999 from containerd/dependabot/cargo/patch-7fd6ebde6b
chore(deps): bump clap from 4.5.38 to 4.5.39 in the patch group
2025-06-03 19:01:43 -07:00
dependabot[bot] 2674fb79be
chore(deps): bump oci-wasm from 0.2.1 to 0.3.0
Bumps [oci-wasm](https://github.com/bytecodealliance/rust-oci-wasm) from 0.2.1 to 0.3.0.
- [Commits](https://github.com/bytecodealliance/rust-oci-wasm/compare/v0.2.1...v0.3.0)

---
updated-dependencies:
- dependency-name: oci-wasm
  dependency-version: 0.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 16:46:38 +00:00
dependabot[bot] b617a2550e
chore(deps): bump clap from 4.5.38 to 4.5.39 in the patch group
Bumps the patch group with 1 update: [clap](https://github.com/clap-rs/clap).


Updates `clap` from 4.5.38 to 4.5.39
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.38...clap_complete-v4.5.39)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.5.39
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 16:46:28 +00:00
Jiaxiao Zhou 4dd6f7d245
Merge pull request #998 from containerd/dependabot/cargo/wasmparser-0.231.0
chore(deps): bump wasmparser from 0.228.0 to 0.231.0
2025-05-27 08:51:06 -07:00
Jiaxiao Zhou 81eb8d8fb8
Merge pull request #997 from containerd/dependabot/cargo/patch-a966cb3bd8
chore(deps): bump the patch group with 2 updates
2025-05-27 08:49:53 -07:00
dependabot[bot] ff44543876
chore(deps): bump wasmparser from 0.228.0 to 0.231.0
Bumps [wasmparser](https://github.com/bytecodealliance/wasm-tools) from 0.228.0 to 0.231.0.
- [Release notes](https://github.com/bytecodealliance/wasm-tools/releases)
- [Commits](https://github.com/bytecodealliance/wasm-tools/commits)

---
updated-dependencies:
- dependency-name: wasmparser
  dependency-version: 0.231.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 17:03:00 +00:00
dependabot[bot] 038fb50176
chore(deps): bump the patch group with 2 updates
Bumps the patch group with 2 updates: [tokio](https://github.com/tokio-rs/tokio) and [mio](https://github.com/tokio-rs/mio).


Updates `tokio` from 1.45.0 to 1.45.1
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.45.0...tokio-1.45.1)

Updates `mio` from 1.0.3 to 1.0.4
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/commits)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.45.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: mio
  dependency-version: 1.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 17:00:31 +00:00
Jiaxiao Zhou ce03e9fe00
Merge pull request #994 from containerd/dependabot/github_actions/github/codeql-action-3.28.18
chore(deps): bump github/codeql-action from 3.28.15 to 3.28.18
2025-05-21 11:24:23 -07:00
Jiaxiao Zhou 660cad77d4
Merge pull request #993 from containerd/dependabot/github_actions/anchore/sbom-action-0.20.0
chore(deps): bump anchore/sbom-action from 0.18.0 to 0.20.0
2025-05-21 11:24:11 -07:00
Jiaxiao Zhou 178920547c
Merge pull request #990 from containerd/dependabot/cargo/tokio-1.45.0
chore(deps): bump tokio from 1.44.2 to 1.45.0
2025-05-21 11:23:59 -07:00
Jiaxiao Zhou 8f4472cf03
Merge pull request #988 from containerd/dependabot/github_actions/lycheeverse/lychee-action-2.4.1
chore(deps): bump lycheeverse/lychee-action from 2.4.0 to 2.4.1
2025-05-21 11:23:47 -07:00
Jiaxiao Zhou 8921f9653d
Merge pull request #982 from containerd/dependabot/github_actions/sigstore/cosign-installer-3.8.2
chore(deps): bump sigstore/cosign-installer from 3.8.1 to 3.8.2
2025-05-21 11:23:30 -07:00
dependabot[bot] 576d12d111
chore(deps): bump tokio from 1.44.2 to 1.45.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.44.2 to 1.45.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.44.2...tokio-1.45.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.45.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-21 17:26:34 +00:00
dependabot[bot] a92f681f17
chore(deps): bump sigstore/cosign-installer from 3.8.1 to 3.8.2
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.8.1 to 3.8.2.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](d7d6bc7722...3454372f43)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-version: 3.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-21 17:26:28 +00:00
dependabot[bot] 66a8769150
chore(deps): bump lycheeverse/lychee-action from 2.4.0 to 2.4.1
Bumps [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/lycheeverse/lychee-action/releases)
- [Commits](1d97d84f0b...82202e5e9c)

---
updated-dependencies:
- dependency-name: lycheeverse/lychee-action
  dependency-version: 2.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-21 17:26:23 +00:00
dependabot[bot] bb1e6a3930
chore(deps): bump anchore/sbom-action from 0.18.0 to 0.20.0
Bumps [anchore/sbom-action](https://github.com/anchore/sbom-action) from 0.18.0 to 0.20.0.
- [Release notes](https://github.com/anchore/sbom-action/releases)
- [Changelog](https://github.com/anchore/sbom-action/blob/main/RELEASE.md)
- [Commits](f325610c9f...e11c554f70)

---
updated-dependencies:
- dependency-name: anchore/sbom-action
  dependency-version: 0.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-21 17:25:37 +00:00
dependabot[bot] 630cb0dbb4
chore(deps): bump github/codeql-action from 3.28.15 to 3.28.18
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.15 to 3.28.18.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](45775bd823...ff0a06e83c)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.28.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-21 17:25:25 +00:00
Jiaxiao Zhou 8325cd1de6
Merge pull request #996 from PhantomInTheWire/ci/remove-cgroupv1-ubuntu20-tests
Remove cgroup v1 and Ubuntu 20.04 tests from CI workflow
2025-05-21 10:23:47 -07:00
Karan b309d6f203 Remove cgroup v1 and Ubuntu 20.04 tests from CI workflow 2025-05-21 03:16:36 +05:30
Jiaxiao Zhou 5680b21a33
Merge pull request #978 from Mossaka/batch-bump
chore: batch bump minor version of shim binaries
2025-05-20 10:44:36 -07:00
Jiaxiao Zhou ab921a5705
Merge pull request #987 from containerd/dependabot/cargo/patch-981bcb5b90
chore(deps): bump the patch group across 1 directory with 5 updates
2025-05-12 09:54:53 -07:00
dependabot[bot] 6cf06b0ccb
chore(deps): bump the patch group across 1 directory with 5 updates
Bumps the patch group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [chrono](https://github.com/chronotope/chrono) | `0.4.40` | `0.4.41` |
| [tokio-util](https://github.com/tokio-rs/tokio) | `0.7.14` | `0.7.15` |
| [ctor](https://github.com/mmastrac/rust-ctor) | `0.4.1` | `0.4.2` |
| [clap](https://github.com/clap-rs/clap) | `4.5.37` | `4.5.38` |
| [toml](https://github.com/toml-rs/toml) | `0.8.20` | `0.8.22` |



Updates `chrono` from 0.4.40 to 0.4.41
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.40...v0.4.41)

Updates `tokio-util` from 0.7.14 to 0.7.15
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.14...tokio-util-0.7.15)

Updates `ctor` from 0.4.1 to 0.4.2
- [Commits](https://github.com/mmastrac/rust-ctor/commits)

Updates `clap` from 4.5.37 to 4.5.38
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.37...clap_complete-v4.5.38)

Updates `toml` from 0.8.20 to 0.8.22
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.20...toml-v0.8.22)

---
updated-dependencies:
- dependency-name: chrono
  dependency-version: 0.4.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: tokio-util
  dependency-version: 0.7.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: ctor
  dependency-version: 0.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: clap
  dependency-version: 4.5.38
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: toml
  dependency-version: 0.8.22
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-12 16:24:33 +00:00
Jiaxiao (mossaka) Zhou 333e58cde7
chore: batch bump minor version of shim binaries
Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
2025-04-23 17:43:02 +00:00
17 changed files with 515 additions and 401 deletions

View File

@ -106,8 +106,7 @@ jobs:
needs: [build-ubuntu, test-image]
strategy:
matrix:
# 20.04 uses cgroupv1, 22.04 uses cgroupv2
os: ["ubuntu-20.04", "ubuntu-22.04"]
os: ["ubuntu-22.04"]
runtime: ["wasmtime", "wasmedge", "wasmer", "wamr"]
uses: ./.github/workflows/action-test-smoke.yml
with:
@ -120,8 +119,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# 20.04 uses cgroupv1, 22.04 uses cgroupv2
os: ["ubuntu-20.04", "ubuntu-22.04"]
os: ["ubuntu-22.04"]
runtime: ["wasmtime", "wasmedge", "wasmer", "wamr"]
uses: ./.github/workflows/action-test-kind.yml
with:
@ -149,7 +147,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
os: ["ubuntu-22.04"]
runtime: ["wasmtime", "wasmedge", "wasmer", "wamr"]
uses: ./.github/workflows/action-test-k3s.yml
with:
@ -196,7 +194,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lycheeverse/lychee-action@1d97d84f0bc547f7b25f4c2170d87d810dc2fb2c # v2.4.0
- uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1
with:
fail: false # don't fail the build on broken links
format: markdown

View File

@ -56,7 +56,7 @@ jobs:
- name: Wait for GitHub Pages to update
run: sleep 120
- name: Check all links on runwasi.dev
uses: lycheeverse/lychee-action@1d97d84f0bc547f7b25f4c2170d87d810dc2fb2c # v2.4.0
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1
with:
fail: true # Fail CI if broken links found on the live site
format: markdown

View File

@ -26,10 +26,10 @@ jobs:
echo "image=$image" >> $GITHUB_ENV
- name: Install cosign
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1
- name: Install syft
uses: anchore/sbom-action/download-syft@f325610c9f50a54015d37c8d16cb3b0e2c8f4de0 # v0.18.0
uses: anchore/sbom-action/download-syft@9246b90769f852b3a8921f330c59e0b3f439d6e9 # v0.20.1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3

View File

@ -26,7 +26,7 @@ jobs:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: results.sarif
results_format: sarif
@ -45,6 +45,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with:
sarif_file: results.sarif

View File

@ -26,7 +26,7 @@ jobs:
echo "image=$image" >> $GITHUB_ENV
- name: Install cosign
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3

836
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,7 @@ containerd-shim-wasm = { path = "crates/containerd-shim-wasm", version = "1.0.0"
containerd-shim-wasm-test-modules = { path = "crates/containerd-shim-wasm-test-modules", version = "0.4.0"}
oci-tar-builder = { path = "crates/oci-tar-builder", version = "0.4.0" }
env_logger = "0.11"
libc = "0.2.172"
libc = "0.2.174"
libcontainer = { version = "0.5", default-features = false }
log = "0.4"
nix = "0.29"
@ -48,14 +48,14 @@ windows-sys = "0.59"
serial_test = "3"
tracing = "0.1"
hyper = "1.6.0"
tokio = { version = "1.44.2", default-features = false }
tokio = { version = "1.45.1", default-features = false }
tokio-util = { version = "0.7", default-features = false }
cfg-if = "1.0"
# wasmtime
wasmtime = { version = "27.0.0", features = ["async"] }
wasmtime-wasi = { version = "27.0.0" }
wasmtime-wasi-http = { version = "27.0.0" }
wasmtime = { version = "33.0.0", features = ["async"] }
wasmtime-wasi = { version = "33.0.0" }
wasmtime-wasi-http = { version = "33.0.0" }
[profile.release]
panic = "abort"

View File

@ -1,6 +1,6 @@
[package]
name = "containerd-shim-wamr"
version = "0.1.0"
version = "0.2.0"
edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -28,7 +28,7 @@ tempfile = { workspace = true, optional = true }
wat = { workspace = true }
tokio = { workspace = true, features = ["full"] }
futures = { version = "0.3.30" }
wasmparser = { version = "0.228.0" }
wasmparser = { version = "0.231.0" }
tokio-stream = { version = "0.1" }
sha256 = { workspace = true }
serde_bytes = "0.11"
@ -71,7 +71,7 @@ tempfile = { workspace = true }
oci-tar-builder = { workspace = true }
rand = "0.9"
temp-env = "0.3"
ctor = "0.4.1"
ctor = "0.4.2"
[features]
testing = [

View File

@ -1,6 +1,6 @@
[package]
name = "containerd-shim-wasmedge"
version = "0.5.0"
version = "0.6.0"
edition.workspace = true
[dependencies]

View File

@ -1,6 +1,6 @@
[package]
name = "containerd-shim-wasmer"
version = "0.5.0"
version = "0.6.0"
edition.workspace = true
[dependencies]

View File

@ -1,6 +1,6 @@
[package]
name = "containerd-shim-wasmtime"
version = "0.5.0"
version = "0.6.0"
edition.workspace = true
[dependencies]

View File

@ -164,7 +164,7 @@ impl ProxyHandler {
fn wasi_store_for_request(&self, req_id: u64) -> Store<WasiPreview2Ctx> {
let engine = self.instance_pre.engine();
let mut builder = wasmtime_wasi::WasiCtxBuilder::new();
let mut builder = wasmtime_wasi::p2::WasiCtxBuilder::new();
builder.envs(&self.env);
builder.env("REQUEST_ID", req_id.to_string());

View File

@ -13,8 +13,8 @@ use wasi_preview2::bindings::Command;
use wasmtime::component::types::ComponentItem;
use wasmtime::component::{self, Component, ResourceTable};
use wasmtime::{Config, Module, Precompiled, Store};
use wasmtime_wasi::p2::{self as wasi_preview2};
use wasmtime_wasi::preview1::{self as wasi_preview1};
use wasmtime_wasi::{self as wasi_preview2};
use wasmtime_wasi_http::bindings::ProxyPre;
use wasmtime_wasi_http::{WasiHttpCtx, WasiHttpView};
@ -103,20 +103,18 @@ impl WasiPreview2Ctx {
/// This impl is required to use wasmtime_wasi::preview2::WasiView trait.
impl wasi_preview2::WasiView for WasiPreview2Ctx {
fn table(&mut self) -> &mut ResourceTable {
&mut self.resource_table
}
fn ctx(&mut self) -> &mut wasi_preview2::WasiCtx {
&mut self.wasi_ctx
}
}
impl WasiHttpView for WasiPreview2Ctx {
fn table(&mut self) -> &mut wasmtime::component::ResourceTable {
impl wasi_preview2::IoView for WasiPreview2Ctx {
fn table(&mut self) -> &mut ResourceTable {
&mut self.resource_table
}
}
impl WasiHttpView for WasiPreview2Ctx {
fn ctx(&mut self) -> &mut wasmtime_wasi_http::WasiHttpCtx {
&mut self.wasi_http
}
@ -176,7 +174,7 @@ impl Compiler for WasmtimeCompiler {
let mut compiled_layers = Vec::<Option<Vec<u8>>>::with_capacity(layers.len());
for layer in layers {
if self.0.detect_precompiled(&layer.layer).is_some() {
if wasmtime::Engine::detect_precompiled(&layer.layer).is_some() {
log::info!("Already precompiled");
compiled_layers.push(None);
continue;
@ -255,7 +253,7 @@ impl WasmtimeSandbox {
ComponentTarget::HttpProxy => {
log::info!("Found HTTP proxy target");
let mut linker = component::Linker::new(&self.engine);
wasmtime_wasi::add_to_linker_async(&mut linker)?;
wasmtime_wasi::p2::add_to_linker_async(&mut linker)?;
wasmtime_wasi_http::add_only_http_to_linker_async(&mut linker)?;
let pre = linker.instantiate_pre(&component)?;
@ -357,7 +355,7 @@ impl WasmtimeSandbox {
let component = Component::from_binary(&self.engine, wasm_binary)?;
self.execute_component(ctx, component, func).await
}
None => match &self.engine.detect_precompiled(wasm_binary) {
None => match wasmtime::Engine::detect_precompiled(wasm_binary) {
Some(Precompiled::Module) => {
log::info!("using precompiled module");
let module = unsafe { Module::deserialize(&self.engine, wasm_binary) }?;
@ -405,8 +403,8 @@ fn wasi_builder(ctx: &impl RuntimeContext) -> Result<wasi_preview2::WasiCtxBuild
// https://github.com/containerd/runwasi/issues/413
log::debug!("building WASI context");
let file_perms = wasi_preview2::FilePerms::all();
let dir_perms = wasi_preview2::DirPerms::all();
let file_perms = wasmtime_wasi::FilePerms::all();
let dir_perms = wasmtime_wasi::DirPerms::all();
let envs = envs_from_ctx(ctx);
let mut builder = wasi_preview2::WasiCtxBuilder::new();
@ -452,7 +450,7 @@ fn use_pooling_allocator_by_default() -> bool {
const BITS_TO_TEST: u32 = 42;
let mut config = Config::new();
config.wasm_memory64(true);
config.static_memory_maximum_size(1 << BITS_TO_TEST);
config.memory_reservation(1 << BITS_TO_TEST);
let Ok(engine) = wasmtime::Engine::new(&config) else {
return false;
};

View File

@ -16,9 +16,9 @@ oci-spec = { workspace = true, features = ["runtime"] }
anyhow = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
clap = { version = "4.5.37", features = ["derive"] }
clap = { version = "4.5.40", features = ["derive"] }
indexmap = "2.9.0"
oci-wasm = { version = "0.2.1", default-features = false, features = ["rustls-tls"] }
oci-wasm = { version = "0.3.0", default-features = false, features = ["rustls-tls"] }
tokio = { workspace = true, features = ["rt-multi-thread"] }
[lib]

View File

@ -77,7 +77,7 @@ After installation, you can test your setup by pulling and running a test image:
1. Pull the test image:
```bash
sudo ctr pull ghcr.io/containerd/runwasi/wasi-demo-app:latest
sudo ctr images pull ghcr.io/containerd/runwasi/wasi-demo-app:latest
```
2. Run a test container:

View File

@ -48,7 +48,7 @@ kind create cluster --name runwasi-cluster --config kind-config.yaml
kubectl cluster-info --context kind-runwasi-cluster
cat << EOF | docker exec -i runwasi-cluster-control-plane tee /etc/containerd/config.toml
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.wasm]
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.wasm]
runtime_type = "io.containerd.wasmtime.v1"
EOF
@ -73,7 +73,7 @@ sudo make install-wasmtime
sudo mkdir -p /var/lib/rancher/k3s/agent/etc/containerd/
cat << EOF | sudo tee -a /var/lib/rancher/k3s/agent/etc/containerd/config.toml.tmpl
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.wasm]
[plugins."io.containerd.cri.v1.runtime".containerd.runtimes.wasm]
runtime_type = "io.containerd.wasmtime.v1"
EOF