From 62ac803de3303fe23fff77495613d2ff4b885ffa Mon Sep 17 00:00:00 2001 From: Christian Jensen Date: Mon, 4 Dec 2017 18:08:37 -0800 Subject: [PATCH] Move the dao dir away from the volume to avoid any interaction. --- dao/Dockerfile | 13 ++++++++----- dao/dao.sh | 4 +++- dao/package.json | 2 +- docker-compose.dao.yml | 2 +- testrpc/Dockerfile | 2 +- 5 files changed, 14 insertions(+), 9 deletions(-) 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..f47ca0d 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,7 @@ bash) ;; run) - truffle compile-all + 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