Giter Site home page Giter Site logo

duff's Introduction

MirageOS logo
Build Unikernels in OCaml

OCaml-CI Build Status docs


MirageOS is a library operating system that constructs secure, performant and resource-efficient unikernels.

About

MirageOS is a library operating system that constructs unikernels for secure, high-performance network applications across various cloud computing and mobile platforms. Developers can write code on a traditional OS such as Linux or macOS. They can then compile their code into a fully-standalone, specialised unikernel that runs under the Xen or KVM hypervisors and lightweight hypervisors like FreeBSD's BHyve, OpenBSD's VMM. These unikernels can deploy on public clouds, like Amazon's Elastic Compute Cloud and Google Compute Engine, or private deployments.

The most up-to-date documentation can be found at the homepage. The site is a self-hosted unikernel. Simpler skeleton applications are also available online. MirageOS unikernels repositories are also available here or there.

This repository

This repository contains the mirage command-line tool to create and deploy applications with MirageOS. This tool wraps the specialised configuration and build steps required to build MirageOS on all the supported targets.

Local install

You will need the following:

  • a working OCaml compiler (4.08.0 or higher).
  • the Opam source package manager (2.1.0 or higher).
  • an x86_64 or armel Linux host to compile Xen kernels, or FreeBSD, OpenBSD or MacOS X for the solo5 and userlevel versions.

Then run:

$ opam install mirage
$ mirage --version

This should display at least version 4.0.0.

Using mirage

There are multiple stages to using mirage:

  • write config.ml to describe the components of your applications;
  • call mirage configure to generate the necessary code and metadata;
  • optionally call make depends to install external dependencies and download Opam packages in the current dune workspace.
  • call dune build to build a unikernel.

You can find documentation, walkthroughs and tutorials over on the MirageOS website. The install instructions are a good place to begin!

duff's People

Contributors

craigfe avatar dinosaure avatar hannesm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

duff's Issues

fails on 32-bit

#19 381.5 #=== ERROR while compiling duff.0.2 ===========================================#
#19 381.5 # context              2.0.7 | linux/x86_32 | ocaml-base-compiler.4.10.0 | file:///home/opam/opam-repository
#19 381.5 # path                 ~/.opam/4.10/.opam-switch/build/duff.0.2
#19 381.5 # command              ~/.opam/4.10/bin/dune build -p duff -j 71
#19 381.5 # exit-code            1
#19 381.5 # env-file             ~/.opam/log/duff-8-556aff.env
#19 381.5 # output-file          ~/.opam/log/duff-8-556aff.out
#19 381.5 ### output ###
#19 381.5 #       ocamlc lib/.duff.objs/byte/duff.{cmo,cmt} (exit 2)
#19 381.5 # (cd _build/default && /home/opam/.opam/4.10/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.duff.objs/byte -I /home/opam/.opam/4.10/lib/bigarray-compat -I /home/opam/.opam/4.10/lib/cstruct -I /home/opam/.opam/4.10/lib/fmt -I /home/opam/.opam/4.10/lib/seq -I /home/opam/.opam/4.10/lib/stdlib-shims -intf-suffix .ml -no-alias-deps -o lib/.duff.objs/byte/duff.cmo -c -impl lib/duff.ml)
#19 381.5 # File "lib/duff.ml", line 40, characters 15-25:
#19 381.5 # 40 |           then 2147483647 + (2147483648 + (to_int x))
#19 381.5 #                     ^^^^^^^^^^
#19 381.5 # Error: Integer literal exceeds the range of representable integers of type int
#19 381.5 #     ocamlopt lib/.duff.objs/native/duff.{cmx,o} (exit 2)
#19 381.5 # (cd _build/default && /home/opam/.opam/4.10/bin/ocamlopt.opt -w -40 -g -I lib/.duff.objs/byte -I lib/.duff.objs/native -I /home/opam/.opam/4.10/lib/bigarray-compat -I /home/opam/.opam/4.10/lib/cstruct -I /home/opam/.opam/4.10/lib/fmt -I /home/opam/.opam/4.10/lib/seq -I /home/opam/.opam/4.10/lib/stdlib-shims -intf-suffix .ml -no-alias-deps -o lib/.duff.objs/native/duff.cmx -c -impl lib/duff.ml)
#19 381.5 # File "lib/duff.ml", line 40, characters 15-25:
#19 381.5 # 40 |           then 2147483647 + (2147483648 + (to_int x))
#19 381.5 #                     ^^^^^^^^^^
#19 381.5 # Error: Integer literal exceeds the range of representable integers of type int
#19 381.5 

found via ocurrent/ocaml-ci#219

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.