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

Update post "From Jekyll site to Unikernel in fifty lines of code." #2

Open
Chris00 opened this issue Jul 30, 2014 · 1 comment
Open

Comments

@Chris00
Copy link

Chris00 commented Jul 30, 2014

  1. One needs to do opam search crunch before mirage configure --unix because the latter tries to run

    ocaml-crunch -o static1.ml /home/trch/tmp/mirage-skeleton/static_website/./htdocs
    
  2. To avoid the exception Failure("net_tap0") being thrown (and not require root privileges), it would be better to use a socket. For this, just do

    export NET=socket
    

    before mirage configure --unix. The default port is 80. If you run a web server on your machine — as I do — that port will be taken. to change it, go to the generated main.ml file and look for the line Stackv41.listen_tcpv4 ~port:80. Replace 80 with, say, 8080.

@Chris00
Copy link
Author

Chris00 commented Jul 30, 2014

See also mirage/mirage#280 which may change the instructions when it is implemented.

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

1 participant