feat(docker) build a daemon
The default Docker build creates a daemon. TODO allow bootstrap node to be overridden at runtime (perhaps with an environment variable), so we can use custom topologies in test environments. NB: We still want the default behavior to connect to Mars. TODO create a docker image that mounts and uses shared volume to make that mount accessible on the host.
Brian Tiger Chow committed
Nov 1, 2014 at 17:27 UTC
06a8feeaf34b91edefc413f1edab1371d81d1b64
1 file changed
+1
-6
Dockerfile
+1
-6
@@ -1,19 +1,14 @@
1
FROM golang:1.3
2
MAINTAINER Brian Tiger Chow <btc@perfmode.com>
3
4
-RUN apt-get update
5
-RUN apt-get install -y fuse
6
-
4
COPY . /go/src/github.com/jbenet/go-ipfs
8
-
5
RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
6
RUN ipfs init
7
RUN ipfs config Identity.Address "/ip4/0.0.0.0/tcp/4001"
12
-RUN mkdir /ipfs
8
9
EXPOSE 4001
10
16
-CMD ["ipfs", "mount", "/ipfs"]
11
+CMD ["ipfs", "run"]
12
13
# build: docker build -t go-ipfs .
14
# run: docker run --privileged=true -i -t go-ipfs:latest