Skip to content

Dockerfile for Stratis Interim Wallet (stratisX) based on Debian

License

Notifications You must be signed in to change notification settings

ckotte/stratis-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized Stratis Wallet

Dockerfile for Stratis Interim Wallet (stratisX) [Source] based on Debian

💰 Donations welcomed at SQr33rJ7w7G5nnV7YF4dikhExmy8U1RLWJ 🙇

Setup

  1. Build the Docker image
  2. Copy wallet and existing data
  3. Create stratis.conf
  4. Run the Docker container
  5. Unlock the wallet

Build the Docker image

$ docker build -t stratis .

Create the data directory and copy existing files (i.e. from the macOS Stratis Wallet)

mkdir -p ~/Docker/stratis
cp ~/Library/Application\ Support/Stratis/* ~/Docker/stratis

This copies the wallet.dat, databases, etc.pp.

Create stratis.conf

vim ~/Docker/stratis/stratis.conf

Example configruation:

rpcuser=stratisrpc
rpcpassword=XENkrC9AAqTTftU6YQg8mU66fKGL6L8aeJfAeSkrbXRK
rpcallowip=172.17.*.*
rpcport=16174
port=
gen=0
server=1
staking=1

addnode=101.100.131.181
addnode=103.24.76.21
# add more nodes if you want...

Note: You should change the rpcpassword.

Note: Don't modify rpcallowip=172.17.*.* because Docker uses a network in this range to connect the container to the network.

Run the Docker container

docker run --name stratis -d \
  --publish 16174:16174 \
  --volume ~/Docker/stratis:/var/lib/stratis \
  stratis

Unlock the wallet

docker exec -it stratis bash
stratisd-unlockwallet

The wallet is now unlocked for stacking.

Get information about staking

docker exec stratisd-getstakinginfo

Note: Staking is working if "staking" is set to true.

Credits

ewrogers/stratis-dockerfile

About

Dockerfile for Stratis Interim Wallet (stratisX) based on Debian

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages