Sign inSign up

eqlabs/offchain-ipfs

By eqlabs

Updated almost 6 years ago

Substrate, infused with IPFS

Image
0

1.2K

eqlabs/offchain-ipfs repository overview

offchain::ipfs

offchain::ipfs is Substrate, infused with IPFS.

Overview

The image comes with two binaries:

  1. The default node-template contains our custom pallet to preview the Offchain::ipfs functionalities through transactions
  2. The substrate binary does not have our custom pallets to interact with the IPFS node, instead you can connect to it through its multiaddr

The image exposes ports 9944 for WebSockets, 9933 for RPC, 30333 for p2p, and 9615 for Prometheus.

Running the image

The default command for the image is:

node-template --ws-external --rpc-external --base-path=/offchain-ipfs --dev

Run the default like so:

docker run -p 9944:9944 \
  -p 9933:9933 \
  -p 30333:30333 \
  -p 9615:9615 \
  -it \
  --rm \
  --name node-template \
  eqlabs/offchain-ipfs

To override the default and run substrate, for example:

docker run \
  -p 9944:9944 \
  -p 9933:9933 \
  -p 30333:30333 \
  -p 9615:9615 \
  -it \
  --rm \
  --name sub-ipfs \
  offchain-ipfs \
  substrate

This will work with any arguments you'd normally pass to substrate

Persistent Storage

To run with persistent storage volume between containers, first create a volume:

docker volume create offchain-ipfs-vol

Then add -v offchain-ipfs-vol:/offchain-ipfs to the docker run commands above.

Tag summary

Content type

Image

Digest

Size

47.6 MB

Last updated

almost 6 years ago

docker pull eqlabs/offchain-ipfs