- Docker installed and running (Docker machine and Docker for Mac are supported)
jqmake- Virtualbox (if using the virtualbox provider)
- go-bindata
$ git clone https://github.com/solo-io/unik.git
$ cd unik
$ make # or 'make binary'; see the notes below
$ _build/unik
Unik is a tool for compiling application source code
into bootable disk images. Unik also runs and manages unikernel
instances across infrastructures.
...
Note that make will pre-pull a number of large docker containers unik needs in order to run. In order to skip pre-pulling (as you may not require all of these containers), you can replace make with make binary. Note that the first time unik requires a specific docker image, it will pull that image.
This will place the unik executable at unik/_build/unik. Run UniK commands with ./_build/unik, or move the binary to somewhere in your path, such as /usr/local/bin to run commands from anywhere with unik [command]
Continue to configuration to learn how to configure your UniK setup
By default, make will pull all of the necessary container images from Docker Hub.
If you wish to build containers from sources, you will need:
- Golang v1.5 or later
$GOPATHshould be set and$GOPATH/binshould be part of your$PATH(see https://golang.org/doc/code.html#GOPATH)- Apache Maven
Verify that
mvnandgoare installed, and your$GOPATHis set correctly. Then simply:
$ make containers
$ make uninstall
$ make remove-containers