Skip to content

Instantly share code, notes, and snippets.

@vasa-develop
Last active May 20, 2019 14:48
Show Gist options
  • Save vasa-develop/cfbd98814e1f47d0629c2a874aca4b97 to your computer and use it in GitHub Desktop.
Save vasa-develop/cfbd98814e1f47d0629c2a874aca4b97 to your computer and use it in GitHub Desktop.
//install ipfs-cluster
cd $HOME
wget https://dist.ipfs.io/go-ipfs/v0.4.14-rc1/go-ipfs_v0.4.14-rc1_linux-amd64.tar.gz
tar xf go-ipfs_v0.4.14-rc1_linux-amd64.tar.gz
sudo mv go-ipfs/ipfs /usr/local/bin/ipfs
ipfs init
//installing go
cd $HOME/ && wget https://storage.googleapis.com/golang/go1.10.1.linux-amd64.tar.gz
tar -xvf go1.10.1.linux-amd64.tar.gz
mkdir $HOME/gopath
echo "export GOPATH=\$HOME/gopath" >> .bashrc
echo "export GOROOT=\$HOME/go" >> .bashrc
echo "export PATH=\$PATH:\$GOROOT/bin" >> .bashrc
source ~/.bashrc
//initialize ipfs-cluster
go get -u -d github.com/ipfs/ipfs-cluster
cd $GOPATH/src/github.com/ipfs/ipfs-cluster
make install
//installing docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
// cloning git repo
cd $HOME
git clone https://github.com/vasa-develop/ipfs-peer-config.git
docker-compose -f docker-compose-ipfs-cluster-peers.yaml up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment