File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
9090cargo install just
9191
9292# 2. kraft-hyperlight (builds Unikraft kernels)
93- git clone --branch hyperlight-platform https://github.com/danbugs /kraftkit.git
93+ git clone --branch plat-hyperlight https://github.com/unikraft /kraftkit/
9494cd kraftkit && go build -o kraft-hyperlight ./cmd/kraft
9595sudo mv kraft-hyperlight /usr/local/bin/ && cd ..
9696
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ ghcr_kernel := "ghcr.io/hyperlight-dev/hyperlight-unikraft/dotnet-nativeaot-kern
1919run :
2020 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}}
2121
22- # Run 5 times via snapshot/restore
23- run-5 :
24- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}}
22+ # Run 10 times via snapshot/restore
23+ run-10 :
24+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}}
2525
2626# Build rootfs via Docker (cross-platform)
2727rootfs :
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ ghcr_kernel := "ghcr.io/hyperlight-dev/hyperlight-unikraft/dotnet-kernel:latest"
1919run :
2020 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}}
2121
22- # Run 5 times via snapshot/restore
23- run-5 :
24- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}}
22+ # Run 10 times via snapshot/restore
23+ run-10 :
24+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}}
2525
2626# Build rootfs via Docker (cross-platform)
2727rootfs :
Original file line number Diff line number Diff line change 11# go on Hyperlight
22#
33# just run - Run once
4- # just run-5 - Run 5x (snapshot/restore)
4+ # just run-10 - Run 10x (snapshot/restore)
55# just rootfs - Build rootfs via Docker (cross-platform)
66# just build - Build/pull kernel
77# just clean - Remove build artifacts
@@ -19,9 +19,9 @@ ghcr_kernel := "ghcr.io/hyperlight-dev/hyperlight-unikraft/go-kernel:latest"
1919run :
2020 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}} -- hello
2121
22- # Run 5 times via snapshot/restore
23- run-5 :
24- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}} -- hello
22+ # Run 10 times via snapshot/restore
23+ run-10 :
24+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}} -- hello
2525
2626# Build rootfs via Docker (cross-platform)
2727rootfs :
Original file line number Diff line number Diff line change 11# helloworld-c on Hyperlight
22#
33# just run - Run once
4- # just run-5 - Run 5x (snapshot/restore)
4+ # just run-10 - Run 10x (snapshot/restore)
55# just rootfs - Build rootfs via Docker (cross-platform)
66# just build - Build/pull kernel
77# just clean - Remove build artifacts
@@ -19,9 +19,9 @@ ghcr_kernel := "ghcr.io/hyperlight-dev/hyperlight-unikraft/helloworld-c-kernel:l
1919run :
2020 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}}
2121
22- # Run 5 times via snapshot/restore
23- run-5 :
24- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}}
22+ # Run 10 times via snapshot/restore
23+ run-10 :
24+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}}
2525
2626# Build rootfs via Docker (cross-platform)
2727rootfs :
Original file line number Diff line number Diff line change 2424 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}} --mount {{ mount_dir}}
2525
2626[unix ]
27- run-5 :
27+ run-10 :
2828 mkdir -p {{ mount_dir}}
29- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}} --mount {{ mount_dir}}
29+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}} --mount {{ mount_dir}}
3030
3131[windows ]
32- run-5 :
32+ run-10 :
3333 New-Item -ItemType Directory -Force -Path {{ mount_dir}} | Out-Null
34- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}} --mount {{ mount_dir}}
34+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}} --mount {{ mount_dir}}
3535
3636rootfs :
3737 docker build --platform linux/ amd64 --target cpio -t {{ image}} -cpio .
Original file line number Diff line number Diff line change 4141 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}} --mount {{ mount_dir}} -- / hostfs_demo.py
4242
4343[unix ]
44- run-5 :
44+ run-10 :
4545 mkdir -p {{ mount_dir}}
46- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}} --mount {{ mount_dir}} -- / hostfs_demo.py
46+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}} --mount {{ mount_dir}} -- / hostfs_demo.py
4747
4848[windows ]
49- run-5 :
49+ run-10 :
5050 New-Item -ItemType Directory -Force -Path {{ mount_dir}} | Out-Null
51- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}} --mount {{ mount_dir}} -- / hostfs_demo.py
51+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}} --mount {{ mount_dir}} -- / hostfs_demo.py
5252
5353rootfs :
5454 docker build --platform linux/ amd64 --target cpio -t {{ image}} -cpio .
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ ghcr_kernel := "ghcr.io/hyperlight-dev/hyperlight-unikraft/nodejs-kernel:latest"
1919run :
2020 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}} -- / app/ hello.js
2121
22- # Run 5 times via snapshot/restore
23- run-5 :
24- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}} -- / app/ hello.js
22+ # Run 10 times via snapshot/restore
23+ run-10 :
24+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}} -- / app/ hello.js
2525
2626# Build rootfs via Docker (cross-platform)
2727rootfs :
Original file line number Diff line number Diff line change 11# powershell on Hyperlight
22#
33# just run - Run once
4- # just run-5 - Run 5x (snapshot/restore)
4+ # just run-10 - Run 10x (snapshot/restore)
55# just rootfs - Build rootfs via Docker (cross-platform)
66# just build - Build/pull kernel
77# just clean - Remove build artifacts
@@ -19,9 +19,9 @@ ghcr_kernel := "ghcr.io/hyperlight-dev/hyperlight-unikraft/powershell-kernel:lat
1919run :
2020 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}} -- -NoProfile -File / scripts/ hello.ps1
2121
22- # Run 5 times via snapshot/restore
23- run-5 :
24- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}} -- -NoProfile -File / scripts/ hello.ps1
22+ # Run 10 times via snapshot/restore
23+ run-10 :
24+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}} -- -NoProfile -File / scripts/ hello.ps1
2525
2626# Build rootfs via Docker (cross-platform)
2727rootfs :
Original file line number Diff line number Diff line change 11# python-tools on Hyperlight
22#
33# just run - Run once
4- # just run-5 - Run 5x (snapshot/restore)
4+ # just run-10 - Run 10x (snapshot/restore)
55# just rootfs - Build rootfs via Docker (cross-platform)
66# just build - Build/pull kernel
77# just clean - Remove build artifacts
@@ -19,9 +19,9 @@ ghcr_kernel := "ghcr.io/hyperlight-dev/hyperlight-unikraft/python-tools-kernel:l
1919run :
2020 hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --memory {{ memory}} --enable-tools -- / test_tools.py
2121
22- # Run 5 times via snapshot/restore
23- run-5 :
24- hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 4 --memory {{ memory}} --enable-tools -- / test_tools.py
22+ # Run 10 times via snapshot/restore
23+ run-10 :
24+ hyperlight-unikraft {{ kernel}} --initrd {{ initrd}} --repeat 9 --memory {{ memory}} --enable-tools -- / test_tools.py
2525
2626# Build rootfs via Docker (cross-platform)
2727rootfs :
You can’t perform that action at this time.
0 commit comments