Add bincompat-go-http#101
Draft
Criss-Ivana wants to merge 1 commit into
Draft
Conversation
5d62eab to
d6f3654
Compare
Add catalog-core application to run mccutchen/go-httpbin as a Linux ELF via app-elfloader with lwIP networking. It includes rootfs Docker build, initrd packaging and detailed instructions in README.md for building and running the application on QEMU and Firecracker. Signed-off-by: Criss-Ivana <criss.ivana@gmail.com>
d6f3654 to
dc1355a
Compare
Author
|
Commit history was squashed to a single commit. Earlier force-pushes were from amending locally and me constantly changing my mind on what the best commit message is. :) |
razvand
requested changes
May 16, 2026
razvand
left a comment
Contributor
There was a problem hiding this comment.
Make the commit message wrap to 72 lines. Use "instructions" instead of "instructis" in the commit message.
If the application is httpbingo, name the directory accordingly: bincompat-go-httpbingo.
Use a proper name for authorship and for signed-off-by. Use Firstname Lastname <email>. Do not use Criss-Ivana.
Copy-pasting the commands doesn't work:
./setup.sh
make -C rootfs clean
make -C rootfs
./workdir/unikraft/support/scripts/mkcpio initrd.cpio ./rootfs/
make
sudo ip link set dev virbr0 down || true
sudo ip link del dev virbr0 || true
sudo ip link add dev virbr0 type bridge
sudo ip address add 172.44.0.1/24 dev virbr0
sudo ip link set dev virbr0 up
sudo qemu-system-x86_64 \
-nographic \
-enable-kvm \
-m 256 \
-cpu host \
-netdev bridge,id=en0,br=virbr0 -device virtio-net-pci,netdev=en0 \
-append "elfloader_qemu-x86_64 netdev.ip=172.44.0.2/24:172.44.0.1::: vfs.fstab=[ \"initrd0:/:extract::ramfs=1:\" ] -- /go-httpbin" \
-kernel workdir/build/elfloader_qemu-x86_64 \
-initrd ./initrd.cpioFollow the instructions and example from the bincompat-c-hello/ directory. See the README, scripts and other files.
razvand
requested changes
May 16, 2026
| CGO_ENABLED=1 CC=musl-gcc go build \ | ||
| -buildmode=pie \ | ||
| -ldflags='-linkmode external -extldflags "-static-pie"' \ | ||
| -o /src/dist/go-httpbin ./cmd/go-httpbin No newline at end of file |
| @@ -0,0 +1,2 @@ | |||
| /workdir | |||
| /rootfs/go-httpbin No newline at end of file | |||
| rm -f firecracker.socket | ||
| firecracker-x86_64 --config-file fc.x86_64.json --api-sock firecracker.socket | ||
| ``` | ||
|
|
| check_exists_and_create_symlink "unikraft" | ||
| check_exists_and_create_symlink "libs/libelf" | ||
| check_exists_and_create_symlink "libs/lwip" | ||
| check_exists_and_create_symlink "apps/elfloader" No newline at end of file |
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 PR ports the go-httpbin 2.13.4 from
catalogintocatalog-core.