Skip to content

Commit

Permalink
Merge pull request #156 from ZenGround0/update-test-image-cluster-secret
Browse files Browse the repository at this point in the history
set cluster secret to empty in test image
  • Loading branch information
hsanjuan committed Sep 29, 2017
2 parents 8a0c7b9 + e533eb7 commit 72d0d22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/cluster-restart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/bash

# Restart the cluster process
sleep 2
while true; do
export CLUSTER_SECRET=""
pgrep ipfs-cluster-service || ipfs-cluster-service -f init; echo "CLUSTER RESTARTED"; ipfs-cluster-service --debug &
sleep 10
done
1 change: 1 addition & 0 deletions docker/test-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ipfs-cluster-service --version
if [ -e "$IPFS_CLUSTER_PATH/service.json" ]; then
echo "Found IPFS cluster configuration at $IPFS_CLUSTER_PATH"
else
export CLUSTER_SECRET=""
ipfs-cluster-service init
sed -i 's/127\.0\.0\.1\/tcp\/9094/0.0.0.0\/tcp\/9094/' "$IPFS_CLUSTER_PATH/service.json"
sed -i 's/127\.0\.0\.1\/tcp\/9095/0.0.0.0\/tcp\/9095/' "$IPFS_CLUSTER_PATH/service.json"
Expand Down

0 comments on commit 72d0d22

Please sign in to comment.