Skip to content

Instantly share code, notes, and snippets.

@Faolain
Created October 12, 2022 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Faolain/f1b6884db5d056139af356fdd1508ffe to your computer and use it in GitHub Desktop.
Save Faolain/f1b6884db5d056139af356fdd1508ffe to your computer and use it in GitHub Desktop.

There are a few ways to run an IPFS node in order to query the IPFS Network for the files you are looking for.

Local Native Installation

  1. Install IPFS which requires installing Go if not already installed. Instructions are simple don't worry :) (Note: carefully read the instructions, choose arm for M1 Silicon Macbooks for example)
  2. Initialize IPFS
  3. In a separate terminal tab run ipfs daemon
  4. Swarm Connect to dClimate IPFS node by runningipfs swarm connect /ip4/45.55.32.80/tcp/4001/ipfs/12D3KooWG7itEPAHut3xsVo7CwyD8sKeQXKgQizotNhPsToCssXQ in a different tab from where you ran ipfs daemon
  5. Test IPNS name resolution of hashes living on the dClimate Node by runningipfs name resolve k2k4r8nyvzboy94mj0eebx9e4ux8qbwoej4q7d6wz1jwagx4rjk76kmw, you should get /ipfs/bafyreie7n7z4xd6go645fbrmyzrdrnaypx6ky4r4iekieyjzlmvo2aqgzm back
  6. Within your python script or python notebook ensure to select the appropriate IP address (localhost) depending on where the script is running. If running the python script locally connect via 127.0.0.1 and so on.

Docker Image

Preconfigured Docker Image coming soon

Ansible

IPFS & NGINX Coming soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment