Sign inSign up

sdesbure/docker-storjshare-cli

By sdesbure

Updated over 8 years ago

Docker container for Storj Share CLI

Image
0

873

sdesbure/docker-storjshare-cli repository overview

The Storj Share Daemon+CLI (https://github.com/Storj/storjshare-daemon).

Build

This image is built automatically every 8 hours, at 07:15, 15:15 and 23:15 (all times UTC), and whenever anything gets pushed to github. Pull the latest with:

docker pull oreandawe/storjshare-cli:latest

Local Build

Alternatively, build the container locally:

cd /path/to/your/buildarea
git clone https://github.com/zannen/docker-storjshare-cli
docker build -t oreandawe/storjshare-cli:latest docker-storjshare-cli/

Run Daemon

Start the daemon by using this command (optional args shown in square brackets with default values):

docker run --detach \
    --name mystorjdaemon \
    --restart=always \
    -v /path/to/storjdata:/storj \
    -p 4000-4003:4000-4003 \
	-e WALLET_ADDRESS=your_ERC20_wallet_address \
	[-e DATADIR=/storj] \
	[-e SHARE_SIZE=1TB] \
	[-e RPCADDRESS=0.0.0.0] \
	[-e USE_HOSTNAME_SUFFIX=FALSE] \
  [-e DAEMON_ADDRESS=0.0.0.0] \
    oreandawe/storjshare-cli:latest

Status

Check the status of the daemon by using this command:

docker exec mystorjdaemon storjshare status

The output should look something like this:

┌─────────────────────────────────────────────┬─────────┬──────────┬──────────┬─────────┬───────────────┬─────────┬──────────┬───────────┬──────────────┐
│ Share                                       │ Status  │ Uptime   │ Restarts │ Peers   │ Allocs        │ Delta   │ Port     │ Shared    │ Bridges      │
├─────────────────────────────────────────────┼─────────┼──────────┼──────────┼─────────┼───────────────┼─────────┼──────────┼───────────┼──────────────┤
│ abcdefabcdefabcdefabcdefabcdefabcdefabcd    │ running │ 4d 22h … │ 0        │ 243     │ 30            │ 20ms    │ 1234     │ 15.00MB   │ connected    │
│   → /storj/share                            │         │          │          │         │ 15 received   │         │ (Tunnel) │ (1%)      │              │
└─────────────────────────────────────────────┴─────────┴──────────┴──────────┴─────────┴───────────────┴─────────┴──────────┴───────────┴──────────────┘

Stop Daemon

Stop the daemon by using these commands:

docker stop mystorjdaemon
docker rm mystorjdaemon

Versions

Check versions for npm, node and storjshare with:

docker run --rm -ti --entrypoint /versions oreandawe/storjshare-cli:latest
node version:
v6.7.0

npm version:
{ npm: '3.10.3',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '57.1',
  modules: '48',
  node: '6.7.0',
  openssl: '1.0.2k',
  uv: '1.9.1',
  v8: '5.1.281.83',
  zlib: '1.2.11' }

storjshare version:
daemon: 5.3.0, core: 8.5.0, protocol: 1.2.0

Or run an interactive shell:

docker run --rm -ti --entrypoint /bin/sh oreandawe/storjshare-cli

Or connect to an existing container:

docker exec -ti nameofyourcontainer /bin/sh

Tag summary

Content type

Image

Digest

Size

43.1 MB

Last updated

over 8 years ago

docker pull sdesbure/docker-storjshare-cli