Skip to content

Commit

Permalink
Fixed problem with dao docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
inflector committed Dec 4, 2017
1 parent 9f73a27 commit 473fec2
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 17 deletions.
10 changes: 6 additions & 4 deletions dao/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM node:6
FROM node:latest

WORKDIR /code
WORKDIR /dao
RUN npm install -g truffle

ADD . /code
ADD . /dao

RUN npm install -g truffle
RUN npm install
RUN npm install zeppelin-solidity
4 changes: 2 additions & 2 deletions dao/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ npm i -g truffle
### Ethereum
You can choose between Parity or local testrpc

### testRPC
### ganache (formerly testrpc)
```bash
npm install -g ethereumjs-testrpc
npm install -g ganache-cli
```

### Parity
Expand Down
9 changes: 5 additions & 4 deletions dao/dao.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ case "$1" in
noop)
;;

bash)
/bin/bash
;;

run)
cd /dao
npm install zeppelin-solidity
npm install truffle-hdwallet-provider
truffle compile-all
truffle migrate --reset
# truffle test
truffle test
;;

*) echo 'No operation specified'
Expand Down
3 changes: 2 additions & 1 deletion dao/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"author": "tiero",
"license": "MIT",
"dependencies": {
"ethereumjs-testrpc": "^4.1.3",
"ganache-cli": "^6.0.3",
"scrypt": "^6.0.3",
"truffle-hdwallet-provider": "0.0.3",
"zeppelin-solidity": "^1.3.0"
}
Expand Down
4 changes: 2 additions & 2 deletions dao/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const host = "http://localhost:8545"//NODE
module.exports = {
networks: {
development: {
host: "localhost",
host: "testrpc",
port: 8545,
network_id: "*" // Match any network id
},
Expand All @@ -17,4 +17,4 @@ module.exports = {
network_id: "*" // Match any network id
}
},
}
}
2 changes: 1 addition & 1 deletion docker-compose.dao.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ services:
- "8545:8545"
- "8546:8546"
- "30303:30303"
command: testrpc
command: ganache-cli
2 changes: 1 addition & 1 deletion testrpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM node:6

WORKDIR /code

RUN npm install -g ethereumjs-testrpc
RUN npm install -g ganache-cli
3 changes: 1 addition & 2 deletions tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ testrpc)
;;

prepare-dao)
docker-compose -f docker-compose.dao.yml create --build --force-recreate testrpc
docker-compose -f docker-compose.dao.yml create --build --force-recreate dao
docker-compose -f docker-compose.dao.yml run --service-ports dao ./dao.sh run
docker-compose -f docker-compose.dao.yml run --service-ports dao ./dao.sh $2
;;

ipfs)
Expand Down

0 comments on commit 473fec2

Please sign in to comment.