Coder Social home page Coder Social logo

pseudobun / go-ipfs-daemon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ceramicnetwork/go-ipfs-daemon

0.0 0.0 0.0 58 KB

This repo builds a Docker image that runs a js-ceramic compatible version of go-ipfs.

Shell 41.88% Dockerfile 58.12%

go-ipfs-daemon's Introduction

go-ipfs-daemon

WIP

This repo builds a Docker image that runs a js-ceramic compatible version of go-ipfs.

The go-ipfs daemon that this image runs supports resolving dag-jose objects, using S3 for a sharded datastore, and serving a healthcheck endpoint.

Usage

Simply pull the ceramicnetwork/go-ipfs-daemon image from Dockerhub

docker pull ceramicnetwork/go-ipfs-daemon

Or you can download the source code and build the image on your machine

git clone <this_repo_url>

cd go-ipfs-daemon

docker build . -t go-ipfs-daemon

Run a container

docker run \
  -p 5001:5001 \ # API port
  -p 8011:8011 # Healthcheck port
  go-ipfs-daemon

You may want to use S3 for the IPFS Blockstore. See the go-ds-s3 plugin for more configuration details.

# Fill in your credentials below
docker run \
  -p 5001:5001 \ # API port
  -p 8011:8011 \ # Healthcheck port
  -e IPFS_ENABLE_S3=true \
  -e IPFS_S3_REGION= \
  -e IPFS_S3_BUCKET_NAME= \
  -e IPFS_S3_ROOT_DIRECTORY= \
  -e IPFS_S3_ACCESS_KEY_ID= \
  -e IPFS_S3_SECRET_ACCESS_KEY= \
  -e IPFS_S3_KEY_TRANSFORM=next-to-last/2 \
  go-ipfs-daemon

# Get the container id
docker ps

# Run ipfs commands
docker exec -i <container_id> sh -c "ipfs version"

AWS IAM permissions

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "s3:GetObject",
                "s3:ListBucket",
                "s3:PutObject",
                "s3:DeleteObject"
            ],
            "Effect": "Allow",
            "Resource": [
                "arn:aws:s3:::bucket_name",
                "arn:aws:s3:::bucket_name/*"
            ]
        }
    ]
}

Maintainer

@v-stickykeys

Contributing

We are happy to accept small and large contributions.

  1. Clone this repository
  2. cd go-ipfs-daemon
  3. Install pre-commit. E.g. brew install pre-commit
  4. Run pre-commit install

Testing

./test/bats/bin/bats test

License

Dual-licensed under Apache 2.0 and MIT terms:

go-ipfs-daemon's People

Contributors

v-stickykeys avatar smrz2001 avatar ukstv avatar decentralgabe avatar nathanielc avatar pseudobun 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.