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

Commit f0eaaa7

Browse files
committed
travis: enable stream mounting and configure IPFS listeners
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.
1 parent 0819117 commit f0eaaa7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ services:
1818
before_install:
1919
- docker pull ipfs/go-ipfs:master
2020
- mkdir /tmp/ipfs && chmod 0777 /tmp/ipfs
21-
- docker run -d -v /tmp/ipfs:/data/ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 ipfs/go-ipfs:master --enable-pubsub-experiment
21+
- docker run -v /tmp/ipfs:/data/ipfs --user ipfs --entrypoint "" ipfs/go-ipfs:master ipfs init
22+
- docker run -v /tmp/ipfs:/data/ipfs --user ipfs --entrypoint "" ipfs/go-ipfs:master ipfs config --json Experimental.Libp2pStreamMounting true
23+
- 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
24+
- 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
25+
- 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
2226

2327
install:
2428
- go get -t -v ./...

0 commit comments

Comments
 (0)