github.com/metacurrency/holochain@v0.1.0-alpha-26.0.20200915073418-5c83169c9b5b/docker/app.docker/syncedMultiNode.containers.scripts/pre.up (about) 1 #!/bin/sh 2 export PATH="/Scripts/syncedMultiNode.containers.scripts:$PATH" 3 4 #pause everything 5 syncStart pre.up bs hc.sync.ready post.up hc.sync.complete 6 7 #all containers have already started 8 sync externalStartEvent 9 10 #make sure that all hc.sync containers have started properly (this probably isnt necessary) 11 sync hc.sync.counter 12 13 14 rm -rf /home/user/.holochain/devchain 15 rm -rf /chain.seeded/devchain 16 17 set -x 18 19 # hcdev init $HOSTNAME 20 21 ls /chain.source -la 22 # hcdev clone /chain.source devchain 23 24 # hcdev test devchain 25 hcdev test 26 27 # hcdev seed devchain 28 devDirectory="/home/user/theDevDirectory" 29 30 mkdir $devDirectory -p 31 cp . $devDirectory -r 32 33 echo "$HOSTNAME" > $devDirectory/.seedID 34 seedID=`cat $devDirectory/.seedID` 35 echo "seedID: $seedID" 36 37 clusterDir="$devDirectory/cluster/$seedID" 38 mkdir $devDirectory/cluster 39 mkdir $devDirectory/cluster/$seedID 40 41 # touch $clusterDir/.cluster.lock 42 43 # ls -la $clusterDir 44 # echo 45 46 47 ls $devDirectory 48 49 cp $devDirectory /chain.seeded -r 50 51 # ls -la /chain.seeded/devchain 52 53 cnys pre.up 54 55 set +x