Add Ruby-Hello application with Firecracker support - #91
Open
lupsalexandra33 wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new ruby-hello Unikraft catalog application intended to demonstrate running a simple Ruby script, including draft Firecracker configuration and repo setup wiring.
Changes:
- Extend top-level
setup.shto fetch Ruby-related libraries (lib-ruby,lib-newlib,lib-pthread-embedded). - Introduce a new
ruby-hello/app directory with Unikraft catalog scaffolding (Config.uk,Makefile,Makefile.uk, app setup script). - Add initial runtime assets and docs (
helloworld.rb,fc.x86_64.json,README.md) for Firecracker execution.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| setup.sh | Adds cloning of Ruby and required dependency libraries into repos/. |
| ruby-hello/setup.sh | Creates workdir/ and symlinks required core/libs into place for building the app. |
| ruby-hello/README.md | Documents setup/build/run steps for the Ruby hello app. |
| ruby-hello/Makefile.uk | Registers the app with Unikraft’s build system and adds rootfs-related flags. |
| ruby-hello/Makefile | Defines the build invocation for the app (currently differs from established catalog Makefile pattern). |
| ruby-hello/helloworld.rb | Provides a minimal Ruby script to run in the unikernel. |
| ruby-hello/fc.x86_64.json | Draft Firecracker VM config to boot the resulting unikernel. |
| ruby-hello/Config.uk | Kconfig entry for enabling the app and selecting required libraries. |
Suppressed comments (1)
ruby-hello/fc.x86_64.json:5
- boot_args passes /helloworld.rb, but this Firecracker config does not provide an initrd_path nor any vfs.fstab rootfs mount (unlike other apps that pass a file path, e.g., c-fs/fc.x86_64.json:3-6). As-is, the guest is unlikely to have /helloworld.rb available at runtime unless it is built into the image by some other mechanism.
"kernel_image_path": "build/ruby-hello_kvm-x86_64",
"boot_args": "ruby-hello_kvm-x86_64 -- /helloworld.rb"
},
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Align the application with the catalog conventions: build into `workdir/build/`, boot the `*_fc-*` images with an initrd-based rootfs and document the standard set up, build and run steps. Add the missing `fc.arm64.json`, `xen.*.cfg`, `.gitignore` and the `Dockerfile` building the root filesystem with the Ruby standard library. Signed-off-by: Lupsa Alexandra <alexandra.lupsa1103@stud.acs.upb.ro>
razvand
requested changes
Aug 27, 2026
razvand
left a comment
Contributor
There was a problem hiding this comment.
Squash both commits into a single one. Be sure you sign the commit:
I get this error when building:
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:4001: the top level
configure.ac:4027: warning: AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS
configure: error: cannot find required auxiliary files: config.guess config.sub
make[3]: *** [/home/monkey/razvand/orgs/unikraft/maintainer-tools/workdir/libs/ruby/Makefile.uk:589: /home/monkey/razvand/orgs/unikraft/catalog-core/ruby-hello/workdir/build/libruby/.configured] Error 1
Does the build work for you?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a Draft PR for the Ruby-Hello application integration. I am following the standard Unikraft catalog structure (similar to other examples) to provide a simple Ruby unikernel example. I am opening this draft to get feedback on the current setup and guidance on build-time errors I am encountering.
Current Progress
1. App Integration: Added
Config.uk,Makefile, andMakefile.ukfor the ruby-hello application.2. Setup Automation: Updated the top-level setup.sh to include lib-ruby and required dependencies (
lib-newlib,lib-pthread-embedded).3. Firecracker: Included a draft
fc.x86_64.jsonfor testing the application on Firecracker.4. Documentation: Added a standard
README.mdwith build and run instructions.Current Blockers & Challenges
1. Ruby Version: I am currently using
Ruby 2.6.0from the lib-ruby repository.2. Build Errors & Sequence:
I. Missing Auxiliary Files: The build first fails because
it cannot find config.guess and config.sub.II. Manual Workaround: If I manually add these files to the tool/ directory, the process moves forward but hits a second, more critical error.
III. Syntax Error: In the ./configure stage, I get: ./configure:
line 4112: syntax error near unexpected token 'fi'.Root Cause: This appears to be a compatibility issue between Ruby 2.6's older Autotools macros and the modern Autoconf environment on my host, which generates an invalid configuration script.
Fixes #25