Skip to content

chore(examples): Fix hypervisor annotation and use bunny - #113

Open
cmainas wants to merge 1 commit into
hyperlight-dev:mainfrom
cmainas:chore/urunc_Dockerfile
Open

chore(examples): Fix hypervisor annotation and use bunny#113
cmainas wants to merge 1 commit into
hyperlight-dev:mainfrom
cmainas:chore/urunc_Dockerfile

Conversation

@cmainas

@cmainas cmainas commented Aug 6, 2026

Copy link
Copy Markdown

Update the urunc.Dockerfile, since the "hypervisor" name of "hyperlight" was changed to "hyperlight-unikraft".

Also, replace the "urunc.json" file with direct use of bunny. However bunny requires DOCKER_BUILDKIT=1. Not really sure why is set to 0, but if buildkit must remain disabled, I will bring back the "urunc.json" file.

Fixes #112

Copilot AI lite review requested due to automatic review settings August 6, 2026 15:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the helloworld-c urunc packaging example to match the renamed hypervisor identifier (hyperlight-unikraft) and to rely on Bunny/BuildKit-driven image metadata rather than a standalone urunc.json file.

Changes:

  • Update urunc.Dockerfile to set com.urunc.unikernel.hypervisor=hyperlight-unikraft, remove urunc.json usage, and source the kernel from the published GHCR kernel image.
  • Delete examples/helloworld-c/urunc.json (annotations now expressed via image labels).
  • Update the urunc-image Just recipe to enable BuildKit for the urunc image build.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
examples/helloworld-c/urunc.json Removes the standalone urunc annotation JSON (no longer copied into the image).
examples/helloworld-c/urunc.Dockerfile Switches to Bunny frontend, pulls the kernel from GHCR, and updates the hypervisor label to hyperlight-unikraft.
examples/helloworld-c/Justfile Enables BuildKit specifically for urunc-image builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,15 +1,17 @@
#syntax=harbor.nbfc.io/nubificus/bunny:latest

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A note one that. This is intentional; the annotations in urunc are not stable yet and they might change. We keep bunny up-to-date with the changes in urunc, so it is the easiest way to keep track of such changes.

Comment thread examples/helloworld-c/Justfile Outdated
Comment on lines +49 to +51
# Build urunc-compatible OCI image (requires kernel to be built first)
urunc-image: build
docker build --platform linux/amd64 -f urunc.Dockerfile -t hello-hyperlight-unikraft:latest .
urunc-image:
DOCKER_BUILDKIT=1 docker build --platform linux/amd64 -f urunc.Dockerfile -t hello-hyperlight-unikraft:latest .

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated comment

@cmainas
cmainas force-pushed the chore/urunc_Dockerfile branch from 52f2f08 to 9cbc640 Compare August 6, 2026 16:19
Use [bunny](https://github.com/nubificus/bunny) to directly append the
annotations in the image, instead of "urunc.json" file.

Also update the urunc.Dockerfile, since the "hypervisor" name of
hyperlight was changed to hyperlight-unikraft.

Signed-off-by: Charalampos Mainas <charalampos.mainas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update urunc.Dockerfile and the "hypervisor" annotation

2 participants