Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.81 KB

File metadata and controls

56 lines (37 loc) · 1.81 KB
description
Install LTO Network full node plus supporting tools on Apple macOS Mojave.

MacOS

LTO Network full node

The LTO full node is comprised of a set of Docker containers. For development, use docker compose as orchestration tool.

Docker Desktop

{% hint style="success" %}

  1. Download Docker Desktop for macOs.
  2. Double-click Docker.dmg to open the installer, then drag Moby the whale to the Applications folder.
  3. Double-click Docker.app in the Applications folder to start Docker. {% endhint %}

For more detailed instructions please read the Installation guide in the Docker documentation.

Docker Desktop includes docker compose, so it's not needed to install that separately.

LTO full node

$ curl "https://raw.githubusercontent.com/legalthings/lto-deepdive/master/docker/dev/docker-compose.yml" -o docker-compose.yml
$ docker-compose up

Live contracts tester

The live contract tester (lctest) is build on Behat and runs on PHP. It requires PHP 7+ with the mongodb and yaml PECL extension.

PHP CLI

PHP 7 is pre-installed on macOS Mojave. Earlier versions of macOS need to update PHP using brew.

{% hint style="success" %} Verify that you have a correct version of PHP by running php -v in the terminal. {% endhint %}

PECL extensions for PHP

$ pecl install mongodb
$ pecl install yaml

The yaml extension requires LibYAML, which should be pre-installed on your system.

lctest.phar

$ curl "https://github.com/legalthings/livecontracts-tester/raw/master/lctest.phar" -o lctest.phar
$ php lctest.phar --version