diff --git a/dao/Dockerfile b/dao/Dockerfile index 2359803..3e3f8fd 100644 --- a/dao/Dockerfile +++ b/dao/Dockerfile @@ -1,9 +1,12 @@ -FROM node:latest +FROM node:8 WORKDIR /dao -RUN npm install -g truffle -ADD . /dao +COPY package.json . + +RUN \ + npm install -g truffle && \ + npm install + +COPY . . -RUN npm install -RUN npm install zeppelin-solidity diff --git a/dao/dao.sh b/dao/dao.sh index 85f73da..6b09d50 100755 --- a/dao/dao.sh +++ b/dao/dao.sh @@ -1,6 +1,8 @@ #!/usr/bin/env sh set -o errexit +set -o verbose +set -o xtrace set -o nounset @@ -14,7 +16,8 @@ bash) ;; run) - truffle compile-all + cd /dao + truffle compile truffle migrate --reset truffle test ;; diff --git a/dao/package.json b/dao/package.json index f31895a..f157c39 100644 --- a/dao/package.json +++ b/dao/package.json @@ -15,6 +15,6 @@ "ganache-cli": "^6.0.3", "scrypt": "^6.0.3", "truffle-hdwallet-provider": "0.0.3", - "zeppelin-solidity": "^1.3.0" + "zeppelin-solidity": "^1.4.0" } } diff --git a/docker-compose.dao.yml b/docker-compose.dao.yml index 22063da..37369b5 100644 --- a/docker-compose.dao.yml +++ b/docker-compose.dao.yml @@ -6,7 +6,7 @@ services: dao: build: dao volumes: - - ./dao:/dao + - ./data/dao:/data links: - testrpc diff --git a/testrpc/Dockerfile b/testrpc/Dockerfile index eec83aa..25835a1 100644 --- a/testrpc/Dockerfile +++ b/testrpc/Dockerfile @@ -1,4 +1,4 @@ -FROM node:6 +FROM node:8 WORKDIR /code