Sign inSign up

blcksync/docker-solidity-development-framework

By blcksync

•Updated over 6 years ago

A open source base image that includes necessary tools for Solidity development

Image
0

3.5K

blcksync/docker-solidity-development-framework repository overview

⁠docker-solidity-development-framework

A docker images to encapsulate all necessary development tools for Solidity development with Truffle framework. This includes all necessary toolings for any usres to download, configure, and deploy their solidity contract and make it easy for anyone to use as our goal. IT comes with the following tools.

  • solc 0.5.x
  • truffle 5.0.x
  • node 12.16.0
  • npm 6.11.0
  • web3 1.2.6

⁠To build your docker image

./build.sh

⁠To run the docker image

./run.sh

A local directory ./deploy will be created and mounted into your docker container.

This preserves the work you create in the container so it doesn't get deleted/wiped out when you exist the container. Make sure you are working under the /root/deploy directory.

After you run it, a command prompt will show up, now, you can simply run the truffle command as you like, e.g.

cd deploy
mkdir myfirst_project
cd myfirst_project
truffle init
truffle compile
truffle test
# truffle migrate

or from a pre-built box provided by the community, e.g. See Metacoin⁠ example

cd deploy
mkdir metacoin
cd metacoin
truffle unbox metacoin
truffle compile
truffle test
# truffle migrate

Truffle migrate will not work unless you provide a local ganache-cli⁠ or use Infura⁠.

Tag summary

Content type

Image

Digest

Size

257.5 MB

Last updated

over 6 years ago

docker pull blcksync/docker-solidity-development-framework:v5