Skip to content

Instantly share code, notes, and snippets.

@whyrusleeping
Created September 25, 2014 20:15
Show Gist options
  • Save whyrusleeping/1c799bb6008d7fb41d56 to your computer and use it in GitHub Desktop.
Save whyrusleeping/1c799bb6008d7fb41d56 to your computer and use it in GitHub Desktop.
ipfs add and cat working
whyrusleeping@alarm~/g/s/g/j/go-ipfs> ipfs add Dockerfile
Executing command locally.
Caution: blockservice running in local (offline) mode.
Adding file: Dockerfile = QmSPrgf3kgrThSzALgskYeeSyKDoLdt7oDyfguMQ6XPkkX
DagService Add [QmSPrgf3kgrThSzALgskYeeSyKDoLdt7oDyfguMQ6XPkkX]
storing [QmSPrgf3kgrThSzALgskYeeSyKDoLdt7oDyfguMQ6XPkkX] in datastore
added QmSPrgf3kgrThSzALgskYeeSyKDoLdt7oDyfguMQ6XPkkX Dockerfile
Pinning node. Currently No-Op
added QmSPrgf3kgrThSzALgskYeeSyKDoLdt7oDyfguMQ6XPkkX Dockerfile
whyrusleeping@alarm~/g/s/g/j/go-ipfs> ipfs cat QmSPrgf3kgrThSzALgskYeeSyKDoLdt7oDyfguMQ6XPkkX
Caution: blockservice running in local (offline) mode.
Resolve: 'QmSPrgf3kgrThSzALgskYeeSyKDoLdt7oDyfguMQ6XPkkX'
Resolve dag get.
BlockService GetBlock: 'QmSPrgf3kgrThSzALgskYeeSyKDoLdt7oDyfguMQ6XPkkX'
Blockservice: Got data in datastore.
FROM golang:1.3
MAINTAINER Brian Tiger Chow <[email protected]>
RUN apt-get update
RUN apt-get install -y fuse
COPY . /go/src/github.com/jbenet/go-ipfs
RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
RUN ipfs init
RUN ipfs config Identity.Address "/ip4/0.0.0.0/tcp/4001"
RUN mkdir /ipfs
EXPOSE 4001
CMD ["ipfs", "mount", "/ipfs"]
# build: docker build -t go-ipfs .
# run: docker run --privileged=true -i -t go-ipfs:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment