aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Matias <rafael@skyle.net>2019-02-12 15:34:08 +0800
committerRafael Matias <rafael@skyle.net>2019-02-19 20:11:51 +0800
commit3b02b0ba4b593a47e1e9e1975a47dd1e0d3afcae (patch)
tree776272359cfa1d6a25cf5ca9a108e84748b4cc61
parent85217b08bde168c0fd41d7265afe401454bb0f86 (diff)
downloadgo-tangerine-3b02b0ba4b593a47e1e9e1975a47dd1e0d3afcae.tar
go-tangerine-3b02b0ba4b593a47e1e9e1975a47dd1e0d3afcae.tar.gz
go-tangerine-3b02b0ba4b593a47e1e9e1975a47dd1e0d3afcae.tar.bz2
go-tangerine-3b02b0ba4b593a47e1e9e1975a47dd1e0d3afcae.tar.lz
go-tangerine-3b02b0ba4b593a47e1e9e1975a47dd1e0d3afcae.tar.xz
go-tangerine-3b02b0ba4b593a47e1e9e1975a47dd1e0d3afcae.tar.zst
go-tangerine-3b02b0ba4b593a47e1e9e1975a47dd1e0d3afcae.zip
swarm/docker: add global-store and split docker images (#19038)
(cherry picked from commit 6cb7d52a29c68cdc4eafabb6dfe7594c288d151e)
-rw-r--r--swarm/docker/Dockerfile21
1 files changed, 15 insertions, 6 deletions
diff --git a/swarm/docker/Dockerfile b/swarm/docker/Dockerfile
index 1ee4e9734..9450609dd 100644
--- a/swarm/docker/Dockerfile
+++ b/swarm/docker/Dockerfile
@@ -10,14 +10,23 @@ RUN mkdir -p $GOPATH/src/github.com/ethereum && \
git checkout ${VERSION} && \
go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/swarm && \
go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/swarm/swarm-smoke && \
- go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/geth && \
- cp $GOPATH/bin/swarm /swarm && cp $GOPATH/bin/geth /geth && cp $GOPATH/bin/swarm-smoke /swarm-smoke
+ go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/swarm/global-store && \
+ go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/geth
-# Release image with the required binaries and scripts
-FROM alpine:3.8
+FROM alpine:3.8 as swarm-smoke
WORKDIR /
-COPY --from=builder /swarm /geth /swarm-smoke /
-ADD run.sh /run.sh
+COPY --from=builder /go/bin/swarm-smoke /
ADD run-smoke.sh /run-smoke.sh
+ENTRYPOINT ["/run-smoke.sh"]
+
+FROM alpine:3.8 as swarm-global-store
+WORKDIR /
+COPY --from=builder /go/bin/global-store /
+ENTRYPOINT ["/global-store"]
+
+FROM alpine:3.8 as swarm
+WORKDIR /
+COPY --from=builder /go/bin/swarm /go/bin/geth /
+ADD run.sh /run.sh
ENTRYPOINT ["/run.sh"]