Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
travis: enable stream mounting and configure IPFS listeners
Browse files Browse the repository at this point in the history
We need to enable the IPFS feature Experimental.Libp2pStreamMounting
in order to test the P2P APIs. To do so, we have to run `ipfs init`
manually so that the IPFS config file exists on disk. In addition, we
also have to configure Addresses.API and Addresses.Gateway, which were
previously set by the container at boot, because the container stops
setting those parameters if the IPFS configuration file already
exists.
  • Loading branch information
DavidHuie committed Jul 18, 2018
1 parent fe9de88 commit b0c1dad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ services:
before_install:
- docker pull ipfs/go-ipfs:master
- mkdir /tmp/ipfs && chmod 0777 /tmp/ipfs
- docker run -d -v /tmp/ipfs:/data/ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 ipfs/go-ipfs:master --enable-pubsub-experiment
- docker run -v /tmp/ipfs:/data/ipfs --user ipfs --entrypoint "" ipfs/go-ipfs:master ipfs init
- docker run -v /tmp/ipfs:/data/ipfs --user ipfs --entrypoint "" ipfs/go-ipfs:master ipfs config --json Experimental.Libp2pStreamMounting true
- docker run -v /tmp/ipfs:/data/ipfs --user ipfs --entrypoint "" ipfs/go-ipfs:master ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
- docker run -v /tmp/ipfs:/data/ipfs --user ipfs --entrypoint "" ipfs/go-ipfs:master ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
- docker run -d -v /tmp/ipfs:/data/ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 ipfs/go-ipfs:master daemon --enable-pubsub-experiment

install:
- go get -t -v ./...
Expand Down

0 comments on commit b0c1dad

Please sign in to comment.