Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirage Example #254

Open
sidsabh opened this issue Dec 10, 2024 · 3 comments
Open

Mirage Example #254

sidsabh opened this issue Dec 10, 2024 · 3 comments

Comments

@sidsabh
Copy link

sidsabh commented Dec 10, 2024

I am unable to run the example as a http2 argument. I tried downgrading my Mirage to see if this was allowed in a previous version, but to no avail. Can you advise on how I can compile?


> MODE=unix mirage configure
File "config.ml", line 15, characters 61-66:
15 |   foreign "Unikernel.Make" ~packages (console @-> pclock @-> http2 @-> job)
                                                                  ^^^^^

Thank you so much this would really be helpful.

@sidsabh
Copy link
Author

sidsabh commented Dec 11, 2024

(Stack : Tcpip.Stack.V4V6)
= struct
module TCP = Stack.TCP
module Http2 = H2_mirage.Server (TCP)

I figured out you need to construct it in a new way - if this is a needed update to this repo please let me know and I'll try to get a PR in (thanks so much for making this)

@anmonteiro
Copy link
Owner

this was never merged mirage/mirage#978

@sidsabh
Copy link
Author

sidsabh commented Dec 13, 2024

Thanks for the response, Antonio. I ended up getting it working on repo by passing the network stack to the unikernel module then initializing your HTTP2 client and server at runtime.

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

No branches or pull requests

2 participants