How to run the Mirage example locally?
Closed this issue · 4 comments
@dinosaure, what would a person new to Mirage (such as myself) do to run the Mirage example locally?
Ideally, the basic Mirage example would show such instructions. It can have a note near the end, giving instructions for gcloud.
The current example provided by dream
has some requirement due to the let's encrypt challenge, so it needs for any targets (including unix
):
- a domain-name (which points to the public IP address)
- at least, the ability to bind
*:80
to do the let's encrypt challenge
I will try to provide something which does not require such things to be able to deploy locally the unikernel.
#146 should fix the issue if it corresponds to what you want. I'm not the best to explain stuffs.
As of now, it appears that the Mirage example is still not runnable locally in practice, because it requires a domain and Let's Encrypt.
As mentioned in #146 (comment), Dream has a development certificate already compiled in that can be used (AFAIK) instead of one obtained from Let's Encrypt. It's available under the name Dream__localhost.certificate
. It's used (internally) by Dream's existing non-Mirage HTTPS example.
I don't know the details, but I initially assume that this certificate can also be used with Mirage.
I've since written a new Mirage example, which is much simplified, and I am often running it in order to test Dream's compatibility with Mirage.
The previous Mirage example is now in w-mirage-letsencrypt
as an archive. I will restore it later once we are working on Dream's Let's Encrypt support.