diff options
Diffstat (limited to 'packages/migrations/Dockerfile')
-rw-r--r-- | packages/migrations/Dockerfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/migrations/Dockerfile b/packages/migrations/Dockerfile index ce4d6e867..12f2eaa0c 100644 --- a/packages/migrations/Dockerfile +++ b/packages/migrations/Dockerfile @@ -3,11 +3,13 @@ FROM mhart/alpine-node:10 WORKDIR /usr/src/app RUN npm install -g ganache-cli@6.1.6 -COPY 0x_ganache_snapshot ./0x_ganache_snapshot ENV MNEMONIC "concert load couple harbor equip island argue ramp clarify fence smart topic" ENV NETWORK_ID 50 - +ENV VERSION "2.2.2" +ENV SNAPSHOT_HOST "http://ganache-snapshots.0x.org.s3-website.us-east-2.amazonaws.com" +ENV SNAPSHOT_NAME "0x_ganache_snapshot" EXPOSE 8545 -CMD [ "sh", "-c", "ganache-cli --gasLimit 10000000 --db 0x_ganache_snapshot --noVMErrorsOnRPCResponse -p 8545 --networkId \"$NETWORK_ID\" -m \"$MNEMONIC\""] + +CMD [ "sh", "-c", "wget $SNAPSHOT_HOST/$SNAPSHOT_NAME-$VERSION.zip -O snapshot.zip && unzip snapshot.zip && ganache-cli --gasLimit 10000000 --db $SNAPSHOT_NAME --noVMErrorsOnRPCResponse -p 8545 --networkId \"$NETWORK_ID\" -m \"$MNEMONIC\" -h 0.0.0.0"] |