Skip to content

Commit 023e1da

Browse files
committed
Add ability to parse OCI images
Signed-off-by: James Sturtevant <jstur@microsoft.com>
1 parent 70830a1 commit 023e1da

13 files changed

Lines changed: 851 additions & 100 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup OCI runtime build env
2323
run: |
2424
sudo apt -y update
25-
sudo apt install -y pkg-config libsystemd-dev libdbus-glib-1-dev build-essential libelf-dev libseccomp-dev libclang-dev
25+
sudo apt install -y pkg-config libsystemd-dev libdbus-glib-1-dev build-essential libelf-dev libseccomp-dev libclang-dev protobuf-compiler
2626
- name: Setup WasmEdge build env
2727
run: |
2828
make bin/wasmedge
@@ -48,7 +48,7 @@ jobs:
4848
- name: Setup OCI runtime build env
4949
run: |
5050
sudo apt -y update
51-
sudo apt install -y pkg-config libsystemd-dev libdbus-glib-1-dev build-essential libelf-dev libseccomp-dev libclang-dev
51+
sudo apt install -y pkg-config libsystemd-dev libdbus-glib-1-dev build-essential libelf-dev libseccomp-dev libclang-dev protobuf-compiler
5252
- name: Setup WasmEdge build env
5353
run: |
5454
make bin/wasmedge
@@ -100,7 +100,7 @@ jobs:
100100
- name: Setup OCI runtime build env
101101
run: |
102102
sudo apt -y update
103-
sudo apt install -y pkg-config libsystemd-dev libdbus-glib-1-dev build-essential libelf-dev libseccomp-dev libclang-dev
103+
sudo apt install -y pkg-config libsystemd-dev libdbus-glib-1-dev build-essential libelf-dev libseccomp-dev libclang-dev protobuf-compiler
104104
- name: run
105105
run: |
106106
echo "LD_LIBRARY_PATH=$PWD/bin/wasmedge/lib" >> $GITHUB_ENV
@@ -109,4 +109,8 @@ jobs:
109109
make test/k3s
110110
- name: cleanup
111111
if: always()
112-
run: make test/k3s/clean
112+
run: |
113+
# run log collection after running tests, so that we can see the logs in case pod doesn't start properly
114+
timeout 5 bash -c -- 'sudo bin/k3s kubectl logs deployments/wasi-demo'
115+
timeout 5 bash -c -- 'sudo bin/k3s kubectl get pods -o wide'
116+
make test/k3s/clean

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ test/out/img.tar
55
!crates/wasmtime/src/bin/
66
test/k8s/_out
77
release/
8+
.vscode/

0 commit comments

Comments
 (0)