aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/Dockerfile
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-12-24 10:14:16 +0800
committerJacob Evans <jacob@dekz.net>2018-12-24 10:14:16 +0800
commitbcd20081d39b2d00150fc6d67e2c481b23d03b48 (patch)
tree44e217a1c91142666b46c82fff3e624b1b3e9e6e /packages/migrations/Dockerfile
parent2a577e04750f9f90f72f763b45232dd9b5a35d93 (diff)
downloaddexon-sol-tools-bcd20081d39b2d00150fc6d67e2c481b23d03b48.tar
dexon-sol-tools-bcd20081d39b2d00150fc6d67e2c481b23d03b48.tar.gz
dexon-sol-tools-bcd20081d39b2d00150fc6d67e2c481b23d03b48.tar.bz2
dexon-sol-tools-bcd20081d39b2d00150fc6d67e2c481b23d03b48.tar.lz
dexon-sol-tools-bcd20081d39b2d00150fc6d67e2c481b23d03b48.tar.xz
dexon-sol-tools-bcd20081d39b2d00150fc6d67e2c481b23d03b48.tar.zst
dexon-sol-tools-bcd20081d39b2d00150fc6d67e2c481b23d03b48.zip
Use new bucket, bind on 0.0.0.0
Diffstat (limited to 'packages/migrations/Dockerfile')
-rw-r--r--packages/migrations/Dockerfile8
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"]