Skip to content

Instantly share code, notes, and snippets.

@jeffwillette
Created January 12, 2018 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffwillette/6a6a3fce27d2e46df0856d54175a12fb to your computer and use it in GitHub Desktop.
Save jeffwillette/6a6a3fce27d2e46df0856d54175a12fb to your computer and use it in GitHub Desktop.
A full public IOTA node in a single command
#!/bin/bash
# download the current tangle database
wget http://db.iota.partners/IOTA.partners-mainnetdb.tar.gz
# make a data directory for the database and unpack it
mkdir -p iri/mainnetdb
tar -xvf IOTA.partners-mainnetdb.tar.gz -C iri/mainnetdb
# run IRI with the data mounted into it
docker run -d \
--net host \
-p 14265:14265 \
--name iri \
-v $(pwd)/iri/mainnetdb:/iri/mainnetdb \
iotaledger/iri
# run nelson to manage neighbors
docker run -d \
--net host \
-p 18600:18600 \
--name nelson \
romansemko/nelson.cli \
-r localhost \
-i 14265 \
-u 14777 \
-t 15777 \
--neighbors "mainnet.deviota.com/16600 mainnet2.deviota.com/16600 mainnet3.deviota.com/16600 iotairi.tt-tec.net/16600"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment