Browse Source

change default ipfs version to v0.11.0 (new CIDs might differ due to sharding)

https://github.com/ipfs/go-ipfs/releases/tag/v0.11.0
Fabian Peter Hammerle 2 years ago
parent
commit
78419a564a
2 changed files with 3 additions and 1 deletions
  1. 1 1
      Dockerfile
  2. 2 0
      entrypoint.sh

+ 1 - 1
Dockerfile

@@ -19,7 +19,7 @@ RUN apt-get update \
     && chown ipfs $IPFS_PATH
 VOLUME $IPFS_PATH
 
-ARG IPFS_VERSION=0.10.0
+ARG IPFS_VERSION=0.11.0
 COPY ipfs-arch.sh /
 ARG INSTALL_DEPENDENCIES="wget ca-certificates"
 RUN apt-get update \

+ 2 - 0
entrypoint.sh

@@ -18,6 +18,8 @@ if [ "$IPFS_API_ADDR" != "default" ]; then
     ipfs_config_jq_edit '.Addresses.API = $ARGS.positional[0]' --args "$IPFS_API_ADDR"
 fi
 
+# compare `Addresses.AppendAnnounce (new in go-ipfs v0.11.0)
+# https://github.com/ipfs/go-ipfs/blob/v0.11.0/docs/config.md#addressesappendannounce
 if [ "$IPFS_SWARM_ADDRS" != "default" ]; then
     # + ipfs config --json Addresses.Swarm '["/ip4/0.0.0.0/tcp/4001"]'
     # Error: api not running