Coder Social home page Coder Social logo

xerom-node-dockerized's Introduction

xerom-node-dockerized

Xerom node daemon for the Xerom (XERO) Network

This method uses a bind mount to persist the blockchain data on the host.

To simplify things, basic operations have been added as Makefile commands.

To build:

make image

To run the node / daemon (non-interactive):

make node

To access the running node interactively with the geth console:

make attach

To run as a systemd service:

Assuming you have created a user xeromnode in group xeromnode and have cloned this repository in the xeromnode home user directory, the following service file will start the daemon automatically at system startup.

Enter the following into /etc/systemd/system/xeromnode.service:

[Unit]
Description=Xerom node daemon service
After=network.target

[Service]
User=xeromnode
Group=xeromnode
Type=simple
Restart=always
RestartSec=30s
WorkingDirectory=/home/xeromnode/xerom-node-dockerized
ExecStart=/usr/bin/make node

[Install]
WantedBy=default.target

After creating the service file, enable and restart the service:

systemctl enable xeromnode
systemctl restart xeromnode

NOTE: You must make sure the service is running if you use interactive mode for the geth console.

To stop the service:

systemctl stop xeromnode

To restart the service:

systemctl restart xeromnode

Docker Hub:

Skip the entire build process by using a prebuilt image from Docker Hub. This is only recommended for testing & development. We cannot guaruntee how often the image will be updated.

To use the above systemd service together with docker hub images:

Edit the Makefile and replace all occurrances of xerom:${GIT_REF} with wattpool/xeromnode, then coninue setup in the section aboove, "To run as a systemd service".

To pull the image:

docker pull wattpool/xeromnode

To run the image:

docker run wattpool/xeromnode

To run the image with a bind mount:

docker run --mount source=xerom,target=/root wattpool/xeromnode

To access the running node interactively with the geth console:

docker run wattpool/xeromnode attach

Donations accepted:

0x087c83e882822E96AD09eF2A15391C88E241AdA8 (XERO)

xerom-node-dockerized's People

Contributors

mkrufky avatar

Watchers

 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.