Giter VIP home page Giter VIP logo

ethdock's Introduction

ethdock

forthebadge

Ethereum smart contract development package in moby(docker).

Usage

geth

Default coinbase address: 0x7ee077f7afbc121e7b63d9baff6c8a52c3a9c2f3 Default coinbase private key: 0x88e524dee8bfb0dfb52ed4668ab88db605fe30b476e497d0fa1205e717fb9cb6

Do not use this private key on mainnet.

docker-compose up -d workspace geth

Place the contract in app directory and enter container

docker-compose exec workspace bash

Change truffle.js development

development: {
  from: 'your-address-on-geth-blockchain',
  host: 'geth',
  port: 8545,
  network_id: '*'
}

Or use provider

development: {
  from: 'your-address-on-geth-blockchain',
  provider: web3.currentProvider
  network_id: '*'
}

Unlock account

web3.personal.unlockAccount('your-address-on-geth-blockchain', 'your-address-password-on-geth-blockchain')

Run test

truffle test

ganache

docker-compose up -d workspace ganache

Place the contract in app directory and enter container

docker-compose exec workspace bash

Change truffle.js host

host: 'ganache'

Run test

truffle test

Test account for geth

We've created an test account for geth.

There is a UTC--2017-10-25T06-00-32.515667900Z--7c33ce8d9edd822f4ebba8823f4b73c2804baa00 file in /geth.

If you cannot create account, you can simply move the file to /data/keystore, and you'll see an account 7c33ce8d9edd822f4ebba8823f4b73c2804baa00 with password 123456 on the chain.

Please remember that never use this account in production environment!

If you want to use your account, remamber to edit the /geth/genesis.json befor you start the geth service.

Have Fun!

FAQ

  • When I try to build geth container, I got this error: no space left on device It might be the disk space is not enough to build container.

    Please try to clean the docker images or docker volumes that not in use.

    You can run this command to find volumes.

    $ docker volume ls
    

    You can run this command to find images.

    $ docker images
    

    Remove volume.

    $ docker volume rm ...
    

    Remove all images with name none.

    $ docker rmi -f $(docker images | grep '^<none>' | awk '{print $3}')
    

License

GPL3.0

ethdock's People

Contributors

sc0vu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.