Skip to content

Latest commit

 

History

History
137 lines (111 loc) · 3.57 KB

docker.md

File metadata and controls

137 lines (111 loc) · 3.57 KB

Installing dPay's Jefferson Dev Network Node With Docker

We provide instructions for installing dPay's Jefferson dev network node using Docker for both Ubuntu 16.04 and Mac OSX. We do currently have instructions for building on Windows but will be providing build instructions in our next release.

Ubuntu 16.04

Install The Latest Version Of Docker

apt-get remove docker docker-engine docker.io \
    apt-get update \
    apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg |  apt-key add - && apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
apt-get update && apt-get install -y docker-ce

Pure Docker Installation

There are two options when it comes to pure Docker installs of dpayd and cli_wallet. You can simply install the latest stable release of dpayd and cli_wallet or you can enable extra build requirements for low-memory and launching web-based nodes for API/development purposes.

Install The Stable-Release / Low-Memory Node Of dpayd

Suitable for:

  • seed nodes
  • witness nodes
  • exchanges, etc.
docker run \
    -d -p 6620:6620 -p 1776:1776 --name dpayd-default \
    --restart unless-stopped dpay/dev

Full API Node

Suitable for:

  • dApps
  • Developers
  • Web Services
docker run \
    --env USE_WAY_TOO_MUCH_RAM=1 --env USE_FULL_WEB_NODE=1 \
    -d -p 6620:6620 -p 1776:1776 --name dpayd-full \
    --restart unless-stopped \
    dpay/dev

Build From Source With Docker

We ship a Dockerfile. This builds both common node type binaries.

git clone https://github.com/dpays/dpay
cd dpay
docker build -t dpay/dev .

Mac OSX

Install The Latest Docker

Follow the installation instructions via Docker's documentation

Pure Docker Installation

There are two options when it comes to pure Docker installs of dpayd and cli_wallet. You can simply install the latest stable release of dpayd and cli_wallet or you can enable extra build requirements for low-memory and launching web-based nodes for API/development purposes.

Install The Stable-Release / Low-Memory Node Of dpayd

Suitable for:

  • seed nodes
  • witness nodes
  • exchanges, etc.
docker run \
    -d -p 6620:6620 -p 1776:1776 --name dpayd-default \
    --restart unless-stopped dpay/dev

Full API Node

Suitable for:

  • dApps
  • Developers
  • Web Services
docker run \
    --env USE_WAY_TOO_MUCH_RAM=1 --env USE_FULL_WEB_NODE=1 \
    -d -p 6620:6620 -p 1776:1776 --name dpayd-full \
    --restart unless-stopped \
    dpay/dev

Build From Source With Docker

We ship a Dockerfile. This builds both common node type binaries.

git clone https://github.com/dpays/dpay
cd dpay/docker/jefferson
docker build -t dpay/dev .

Launch Container

After building the container from source, launch the Docker container with the commands below.

Low-Memory Node
docker run \
    -d -p 6620:6620 -p 1776:1776 --name dpayd-default \
    --restart unless-stopped dpay/dev
Full API Node
docker run \
    --env USE_WAY_TOO_MUCH_RAM=1 --env USE_FULL_WEB_NODE=1 \
    -d -p 6620:6620 -p 1776:1776 --name dpayd-full \
    --restart unless-stopped \
    dpay/dev