Skip to content

Installing Prerequisites

Indika edited this page Oct 1, 2018 · 12 revisions

Contents

  1. Clone the repo
  2. Installing Docker

Clone the repo

The first thing you'll need to do is to clone the Haiku Node Prototype repository, so mkdir and cd into a suitable directory, then run:

git clone https://github.com/unification-com/haiku-node-prototype --recurse-submodules

then:

cd haiku-node-prototype

Installing Docker

Docker and Docker Compose are required to fully interact with the Haiku Node Prototype. On OSX and Linux, both are available from Docker CE. This software has been tested against Docker 18.03.1-ce and Docker Compose 1.21.1. Avoid any compilation issues by allocating 8GB of RAM to the Docker process.

Installing Docker on Ubuntu based systems

For full instructions on how to install Docker CE, see https://docs.docker.com/install/linux/docker-ce/ubuntu/

Update apt

sudo apt-get update

Install prerequisites

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

Add Docker's GPG Key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Add the Docker CE Repo

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Update apt

sudo apt-get update

Install

sudo apt-get install docker-ce

Additional step - you may need to add your user to the docker group, then log out/in:

sudo adduser [username] docker

Install the latest Docker Compose. For full instructions, see https://docs.docker.com/compose/install/

Download the latest version

sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

Make executable

sudo chmod +x /usr/local/bin/docker-compose

Test

docker-compose --version

should output

docker-compose version 1.21.2, build 1719ceb

Installing on Docker OSX

Docker for Mac can be obtained from here: https://docs.docker.com/docker-for-mac/

Next: Getting Started - Initialising the Demo System

You can’t perform that action at this time.