TAGS

drizzle-truffle-ganache-docker-box

CREATED

UPDATED

STARS

INSTALL

...

REPOSITORY
GitHub Download
Please wait: Fetching readme...

b'# Drizzle Truffle Ganache Docker Box\n\nThis box followed the official drizzle tutorial (https://www.trufflesuite.com/tutorials/getting-started-with-drizzle-and-react), but built on top of docker/docker-compose.\n\nThere are two docker services in `docker-compose`:\n\n- ganache-cli (located at /ganache/..):\n - Build on top of the official ganache image `trufflesuite/ganache-cli:latest` \n - Modified `ENTRYPOINT` to run script `ganache_with_accounts.sh`, so that everytime ganache restarts, the same Ethereum accounts were created.\n - Port `8545:8545`\n\n- truffle-drizzle (located at /truffledrizzle/..)\n - Build on top of `node:10`\n - During the build stage, it will perform the following in order:\n - Install truffle\n - Move contract files\n - Move React files.\n - `npm ci`\n - During the run stage, it will perform the following in order:\n - truffle build\n - truffle test\n - truffle migrate\n - copy compiled contracts to the react project\n - run the react project\n - Note that since we created a volume for the React project (`- ./truffledrizzle/client/src:/client/src`), the front end code supports hot editing.\n \nA few more things worth to mention:\n\n`dev_build.sh` builds the docker images according to `docker-compose-dev.yml`\n`dev_run.sh` starts the docker-compose as defined in `docker-compose-dev.yml`\n`npm_install.sh` creates a temp node container, in case we want to modify `package-lock.json`. (This project does not require node to be installed on local machine! :)\n'