Shell script wrappers around IPFS docker containers to make life a bit easier.
Allows one to easily manage IPFS inside a docker container
- Build different versions of IPFS
- One command setup for a public swarm or private swarm
- Easily manage IPFS configuration
git clone https://github.com/matthewjosephtaylor/easy_ipfs.git
cd easy_ipfs
vi easy_ipfs/config/constants
- Useful to get latest version on any architecture (like arm64)
./ipfs-build
./ipfs-public-setup
./ipfs-start -ep
./ipfs-create-swarm-secret # Will output a random secret, copy this and use for other nodes in private swarm
./ipfs-private-setup # Will be prompted for <secret>
./ipfs-start -ep
- Start with either the container ports exposed or unexposed (default unexposed)
./ipfs-start [--expose-ports]
./ipfs-stop
- Can have multiple containers running at once.
- NOTE: currently only one container can have ports exposed since they all share the same config
./ipfs-switch <container-name>
./ipfs-add <path-to-file>
./ipfs-cat Qmdeadbeef.... > <some-filename>
./ipfs-cmd help
./ipfs-shell
The list of commands will continue to grow over time. Suggest looking at contents of script to see what they do.
- All Configuration and data located in
storage/{server-name}/data
- The
staging
directory exists to copy files into the container when adding files to IPFS - Change Go / Javascript implementation in
config/constants
Matt Taylor https://mjt.dev