Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/library-grafana10.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,35 @@ jobs:
with:
name: index.unikraft.io/unikraft.org/grafana:10.2
push: true


run:
name: Test grafana:10.2 (Local build)
needs: [build]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install kraft CLI
run: |
echo "deb [trusted=yes] https://deb.pkg.kraftkit.sh/ /" | sudo tee /etc/apt/sources.list.d/kraftkit.list
sudo apt-get update
sudo apt-get install -y kraftkit
- name: Build, run and validate unikernel
run: |
set -euo pipefail
sudo chmod 666 /dev/kvm
cd library/grafana/10.2
echo "Build grafana:10.2 unikernel"
kraft build --no-cache --no-update --plat qemu --arch x86_64

echo "Run grafana:10.2 unikernel"
kraft run --rm -M 256M --plat qemu --arch x86_64 . &
PID=$!
sleep 5

echo "Pytgrafana:10.2 unikernel started successfully locally"

echo "Cleanup grafana:10.2 unikernel"
sudo kill "$PID" || true