Skip to content

eostitan/eos-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EOS Docker Scripts


Description

Building and configuring an EOSIO testnet requires one to take several steps in order to prepare the network to mimic that of the EOSIO mainnet. These actions consist of creating the system level accounts, building and deploying the system contracts (https://github.com/eosio/eosio.contracts : eosio.bios, eosio.msig, eosio.system, eosio.token, eosio.wrap), creating and issuing the EOS token, and staking enough of the token to activate the network.

This repository also includes the initial setup required for DelphiOracle testing and development such as creating the delphioracle account, cloning the DelphiOracle repository (https://github.com/eostitan/delphioracle), building and deploying the contract, and finally configuring the contract for usage.

Finally, this setup will run a default pricefeed and writehash script for properly testing the DelphiOracle. Enjoy!

EOSIO Development KeyPairs (DO NOT USE THESE KEYS IN PRODUCTION)

  • System Accounts: eosio, eosio.token, eosio.msig, eosio.bpay, eosio.names, eosio.ram, eosio.ramfree, eosio.saving, eosio.stake, eosio.vpay, eosio.rex
    • Private key: 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
    • Public key: EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
  • Development Accounts: testuser, producer1, producer2, delphioracle
    • Private key: 5JUzsJi7rARZy2rT5eHhcdUKTyVPvaksnEKtNWzyiBbifJA1dUW
    • Public key: EOS6CRG7tXc9u2ySGqkH69JrwG4yXojkZBVUMLgUnKfM6uJpDUtKy

Usage

Usage: ./run.sh COMMAND [DATA]

Commands:
  start - starts network|container(s) - [eos|steem|ore]
  clean - Remove testnet files - [eos|steem|ore]
  stop - stops container(s) - [eos|steem|ore]
  status - show status of eos container - [eos|steem|ore]
  restart - restarts container(s) - [eos|steem|ore]
  install_docker - install docker
  rebuild - builds eos container(s), and then restarts it - [eos|steem|ore]
  build - build docker container(s) - [eos|steem|ore]
  buildcontact - build specific contact inside main container - [eos|ore]
  cleos - access cleos command line in container - [eos|ore]
  setcdt - set eosio.cdt version in container - [eos|ore]
  logs - show log stream - [eos|steem|ore]
  wallet - open wallet in the container - [eos|steem|ore]
  enter - enter a bash session in the currently running container - [eos|steem|ore]
  shell - launch the eos container with appropriate mounts, then open bash for inspection - [eos|steem|ore]

Starting an EOS Testnet

  • ./run.sh start eos
  • ./run.sh bootstrap eos
  • ./run.sh logs eos

Debugging

Launch a shell inside of a running container:

  • ./run.sh enter eos-main

Troubleshooting

Sometimes the testnet will get hung attempting to deploy the system contracts. If this happens, just exit out of the process (CTRL+C), restart docker, and re-run the above command for building the containers and images. The docker process may not have enough resources to deploy the contract in the required amount of time.

Warning

This software is provided as-is and with no warranty. Please use at your own risk and never use production EOSIO keypairs in development or vice versa. The provided keypairs in this repository are for development purposes only, and using them in the EOSIO mainnet can result in lost or stolen tokens. The author of this repository assumes no responsiblity for your inability to follow these instructions.

About

Dockerfiles and scripts for running an EOSIO Testnet with DelphiOracle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published