Mort's Mythopoeia
OCaml HTML CSS CoffeeScript Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.well-known
_coffee
_includes
_layouts
_mirage
_posts
css
images
js/vendor
research
.gitignore
.travis.yml
Makefile
README.md
_config.yml
codes.md
feed.atom
feed.rss
index.md
me.md
teaching.md

README.md

Build Status

Mort's Web Pages

Built as a Mirage appliance, and deployed to http://mort.io/.

I now use Docker containers to avoid the need to install dependencies: Coffeescript, Jekyll, Python. OPAM and Mirage currently still need to be installed on the host however. As a simple hack to deal with access to my .bib files which are elsewhere on the host, I've hardlinked them under _papers.

Targets

make site will invoke the Jekyll container to build the site to _site.

make test will invoke the Jekyll container to run the site locally for testing.

make configure will invoke Mirage to configure the unikernel, defaulting to building for UNIX using the Sockets API. Alternatives include:

  • configure.xen, build for Xen
  • configure.socket, UNIX/Sockets
  • configure.direct, UNIX/Mirage network stack

Then make build to build the unikernel.

Deployment Setup

Use Travis to build the unikernel and push it back to a deployment repo:

gem install travis
opam install travis-senv
[[ run travis to stop it whining about installing cli completion or not ]]
ssh-keygen -b 4096 -f ~/.ssh/mor1-www-key
travis-senv encrypt ~/.ssh/mor1-www-key travis-ssh-envs
cat travis-ssh-envs | travis encrypt -ps --add

Then take the result and past it into the _travis.yml per this site.

TODO

github pdf hosting

http://webapps.stackexchange.com/questions/48061/can-i-trick-github-into-displaying-the-pdf-in-the-browser-instead-of-downloading

looks like mor1.github.{io,com} overlay each other with .io taking precedence?!