Coder Social home page Coder Social logo

ipfs-cf's Introduction

IPFS on Cloud Foundry

A very basic example of ipfs daemon running on Cloud Foundry

Overview

The up.sh script will stand up 1 app called ipfs running ipfs daemon --init. All the data is written to /home/vcap/app/.ipfs/.

You can access the node with cf ssh and use the ipfs binary at app/ipfs but may need to export HOME=/home/vcap/app.

Testing

The test.sh script will:

  1. cf ssh into the node
  2. On the node, run ipfs add adding a message like I <3 IPFS -vcap on Sun Jul 23 03:12:01 UTC 2017
  3. On the node, run curl "http://127.0.0.1:8080/ipfs/$hash"
  4. Disconnect from the node
  5. On your local machine, run curl "https://ipfs.io/ipfs/$hash"
  6. The output from the above commands should be identical

Prerequisites

Usage

  • Log in to Cloud Foundry and target an org and space

    cf login -a https://api.your-cf.com -u [email protected] -o your-org -s your-space
    
  • Run up.sh and wait for it to finish

  • Run tests.sh. Read the prompts and compare it to the output to confirm the cluster is working

References

ipfs-cf's People

Contributors

micahyoung avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.