Skip to content

Commit

Permalink
[AUD-185 ] IPFS 0.8.0 Upgrade (#1270)
Browse files Browse the repository at this point in the history
Functioning upgrade to ipfs 0.8.0 for content nodes
  • Loading branch information
hareeshnagaraj committed Mar 10, 2021
1 parent 11b2772 commit 33b4c6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
ipfs-node:
image: ipfs/go-ipfs:release
image: ipfs/go-ipfs:v0.4.23

networks:
- audius_dev
Expand Down
2 changes: 1 addition & 1 deletion discovery-provider/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pytest==6.0.1
SQLAlchemy-Utils==0.33.3
chance==0.110
pylint==2.3.1
ipfshttpclient==0.4.12
ipfshttpclient==0.6.0
pytest-cov==2.6.0
pytest-dotenv==0.5.2
base58==1.0.0
Expand Down
10 changes: 6 additions & 4 deletions libs/scripts/ipfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
API_PORT=6001
SWARM_PORT=6002
CONTAINER_NAME=local_ipfs_node
IPFS_RELEASE_VERSION=ipfs/go-ipfs:v0.8.0

if [[ "$1" =~ ^up|down$ ]]; then
if [[ "$1" =~ ^up|down$ ]]; then
echo "Local ipfs operations:"
else
echo "Must be a valid command - ./scripts/ipfs.sh <up|down>"
Expand Down Expand Up @@ -34,13 +35,14 @@ if [[ "$1" == 'up' ]]; then
fi

# Pull image
docker pull ipfs/go-ipfs:v0.4.23
docker pull $IPFS_RELEASE_VERSION


if [[ -z "$5" ]]; then
docker run -d --name $CONTAINER_NAME -p 127.0.0.1:$API_PORT:5001 -p 127.0.0.1:$SWARM_PORT:4001 --network=audius_dev ipfs/go-ipfs:v0.4.23 daemon
docker run -d --name $CONTAINER_NAME -p 127.0.0.1:$API_PORT:5001 -p 127.0.0.1:$SWARM_PORT:4001 --network=audius_dev $IPFS_RELEASE_VERSION daemon
else
GATEWAY_PORT=$5
docker run -d --name $CONTAINER_NAME -p 127.0.0.1:$API_PORT:5001 -p 127.0.0.1:$SWARM_PORT:4001 -p 127.0.0.1:$GATEWAY_PORT:8080 --network=audius_dev ipfs/go-ipfs:v0.4.23 daemon
docker run -d --name $CONTAINER_NAME -p 127.0.0.1:$API_PORT:5001 -p 127.0.0.1:$SWARM_PORT:4001 -p 127.0.0.1:$GATEWAY_PORT:8080 --network=audius_dev $IPFS_RELEASE_VERSION daemon
fi

elif [[ "$1" == 'down' ]]; then
Expand Down

0 comments on commit 33b4c6d

Please sign in to comment.