GithubHelp home page GithubHelp logo

isabella232 / nautilus-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from airgap-it/nautilus

0.0 0.0 0.0 152 KB

Automation tools for deploying blockchain networks

License: GNU General Public License v3.0

Shell 100.00%

nautilus-2's Introduction

Nautilus

Automation tools for deploying reproducible blockchain infrastructure.

Running Conseil for Tezos

This document assumes there is a Tezos node running and shows how to setup containers for Conseil and Postgres respectively.

Prerequisites

  1. A Linux system, we use Ubuntu LTS releases.
  2. Docker installed and a non-root user added to the docker group in order to run the docker commands.
  3. A Scala build environment which can be installed as follows:
sudo apt-get install -y openjdk-8-jdk-headless
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install -y sbt

Image creation

  1. Clone nautilus repo from github:
    git clone https://github.com/Cryptonomic/Nautilus.git ./nautilus
    cd nautilus
  2. There are two ways to configure the installation for the Conseil and Postgres containers, there is a default config that’s provided as part of the repo and as an alternative you can provide your own installation, for the sake of this document we will use the provided installation and modify it slightly to allow it to work with the user’s infrastructure.
  3. In the conseil.conf file located in the repo at path /docker/config/local/conseil/conseil.conf Some changes are required, specifically, if running mainnet, “alphanet” needs to be changed to "mainnet", also, the hostname needs to be changed to match the IP of the node running Tezos as shown below.
"platforms": {
    "tezos": {
        "mainnet": {
            "node": {
                "protocol": "http",
                "hostname": "1.2.3.4",
                "port": 8732,
                "pathPrefix": ""
            }
        }
    }
}

If changing the Postgres username and password, it needs to be changed in the conseil.conf file as well as the env.list file in the repo. The env.list file. Within the downloaded repo, it is in /docker/config/local/postgres/env.list.

databasename, username, and password in conseil.conf must match CONSEILDB_DBNAME, CONSEILDB_USER, and CONSEILDB_PASSWORD in env.list.

  1. Build Postgres and Conseil containers for Docker.
bash /path/to/repo/Nautilus/docker/nautilus.sh -c -d

The -c flag builds and packages Conseil docker image. -d Does the same for Postgres, these flags can be applied separately as well.

 bash /path/to/repo/Nautilus/docker/nautilus.sh -c
 bash /path/to/repo/Nautilus/docker/nautilus.sh -d

Note that the containers are named after the directories immediately inside /docker/config/, for example conseil-local.

Running the environment

While the script in step 4 will spawn the images created at the end, starting them later can be done as follows.

docker container start conseil-local
docker container start postgres-local

To stop the containers execute:

docker container stop conseil-local
docker container stop postgres-local

For more details visit the Conseil repo on GitHub. Developer documentation is also available with specific usage examples.

nautilus-2's People

Contributors

leenpaws avatar vishakh avatar anonymoussprocket avatar

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.