A docker container to run a Loom dAppChain
-
Write your smart contract into a folder "/workspace/foo/MySideChainContract.sol"
-
Start the dAppchain
docker run -it \
-p 46656:46656 -p 46657:46657 -p 46658:46658 -p 9999:9999 \
-v /workspace/foo:/loom/contracts \
-e CONTRACT_NAME=MySideChainContract \
gjeanmart/loom-docker
Checkout the code in https://github.com/gjeanmart/loom-docker/tree/master/samples
docker run -it \
-p 46656:46656 -p 46657:46657 -p 46658:46658 -p 9999:9999 \
-v /path/to/loom-docker/samples/SimpleStorage:/loom/contracts \
-e CONTRACT_NAME=SimpleStorage \
gjeanmart/loom-docker
Based on this example: https://loomx.io/developers/docs/en/simple-social-network-example.html
$ docker-compose build
$ docker-compose up
Open the browser on http://localhost:8080
- Manage multi-file contracts
- Manage peers