Skip to content

Docker image of Truffle - simple development framework for Ethereum

Notifications You must be signed in to change notification settings

DeDocker/truffle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

truffle

Docker image of Truffle - simple development framework for Ethereum

Supported tags and respective Dockerfile links

Running tests with testrpc

Make sure that correct host is set in truffle.js.

It MAY look like this:

v2:

module.exports = {
  rpc: {
    host: process.env.RPC_HOST || "localhost",
    port: 8545
  }
};

v3

module.exports = {
  networks: {
    development: {
      host: process.env.RPC_HOST || "localhost",
      port: 8545,
      network_id: "*"
    }
  }
};

Run testrpc server instance:

docker run --rm -d --name testrpc -p 8545 desmart/testrpc:latest

And then run truffle tests:

docker run --rm -v "${PWD}:/usr/src/app" --link testrpc -e "RPC_HOST=testrpc" desmart/truffle:latest test

About

Docker image of Truffle - simple development framework for Ethereum

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published