Dockerized iotaledger-iri
294
This is a containerized iotaledger-iri from iotaledger. The goal of this guide is to help you use docker to setup your own full node which can be used by a iota lite-wallet client. Make IOTA Great Again.
Detail installation guides
http://iota.partners/
iotaledger-iri : 1.4.1.6 Release
https://github.com/iotaledger/iri
Download current database snapshots to speedup sync progress. This should only be done if you have a fresh node without any data.
Note: current database is roughly 7~10GB
Full nodes requires neighbors. Goto the #nodesharing on slack for more information. If you can't find any neighbors then you can try adding swarm nodes.
Slack Channel
https://iotatangle.slack.com
Forum
https://forum.helloiota.com/1156/Add-Neighbor
After your full node is up and running, you can use the following curl command to query node information.
Get Node Information
curl -s http://localhost:14265 -X POST -H 'X-IOTA-API-Version: 1' -H 'Content-Type: application/json' -d '{"command": "getNodeInfo"}'
Get Neighbors
curl -s http://localhost:14265 -X POST -H 'X-IOTA-API-Version: 1' -H 'Content-Type: application/json' -d '{"command": "getNeighbors"}'
Add Neighbor
curl -s http://localhost:14265 -X POST -H 'X-IOTA-API-Version: 1' -H 'Content-Type: application/json' -d "{"command": "addNeighbors", "uris": ["tcp://neighborIP:port"]}"
Remove Neighbor
curl -s http://localhost:14265 -X POST -H 'X-IOTA-API-Version: 1' -H 'Content-Type: application/json' -d "{"command": "removeNeighbors", "uris": ["tcp://neighborIP:port"]}"
Command is limited by REMOTE_LIMIT_API
{"error":"COMMAND getNodeInfo is not available on this node","duration":27}
Estimate sync time varies based on neighbor quality and system spec. With downloaded DB, it could be as quick as 1~2hrs for full sync. Fresh node sync with neighbor without DB could take more than 5 days.
This is a graphical user inteface that can be used on your full node and lets you add neighbors and see neighbor status.
These nodes will add you after a while, it is better to use a real neighbor. These nodes are good for fresh nodes that didn't have existing DB.
Note, these nodes are not fully synced.
udp://88.99.249.250:41041 udp://94.156.128.15:14600 udp://185.181.8.149:14600
Ex:
curl -s http://localhost:14265 -X POST -H 'X-IOTA-API-Version: 1' -H 'Content-Type: application/json' -d "{"command": "addNeighbors", "uris": ["udp://88.99.249.250:41041"]}"
API_PORT : This port is used for lite-wallet/Curl/Node peer manager to connect.
TCP_PORT : TCP neighboring.
UDP_PORT : UDP neighboring
MAX_MEMORY : Set Max memory allocation for iri
MIN_MEMORY : Set Min memory allocation for iri
REMOTE_LIMIT_API : Disables certain commands.
Ex: attachToTangle
attachToTangle uses iri server to do proof of work which is very CPU intensive. If you are running a public node, please disable attachToTangle and all of the neighboring commands.
Ex:
-e REMOTE_LIMIT_API='attachToTangle,addNeighbors,removeNeighbors,getNodeInfo'
$ mkdir iotaledger
$ cd iotaledger
download DB and extract to ./db directory
create ixi directory $ mkdir ixi
copy iota.ini from github. Modify iota.ini if you have existing neighbor. If not, you can just leave it empty then add your neighbors after server has started with curl command.
docker run -d --name iota --net=host -e MAX_MEMORY=4G -e MIN_MEMORY=1G -e UDP_PORT=14666 -p 14666:14666/udp -e API_PORT=14265 -p 14265:14265 -e TCP_PORT=15666 -p 15666:15666 -e REMOTE_LIMIT_API='attachToTangle' -v $(pwd)/db:/iri/db -v $(pwd)/ixi:/iri/ixi -v $(pwd)/iota.ini:/iri/iota.ini carbonsphere/iotaledger-iri
OSX
docker run -d --name iota -e MAX_MEMORY=4G -e MIN_MEMORY=1G -e UDP_PORT=14666 -p 14666:14666/udp -e API_PORT=14265 -p 14265:14265 -e TCP_PORT=15666 -p 15666:15666 -e REMOTE_LIMIT_API='attachToTangle' -v $(pwd)/db:/iri/db -v $(pwd)/ixi:/iri/ixi -v $(pwd)/iota.ini:/iri/iota.ini carbonsphere/iotaledger-iri
Example above uses a predefined UDP/TCP/API port. You can take those out if you are using default build in variables.
If it works for you, please consider donating.
Every bit helps. Thanks!
Buy your cryptos now!!!
Exchange your cryptos. Reliable and fast!
Content type
Image
Digest
Size
101.4 MB
Last updated
over 8 years ago
docker pull carbonsphere/iotaledger-iri