Coder Social home page Coder Social logo

iota-iri's Introduction

IOTA IRI node

This is IRI (IOTA reference implementation) packed as small docker image.

It's used by my IOTA node pool on iota.rootlogin.ch.

Features

Usage

First you need to find some neighbors for your node. You can do this by joining the #nodesharing-Slack channel. You can join slack on slack.iota.org.

Afterwards you can start the node with:

$ docker run --net=host -d --name iota-node -v iota_data:/opt/iri/data -e "NEIGHBORS=udp://neighbor1:14600 tcp://neighbor1:15600 udp://neighbor3:14600" rootlogin/iota-iri

To rescan the database or revalidate, you can do this:

$ docker run --net=host --rm --name iota-node -v iota_data:/opt/iri/data -e "NEIGHBORS=udp://neighbor1:14600 tcp://neighbor1:15600 udp://neighbor3:14600" rootlogin/iota-iri --rescan
$ docker run --net=host --rm --name iota-node -v iota_data:/opt/iri/data -e "NEIGHBORS=udp://neighbor1:14600 tcp://neighbor1:15600 udp://neighbor3:14600" rootlogin/iota-iri --revalidate

Pre-sync database

If you want to sync your node with the latest tangle database from iota.partners, set the environment variable PRESYNC to 1. This helps to get your node faster fully synced.

Environment variables

You can configure different things with environment variables:

Name Description
NEIGHBORS List of your neighbors (space delimited).
REMOTE_API_LIMIT List of things that are forbidden via api (Default: attachToTangle, addNeighbors, removeNeighbors).
API_PORT Port for API listener (Default: 14265).
UDP_PORT Port for UDP listener (Default: 14600).
TCP_PORT Port for TCP listener (Default: 15600).
PRESYNC If you want presync your database with iota.partners set 1 (Default: 0).
JAVA_OPTIONS Default: "-XX:+DisableAttachMechanism -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"

Run with docker-compose

You can also run IRI with docker-compose. See this example:

version: '2'

services:
  iota-node:
    container_name: iota-node
    restart: always
    image: rootlogin/iota-iri:latest
    mem_limit: 8G
    network_mode: host
    environment:
      - TZ=Europe/Zurich
      - NEIGHBORS=udp://neighbor1:14600 tcp://neighbor1:15600 udp://neighbor3:14600
    volumes:
      - /opt/iri-data:/opt/iri/data

iota-iri's People

Contributors

chrootlogin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

iota-iri's Issues

Use Logrotation

A few day ago my IRI spammed my log and finally the servers disk.
It would be useful to define a logrotation in the logback file.

Delete DB with option Presync

I just had some problems with the Presync Option. I think it would be a good idea to delete the DB in folder /opt/iri/data/db before.

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.