good morning!!!!

Skip to content
Snippets Groups Projects
Commit 6cb7d52a authored by Rafael Matias's avatar Rafael Matias Committed by Viktor Trón
Browse files

swarm/docker: add global-store and split docker images (#19038)

parent 27e3f968
No related branches found
No related tags found
No related merge requests found
...@@ -10,14 +10,23 @@ RUN mkdir -p $GOPATH/src/github.com/ethereum && \ ...@@ -10,14 +10,23 @@ RUN mkdir -p $GOPATH/src/github.com/ethereum && \
git checkout ${VERSION} && \ git checkout ${VERSION} && \
go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/swarm && \ 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/swarm/swarm-smoke && \
go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/geth && \ go install -ldflags "-X main.gitCommit=${VERSION}" ./cmd/swarm/global-store && \
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/geth
# Release image with the required binaries and scripts FROM alpine:3.8 as swarm-smoke
FROM alpine:3.8
WORKDIR / WORKDIR /
COPY --from=builder /swarm /geth /swarm-smoke / COPY --from=builder /go/bin/swarm-smoke /
ADD run.sh /run.sh
ADD run-smoke.sh /run-smoke.sh 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"] ENTRYPOINT ["/run.sh"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment