Skip to content

Commit 219417c

Browse files
author
Micah Zoltu
authored
Merge pull request #520 from AugurProject/micah
Cleanup of docker-compose file for quick local environment setup.
2 parents 972902c + 6b5cdaf commit 219417c

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
docker pull $IMAGE_BUILD;
4444
docker tag $IMAGE_BUILD $IMAGE_LATEST;
4545
ARTIFACTS=true npm run docker:run:deploy && docker push $IMAGE_LATEST
46+
if: type = push
4647
stages:
4748
- build
4849
- test

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
44

55
Smart contracts for [Augur](https://augur.net), a decentralized prediction market platform on the [Ethereum](https://ethereum.org) blockchain.
66

7+
## Quick Setup
8+
9+
If you just want to clone the repo and quickly have a couple local proof of authority networks (Geth/Clique and Parity/Aura) running with the contracts deployed then you can just clone the repo and run:
10+
```
11+
docker-compose -f support/test/integration/docker-compose.yml up --build --force-recreate
12+
```
13+
* Parity HTTP RPC will be available on localhost port `47622`.
14+
* Geth HTTP RPC will be available on localhost port `47624`.
15+
* An abundant supply of ETH is available using the private key `0xfae42052f82bed612a724fec3632f325f377120592c75bb78adfcceae6470c5a`.
16+
* The log output will let you know what the address of the various Augur contracts are.
17+
718
## Installation
819

920
You need system-wide installations of Python 2.7.6+, Node.js 8+, and [Solidity 0.4.18](https://github.com/ethereum/solidity/releases/tag/v0.4.18). (Or Docker; see below.) Install the dependencies:

support/test/integration/docker-compose.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@ version: "3.2"
22
services:
33
parity-dev-node:
44
image: augurproject/dev-node-parity:latest
5-
# uncomment following line to run with fixed block times instead of instant seal (parameter is seconds between blocks)
6-
command: [ "1" ]
75
ports:
86
- "47622:8545"
97
- "47621:8180"
108
parity-integration-tests:
11-
image: augurproject/augur-core:latest
129
build:
1310
context: ../../../
1411
dockerfile: support/Dockerfile
15-
cache_from:
16-
- augurproject/augur-core:latest
1712
entrypoint: [ "npm", "run", "test:integration" ]
1813
# uncomment the following 3 lines to enable debugging the tests
1914
# command: [ "--", "--debug=0.0.0.0:9229", "--inspect-brk" ]
@@ -32,15 +27,12 @@ services:
3227
ports:
3328
- "47624:8545"
3429
geth-integration-tests:
35-
image: augurproject/augur-core:latest
3630
build:
3731
context: ../../../
3832
dockerfile: support/Dockerfile
39-
cache_from:
40-
- augurproject/augur-core:latest
4133
entrypoint: [ "npm", "run", "test:integration" ]
4234
# uncomment the following 3 lines to enable debugging the tests
43-
command: [ "--", "--debug=0.0.0.0:9229", "--inspect-brk" ]
35+
# command: [ "--", "--debug=0.0.0.0:9229", "--inspect-brk" ]
4436
# ports:
4537
# - "9229:9229"
4638
environment:

0 commit comments

Comments
 (0)