truffle
Docker image of Truffle - simple development framework for Ethereum
Dockerfile
links
Supported tags and respective 3.2
,latest
(Dockerfile)3.0
(Dockerfile)2.1
(Dockerfile)
testrpc
Running tests with 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