Dockerfile formatting
This commit is contained in:
parent
418587a946
commit
d0b2c80a15
12
Dockerfile
12
Dockerfile
|
@ -3,10 +3,10 @@ MAINTAINER Hector Sanjuan <hector@protocol.ai>
|
|||
|
||||
# This dockerfile builds and runs ipfs-cluster-service.
|
||||
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-cluster
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-cluster
|
||||
ENV GO111MODULE on
|
||||
ENV GOPROXY=https://proxy.golang.org
|
||||
ENV GOPROXY https://proxy.golang.org
|
||||
|
||||
ENV SUEXEC_VERSION v0.2
|
||||
ENV TINI_VERSION v0.16.1
|
||||
|
@ -35,9 +35,9 @@ RUN make install
|
|||
FROM busybox:1-glibc
|
||||
MAINTAINER Hector Sanjuan <hector@protocol.ai>
|
||||
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH /go/src/github.com/ipfs/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_PATH /data/ipfs-cluster
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH /go/src/github.com/ipfs/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_PATH /data/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_CONSENSUS crdt
|
||||
|
||||
EXPOSE 9094
|
||||
|
|
|
@ -5,10 +5,10 @@ MAINTAINER Hector Sanjuan <hector@protocol.ai>
|
|||
# It re-uses the latest go-ipfs:release container.
|
||||
|
||||
# This builder just builds the cluster binaries
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-cluster
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-cluster
|
||||
ENV GO111MODULE on
|
||||
ENV GOPROXY=https://proxy.golang.org
|
||||
ENV GOPROXY https://proxy.golang.org
|
||||
|
||||
COPY go.* $SRC_PATH/
|
||||
WORKDIR $SRC_PATH
|
||||
|
@ -24,9 +24,9 @@ MAINTAINER Hector Sanjuan <hector@protocol.ai>
|
|||
# This is the container which just puts the previously
|
||||
# built binaries on the go-ipfs-container.
|
||||
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH /go/src/github.com/ipfs/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_PATH /data/ipfs-cluster
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH /go/src/github.com/ipfs/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_PATH /data/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_CONSENSUS crdt
|
||||
|
||||
EXPOSE 9094
|
||||
|
|
|
@ -3,10 +3,10 @@ MAINTAINER Hector Sanjuan <hector@protocol.ai>
|
|||
|
||||
# This build state just builds the cluster binaries
|
||||
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-cluster
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-cluster
|
||||
ENV GO111MODULE on
|
||||
ENV GOPROXY=https://proxy.golang.org
|
||||
ENV GOPROXY https://proxy.golang.org
|
||||
|
||||
RUN cd /tmp && \
|
||||
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && \
|
||||
|
@ -26,12 +26,12 @@ MAINTAINER Hector Sanjuan <hector@protocol.ai>
|
|||
# This is the container which just puts the previously
|
||||
# built binaries on the go-ipfs-container.
|
||||
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH /go/src/github.com/ipfs/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_PATH /data/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_CONSENSUS crdt
|
||||
ENV GOPATH /go
|
||||
ENV SRC_PATH /go/src/github.com/ipfs/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_PATH /data/ipfs-cluster
|
||||
ENV IPFS_CLUSTER_CONSENSUS crdt
|
||||
ENV IPFS_CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS /ip4/0.0.0.0/tcp/9094
|
||||
ENV IPFS_CLUSTER_IPFSPROXY_LISTENMULTIADDRESS /ip4/0.0.0.0/tcp/9095
|
||||
ENV IPFS_CLUSTER_IPFSPROXY_LISTENMULTIADDRESS /ip4/0.0.0.0/tcp/9095
|
||||
|
||||
EXPOSE 9094
|
||||
EXPOSE 9095
|
||||
|
|
Loading…
Reference in New Issue
Block a user