Skip to content

Commit

Permalink
Changes for antithesis upgrade test (#20850)
Browse files Browse the repository at this point in the history
- Remove unused filed
- Rename sui-network -> sui-antithesis
- Build docker-compose-[12].yaml (for upgrade tests)
  • Loading branch information
mystenmark authored Jan 10, 2025
1 parent 1469d94 commit 9ac2731
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 187 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,21 @@ RUN ./new-genesis.sh
RUN echo "SUI_NODE_A_TAG=$SUI_NODE_A_TAG" >> /.env
RUN echo "SUI_NODE_B_TAG=$SUI_NODE_B_TAG" >> /.env

COPY ./docker-compose-antithesis.yaml /docker-compose.yaml

# when running an upgrade test, we required two docker files, one for before upgrade and one for after upgrade
# One of the files runs only the primary sui-node image, and the other runs only the sui-node-alt image.
RUN <<EOF
sed 's/sui-node-alt:${SUI_NODE_B_TAG}/sui-node:${SUI_NODE_A_TAG}/' < /docker-compose.yaml > docker-compose-1.yaml
sed 's/sui-node:${SUI_NODE_A_TAG}/sui-node-alt:${SUI_NODE_B_TAG}/' < /docker-compose.yaml > docker-compose-2.yaml
EOF

FROM scratch

COPY ./docker-compose-antithesis.yaml /docker-compose.yaml
COPY --from=setup /docker-compose-1.yaml /docker-compose-1.yaml
COPY --from=setup /docker-compose-2.yaml /docker-compose-2.yaml
COPY --from=setup /docker-compose.yaml /docker-compose.yaml

COPY /genesis/overlays/* /genesis/overlays/
COPY /genesis/static/* /genesis/static/
COPY --from=setup /genesis/files/* /genesis/files/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
186 changes: 0 additions & 186 deletions docker/sui-network/docker-compose.yaml

This file was deleted.

0 comments on commit 9ac2731

Please sign in to comment.