Sign inSign up

mdzmodel/tronserver

By mdzmodel

•Updated over 9 years ago

Crown Tron Server with blockchain. Just update the crown.conf file and network settings.

Image
1

271

mdzmodel/tronserver repository overview

  1. Saved text below in crown.conf, stored in same directory as dockerfile:

rpcallowip=127.0.0.1 rpcuser=tron rpcpassword=crw listen=1 server=1 daemon=1 txindex=1 externalip=127.0.0.1:9340 throne=1

[the crown.conf file will need to be modified to match the user's requirements]


  1. Base images built from Dockerfile shown below with different source images:

FROM ubuntu:yakkety (yakbase) FROM debian:jessie (jesbase) FROM python:3.6.0 (elebase)


ENV HOME /crown

RUN apt-get update && apt-get install -y wget openssh-client
&& wget https://github.com/Crowndev/crowncoin/releases/download/v0.12.0.61/crown-177.6-x86_64-unknown-linux-gnu.tar.gz⁠
&& tar xvzf crown-177.6-x86_64-unknown-linux-gnu.tar.gz
&& cd 177.6-x86_64-unknown-linux-gnu/bin
&& mv crownd /usr/local/bin
&& mv crown-cli /usr/local/bin
&& mv crown-tx /usr/local/bin
&& mkdir -p .crown
&& apt-get install -y git ansible
&& apt-get update -y && apt-get dist-upgrade -y

COPY crown.conf /crown/.crown/crown.conf


  1. Images tagged with dates (YYYYMMDD) were synced to the crown blockchain.

  2. A trustless build can work from the dockerfile and crown.conf to build a container in docker and then sync the blockchain to the container from the network, or a trusted build can just download a recently built container with a reasonably up to date blockchain already loaded.

Tag summary

Content type

Image

Digest

Size

1.3 GB

Last updated

over 9 years ago

docker pull mdzmodel/tronserver:jesstron