All Projects → WietseWind → docker-rippled

WietseWind / docker-rippled

Licence: MIT license
Run a Ripple XRP (rippled) node in a Docker container

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-rippled

xrp-vanity-generator
Generate XRP Vanity Addresses (Wallets) on your local computer
Stars: ✭ 18 (-59.09%)
Mutual labels:  xrp-ledger
rippled-php
A PHP library for rippled (XRP Ledger) communication.
Stars: ✭ 33 (-25%)
Mutual labels:  xrp-ledger
ripple-binary-codec
Convert between json and hex representations of transactions and ledger entries on the XRP Ledger. Moved to: https://github.com/XRPLF/xrpl.js/tree/develop/packages/ripple-binary-codec
Stars: ✭ 18 (-59.09%)
Mutual labels:  xrp-ledger
docker-rippled-validator
Run a Ripple XRP (rippled) validator in a Docker container
Stars: ✭ 26 (-40.91%)
Mutual labels:  xrp-ledger
XpringKit
XpringKit provides a Swift SDK for interacting with Xpring Protocols (XRP/PayID/ILP). This library is deprecated.
Stars: ✭ 23 (-47.73%)
Mutual labels:  xrp-ledger
xrp-wallet
Offline/Cold wallet for XRP
Stars: ✭ 12 (-72.73%)
Mutual labels:  xrp-ledger
Rippled
Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger in C++
Stars: ✭ 4,029 (+9056.82%)
Mutual labels:  xrp-ledger
XRPL-MultiSignTool
Graphical user interface to setup MultiSigning, and help with composing & combining MultiSigned transactions.
Stars: ✭ 13 (-70.45%)
Mutual labels:  xrp-ledger
explorer
Open Source XRP Ledger Explorer
Stars: ✭ 18 (-59.09%)
Mutual labels:  xrp-ledger
xrpayments.co
In-store payment requests in XRP (using Ripple URI QR) - With currency converter
Stars: ✭ 18 (-59.09%)
Mutual labels:  xrp-ledger
xrpl-py
A Python library to interact with the XRP Ledger (XRPL) blockchain
Stars: ✭ 70 (+59.09%)
Mutual labels:  xrp-ledger
xrpl-dev-portal
Source code for xrpl.org including developer documentation
Stars: ✭ 330 (+650%)
Mutual labels:  xrp-ledger

Rippled (node)

This container allows you to run a rippled node. No config required.

The server will keep a history of only 256 ledgers. You can change this value in the config (more about the config in this readme).

The container is configured to serve a public http websocket at port 80 and the local rpc admin service in the container at port 5005. Other ports (443, 6006, 51235) can be mapped but should be enabled in the config first.

This container is running on ubuntu:latest.

How to run

From Github

If you downloaded / cloned the Github repo you got yourself a few scripts to get started. In the ./go folder, the following scripts are available, run:

  • go/build to build the container image (tag: rippled)
  • go/up to create a new container named rippled and setup the port and persistent config (*1)
  • go/down to stop and remove the container rippled

The go/up command will mount the subfolder (in the cloned repo folder) config to the container; the rippled.cfg config and validators.txt will be loaded from this folder when rippled starts. If you stop/start or restart the container, the container will pickup your changes.

When starting the container the go/up script will map port 80 on your host to port 80 in the container. This is where rippled is configured to serve a websocket. If you want to run the websocket on another TCP port, you can enter the port after the go/up command, eg.:

go/up 8080

After spinning the container up, you will see the rippled log. You should see a lot of information show up within a few seconds. If you want to stop watching the log, press CTRL - C. The container will keep on running in the background.

If you want to build the image manually, use (you can change the tag):

docker build --tag rippled:latest .

From the Docker Hub

Use the image xrpllabsofficial/xrpld.

Because you only retrieved the container image from the Docker Hub, you have to manually create a container based on the image. When creating the container, please make sure you open port 80.

If you run the container with a mapping to /config/ (in the container) containing a rippled.cfg and validators.txt file, these will be used. If the mapping or these files aren't present, rippled will start with the default config.

This command launches your rippled container and the rippled websocket at port 80:

docker run -dit \
    --name rippled \
    -p 80:80 \
    -v /my/local/disk/xrpld-config/:/config/ \
    xrpllabsofficial/xrpld:latest

You can change the --name and make sure you specify a valid local full path for your volume source, instead of /my/local/disk/xrpld-config/.

You can fetch a working sample config from the Github repo.

So it's running

If you want to check the rippled-logs (container stdout, press CTRL - C to stop watching):

docker logs -f rippled

If you want to check the rippled server status:

docker exec rippled server_info

Check the value of complete_ledgers in the server info to see if the server has complete ledgers with transactions. When you launch the container it may take a few minutes for the server to sync.

If you started the container manually, you may have to change the name of the container (rippled) to the name you entered in your docker run command.

Connecting

You can now connect to the rippled websocket using a client like ripple-lib.

Updating

Update process

  1. Stop the container: docker stop rippled (if you named (--name) the container rippled)
  2. Remove the container: docker rm rippled
  3. Remove the image: docker rmi xrpllabsofficial/xrpld:latest (or if you built the container image based on the Github repo: use the image name you specified when building)
  4. Re-create the container; if you used Git: git pull and go/build - if you used the Docker Hub: just use the command from this Readme (From the Docker Hub), a new version of the image will be downloaded.

USE THE PATHS YOU SPECIFIED (-v argument) WHEN RECREATING THE CONTAINER IF YOU WANT TO KEEP YOUR CONFIG AND/OR DATA!

Building & publishing to Docker Hub:

version=1.8.1 # sample
docker build --no-cache --tag xrpllabsofficial/xrpld:$version .
docker push xrpllabsofficial/xrpld:$version
docker tag xrpllabsofficial/xrpld:$version xrpllabsofficial/xrpld:latest
docker push xrpllabsofficial/xrpld:latest
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].