From dd3d3af6caa799965e73ae63a1f2916bfa8f19f0 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Wed, 6 Nov 2024 12:44:25 -0800 Subject: [PATCH] use zetanode:latest --- Dockerfile-localnet | 8 ++++---- Makefile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile-localnet b/Dockerfile-localnet index 49247d6be4..09e8c15a10 100644 --- a/Dockerfile-localnet +++ b/Dockerfile-localnet @@ -67,7 +67,8 @@ COPY --from=latest-build /go/bin/zetacored /go/bin/zetaclientd /go/bin/zetaclien # Optional old version build (from source). This old build is used as the genesis version in the upgrade tests. # Use --target latest-runtime to skip. -FROM base-build AS old-build-source +# you must have already built the latest image (which the Makefile does) +FROM zetanode:latest AS old-build-source ARG OLD_VERSION RUN git clone https://github.com/zeta-chain/node.git @@ -84,13 +85,12 @@ COPY --from=latest-build /go/bin/zetaclientd-supervisor /usr/local/bin # Optional old version build (from binary). # Use --target latest-runtime to skip. -FROM base-runtime AS old-runtime +# you must have already built the latest image (which the Makefile does) +FROM zetanode:latest AS old-runtime ARG OLD_VERSION ARG BUILDARCH -COPY --from=cosmovisor-build /go/bin/cosmovisor /usr/local/bin -COPY --from=latest-build /go/bin/zetaclientd-supervisor /usr/local/bin RUN curl -Lo /usr/local/bin/zetacored ${OLD_VERSION}/zetacored-linux-${BUILDARCH} && \ chmod 755 /usr/local/bin/zetacored && \ curl -Lo /usr/local/bin/zetaclientd ${OLD_VERSION}/zetaclientd-linux-${BUILDARCH} && \ diff --git a/Makefile b/Makefile index 4ecb211f09..470055d651 100644 --- a/Makefile +++ b/Makefile @@ -247,7 +247,7 @@ ifdef ZETANODE_IMAGE zetanode: @echo "Pulling zetanode image" $(DOCKER) pull $(ZETANODE_IMAGE) - $(DOCKER) tag $(ZETANODE_IMAGE) zetanode + $(DOCKER) tag $(ZETANODE_IMAGE) zetanode:latest .PHONY: zetanode else zetanode: