提交 9946fc83 作者: Brian Tiger Chow

fix(dockertest): mv file into place

as @whyrusleeping points out, file is created before hash is written

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 97dacd48
......@@ -21,7 +21,7 @@ data/filetiny: Makefile
cp Makefile ./data/filetiny # simple
data/filerand: bin/random
./bin/random 1000000 > ./data/filerand
./bin/random 50000000 > ./data/filerand
bin/random:
go build -o ./bin/random ../$(RANDOMSRC)
......
......@@ -8,10 +8,12 @@ sleep 3
# TODO instead of bootrapping: ipfs swarm connect /ip4/$BOOTSTRAP_PORT_4011_TCP_ADDR/tcp/$BOOTSTRAP_PORT_4011_TCP_PORT/QmNXuBh8HFsWq68Fid8dMbGNQTh7eG6hV9rr1fQyfmfomE
# must mount this volume from data container
ipfs add -q /data/filetiny > /data/idtiny
ipfs add -q /data/filetiny > tmptiny
mv tmptiny /data/idtiny
echo added tiny file. hash is $(cat /data/idtiny)
ipfs add -q /data/filerand > /data/idrand
ipfs add -q /data/filerand > tmprand
mv tmprand /data/idrand
echo added rand file. hash is $(cat /data/idrand)
# allow ample time for the client to pull the data
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论