-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration scripts for local IPFS server
- Loading branch information
1 parent
331bcb9
commit 843e427
Showing
4 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
# Local IPFS Server | ||
|
||
`py-ipfs-httpclient` requires a live local server to run its | ||
functional tests. | ||
|
||
## Installation | ||
|
||
To install it, follow the [official instructions](https://docs.ipfs.io/install/command-line/), | ||
then finish with some [local configuration](configure.sh): | ||
|
||
$ ./configure.sh | ||
|
||
The above script is run once after installing. | ||
|
||
## Running Tests | ||
|
||
You can run unit tests without a live server; `pytest` will skip | ||
over the functional tests when our fixtures detect the server | ||
isn't running. | ||
|
||
In a separate terminal, start IPFS with: | ||
|
||
$ ./run.sh | ||
|
||
Stop it with Ctrl+C. You can keep it running across multiple | ||
executions of the functional test suite. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Configures, but does not start, the IPFS daemon. Run once in your environment. | ||
# | ||
# Description of experimental features: | ||
# https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipfs-filestore | ||
|
||
set -e | ||
|
||
ipfs init | ||
ipfs config --json Experimental.FilestoreEnabled true | ||
ipfs config --json Experimental.UrlstoreEnabled true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# Run the IPFS server. To stop it, press Ctrl+C. | ||
|
||
ipfs daemon --enable-namesys-pubsub |