Skip to content

Commit

Permalink
Move the dao dir away from the volume to avoid any interaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensenbox committed Dec 5, 2017
1 parent 55adc95 commit 62ac803
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
13 changes: 8 additions & 5 deletions dao/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion dao/dao.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env sh

set -o errexit
set -o verbose
set -o xtrace
set -o nounset


Expand All @@ -14,7 +16,7 @@ bash)
;;

run)
truffle compile-all
truffle compile
truffle migrate --reset
truffle test
;;
Expand Down
2 changes: 1 addition & 1 deletion dao/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion docker-compose.dao.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
dao:
build: dao
volumes:
- ./dao:/dao
- ./data/dao:/data
links:
- testrpc

Expand Down
2 changes: 1 addition & 1 deletion testrpc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:6
FROM node:8

WORKDIR /code

Expand Down

0 comments on commit 62ac803

Please sign in to comment.