Truffle docker - A docker-based installer for Truffle/Ganache.

in #utopian-io6 years ago

Repository

https://github.com/LePetitBloc/truffle-docker

New Project

Why?

We don't like to have tools on our computer and we need to reviews externals smart-contracts. This project allow us to run a dedicated truffle/ganache environment.

Installation

It's super simple if you already have a docker environment. If you don't have docker
on your computer install this wonderful tool.

Then you need to clone or download the project.

git clone https://github.com/lepetitbloc/truffle-docker.git my-project
cd my-project
# Remove the git repository metadata
rm -rf .git/
# Start a brand new repository
git init
git add .

If you already have a truffle project, copy your files to ./truffle. If you don't have anything, do nothing and run make install.

Usage

Makefile is your friend and your entry point for command line, run "make".

Project                     
-------                     
                             
install                        Install and start the project
reset                          Stop and start a fresh install of the project
start                          Start the project
stop                           Stop the project
compile                        Truffle compilation
migrate                        Truffle migration
console                        Run the interactive truffle console
test                           Run the test suite

If you want to interact with others commands (including truffle/ganache), feel free to use docker-compose exec <container> <command>.

Todo

It could be nice to update this project with theses features:

  • Add environment vars in docker-compose and specify a default truffle box
  • Rename the default truffle directory for a better one.

GitHub Account

https://github.com/pocky

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 61428.91
ETH 3382.72
USDT 1.00
SBD 2.50