Created
March 12, 2024 13:17
-
-
Save turadg/d7581a62642117724cfc9848f6dfe1eb to your computer and use it in GitHub Desktop.
a3p image builders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you're new to Bake: | |
// https://blog.kubesimplify.com/bake-your-container-images-with-bake | |
// for https://github.com/docker/metadata-action?tab=readme-ov-file#bake-definition | |
target "docker-metadata-action" {} | |
// PROPOSALS variable is filled by docker-bake.json, which this config merges upon | |
// https://docs.docker.com/build/bake/reference/#file-format | |
group "default" { | |
targets = [ | |
"use", | |
"test" | |
] | |
} | |
// Images to use the result of all local proposals, optionally built multi-platform | |
target "use" { | |
inherits = ["docker-metadata-action"] | |
name = "use-${proposal}" | |
platforms = PLATFORMS | |
matrix = { | |
proposal = PROPOSALS | |
} | |
// TODO proposal *number* would be immutable | |
tags = ["ghcr.io/agoric/agoric-3-proposals:use-${proposal}"] | |
labels = { | |
"org.opencontainers.image.title": "Use ${proposal}", | |
"org.opencontainers.image.description": "Use agoric-3 synthetic chain after ${proposal} proposal", | |
} | |
target = "use-${proposal}" | |
} | |
// Image to test the result of a proposal, always current platform | |
target "test" { | |
name = "test-${proposal}" | |
matrix = { | |
proposal = PROPOSALS | |
} | |
tags = ["ghcr.io/agoric/agoric-3-proposals:test-${proposal}"] | |
labels = { | |
"org.opencontainers.image.title": "Test ${proposal}", | |
} | |
target = "test-${proposal}" | |
} | |
// Single image for using the chain with the state after all the passed proposals | |
// Must match the CI config and synthetic-chain default fromTag | |
target "latest" { | |
inherits = ["docker-metadata-action"] | |
platforms = PLATFORMS | |
tags = ["ghcr.io/agoric/agoric-3-proposals:latest"] | |
labels = { | |
"org.opencontainers.image.title": "All passed proposals", | |
"org.opencontainers.image.description": "Use agoric-3 synthetic chain including all passed proposals", | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variable": { | |
"PLATFORMS": { | |
"default": [ | |
"linux/amd64", | |
"linux/arm64" | |
] | |
}, | |
"PROPOSALS": { | |
"default": [ | |
"upgrade-8", | |
"upgrade-9", | |
"upgrade-10", | |
"upgrade-11", | |
"smart-wallet-nft", | |
"kread-start", | |
"statom-vaults", | |
"lo-bundle-cost", | |
"upgrade-12", | |
"crabble-start", | |
"upgrade-13", | |
"zoe1" | |
] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------------- | |
# upgrade-8 | |
#---------------- | |
## START | |
# on agoric-upgrade-7-2, with upgrade to agoric-upgrade-8 | |
FROM ghcr.io/agoric/ag0:agoric-upgrade-7-2 as prepare-upgrade-8 | |
ENV UPGRADE_TO=agoric-upgrade-8 | |
# put env functions into shell environment | |
RUN echo '. /usr/src/upgrade-test-scripts/env_setup.sh' >> ~/.bashrc | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_prepare_zero.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
# this is the only layer that starts ag0 | |
RUN /usr/src/upgrade-test-scripts/run_prepare_zero.sh | |
# EXECUTE upgrade-8 | |
FROM ghcr.io/agoric/agoric-sdk:29 as execute-upgrade-8 | |
WORKDIR /usr/src/upgrade-test-scripts | |
# base is a fresh sdk image so set up the proposal and its dependencies | |
COPY --link --chmod=755 ./proposals/16:upgrade-8 /usr/src/proposals/16:upgrade-8 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_execute.sh ./upgrade-test-scripts/start_to_to.sh ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 16:upgrade-8 | |
COPY --link --from=prepare-upgrade-8 /root/.agoric /root/.agoric | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_execute.sh agoric-upgrade-8 | |
# USE upgrade-8 | |
FROM execute-upgrade-8 as use-upgrade-8 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 16:upgrade-8 | |
ENTRYPOINT ./start_agd.sh | |
# TEST upgrade-8 | |
FROM use-upgrade-8 as test-upgrade-8 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 16:upgrade-8 | |
#---------------- | |
# upgrade-9 | |
#---------------- | |
# PREPARE upgrade-9 | |
# upgrading to agoric-upgrade-9 | |
FROM use-upgrade-8 as prepare-upgrade-9 | |
ENV UPGRADE_TO=agoric-upgrade-9 UPGRADE_INFO="" | |
COPY --link --chmod=755 ./proposals/29:upgrade-9 /usr/src/proposals/29:upgrade-9 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_prepare.sh ./upgrade-test-scripts/start_to_to.sh /usr/src/upgrade-test-scripts/ | |
WORKDIR /usr/src/upgrade-test-scripts | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_prepare.sh 29:upgrade-9 | |
# EXECUTE upgrade-9 | |
FROM ghcr.io/agoric/agoric-sdk:31 as execute-upgrade-9 | |
WORKDIR /usr/src/upgrade-test-scripts | |
# base is a fresh sdk image so set up the proposal and its dependencies | |
COPY --link --chmod=755 ./proposals/29:upgrade-9 /usr/src/proposals/29:upgrade-9 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_execute.sh ./upgrade-test-scripts/start_to_to.sh ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 29:upgrade-9 | |
COPY --link --from=prepare-upgrade-9 /root/.agoric /root/.agoric | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_execute.sh agoric-upgrade-9 | |
# USE upgrade-9 | |
FROM execute-upgrade-9 as use-upgrade-9 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 29:upgrade-9 | |
ENTRYPOINT ./start_agd.sh | |
# TEST upgrade-9 | |
FROM use-upgrade-9 as test-upgrade-9 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 29:upgrade-9 | |
#---------------- | |
# upgrade-10 | |
#---------------- | |
# PREPARE upgrade-10 | |
# upgrading to agoric-upgrade-10 | |
FROM use-upgrade-9 as prepare-upgrade-10 | |
ENV UPGRADE_TO=agoric-upgrade-10 UPGRADE_INFO="" | |
COPY --link --chmod=755 ./proposals/34:upgrade-10 /usr/src/proposals/34:upgrade-10 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_prepare.sh ./upgrade-test-scripts/start_to_to.sh /usr/src/upgrade-test-scripts/ | |
WORKDIR /usr/src/upgrade-test-scripts | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_prepare.sh 34:upgrade-10 | |
# EXECUTE upgrade-10 | |
FROM ghcr.io/agoric/agoric-sdk:35 as execute-upgrade-10 | |
WORKDIR /usr/src/upgrade-test-scripts | |
# base is a fresh sdk image so set up the proposal and its dependencies | |
COPY --link --chmod=755 ./proposals/34:upgrade-10 /usr/src/proposals/34:upgrade-10 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_execute.sh ./upgrade-test-scripts/start_to_to.sh ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 34:upgrade-10 | |
COPY --link --from=prepare-upgrade-10 /root/.agoric /root/.agoric | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_execute.sh agoric-upgrade-10 | |
# USE upgrade-10 | |
FROM execute-upgrade-10 as use-upgrade-10 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 34:upgrade-10 | |
ENTRYPOINT ./start_agd.sh | |
# TEST upgrade-10 | |
FROM use-upgrade-10 as test-upgrade-10 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 34:upgrade-10 | |
#---------------- | |
# upgrade-11 | |
#---------------- | |
# PREPARE upgrade-11 | |
# upgrading to agoric-upgrade-11 | |
FROM use-upgrade-10 as prepare-upgrade-11 | |
ENV UPGRADE_TO=agoric-upgrade-11 UPGRADE_INFO="" | |
COPY --link --chmod=755 ./proposals/43:upgrade-11 /usr/src/proposals/43:upgrade-11 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_prepare.sh ./upgrade-test-scripts/start_to_to.sh /usr/src/upgrade-test-scripts/ | |
WORKDIR /usr/src/upgrade-test-scripts | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_prepare.sh 43:upgrade-11 | |
# EXECUTE upgrade-11 | |
FROM ghcr.io/agoric/agoric-sdk:36 as execute-upgrade-11 | |
WORKDIR /usr/src/upgrade-test-scripts | |
# base is a fresh sdk image so set up the proposal and its dependencies | |
COPY --link --chmod=755 ./proposals/43:upgrade-11 /usr/src/proposals/43:upgrade-11 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_execute.sh ./upgrade-test-scripts/start_to_to.sh ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 43:upgrade-11 | |
COPY --link --from=prepare-upgrade-11 /root/.agoric /root/.agoric | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_execute.sh agoric-upgrade-11 | |
# USE upgrade-11 | |
FROM execute-upgrade-11 as use-upgrade-11 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 43:upgrade-11 | |
ENTRYPOINT ./start_agd.sh | |
# TEST upgrade-11 | |
FROM use-upgrade-11 as test-upgrade-11 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 43:upgrade-11 | |
#---------------- | |
# smart-wallet-nft | |
#---------------- | |
# EVAL smart-wallet-nft | |
FROM use-upgrade-11 as eval-smart-wallet-nft | |
COPY --link --chmod=755 ./proposals/49:smart-wallet-nft /usr/src/proposals/49:smart-wallet-nft | |
WORKDIR /usr/src/upgrade-test-scripts | |
# First stage of this proposal so install its deps. | |
COPY --link ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 49:smart-wallet-nft | |
COPY --link --chmod=755 ./upgrade-test-scripts/*eval* /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_eval.sh 49:smart-wallet-nft | |
# USE smart-wallet-nft | |
FROM eval-smart-wallet-nft as use-smart-wallet-nft | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 49:smart-wallet-nft | |
ENTRYPOINT ./start_agd.sh | |
# TEST smart-wallet-nft | |
FROM use-smart-wallet-nft as test-smart-wallet-nft | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 49:smart-wallet-nft | |
#---------------- | |
# kread-start | |
#---------------- | |
# EVAL kread-start | |
FROM use-smart-wallet-nft as eval-kread-start | |
COPY --link --chmod=755 ./proposals/53:kread-start /usr/src/proposals/53:kread-start | |
WORKDIR /usr/src/upgrade-test-scripts | |
# First stage of this proposal so install its deps. | |
COPY --link ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 53:kread-start | |
COPY --link --chmod=755 ./upgrade-test-scripts/*eval* /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_eval.sh 53:kread-start | |
# USE kread-start | |
FROM eval-kread-start as use-kread-start | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 53:kread-start | |
ENTRYPOINT ./start_agd.sh | |
# TEST kread-start | |
FROM use-kread-start as test-kread-start | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 53:kread-start | |
#---------------- | |
# statom-vaults | |
#---------------- | |
# EVAL statom-vaults | |
FROM use-kread-start as eval-statom-vaults | |
COPY --link --chmod=755 ./proposals/55:statom-vaults /usr/src/proposals/55:statom-vaults | |
WORKDIR /usr/src/upgrade-test-scripts | |
# First stage of this proposal so install its deps. | |
COPY --link ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 55:statom-vaults | |
COPY --link --chmod=755 ./upgrade-test-scripts/*eval* /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_eval.sh 55:statom-vaults | |
# USE statom-vaults | |
FROM eval-statom-vaults as use-statom-vaults | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 55:statom-vaults | |
ENTRYPOINT ./start_agd.sh | |
# TEST statom-vaults | |
FROM use-statom-vaults as test-statom-vaults | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 55:statom-vaults | |
#---------------- | |
# lo-bundle-cost | |
#---------------- | |
# EVAL lo-bundle-cost | |
FROM use-statom-vaults as eval-lo-bundle-cost | |
COPY --link --chmod=755 ./proposals/61:lo-bundle-cost /usr/src/proposals/61:lo-bundle-cost | |
WORKDIR /usr/src/upgrade-test-scripts | |
# First stage of this proposal so install its deps. | |
COPY --link ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 61:lo-bundle-cost | |
COPY --link --chmod=755 ./upgrade-test-scripts/*eval* /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_eval.sh 61:lo-bundle-cost | |
# USE lo-bundle-cost | |
FROM eval-lo-bundle-cost as use-lo-bundle-cost | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 61:lo-bundle-cost | |
ENTRYPOINT ./start_agd.sh | |
# TEST lo-bundle-cost | |
FROM use-lo-bundle-cost as test-lo-bundle-cost | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 61:lo-bundle-cost | |
#---------------- | |
# upgrade-12 | |
#---------------- | |
# PREPARE upgrade-12 | |
# upgrading to agoric-upgrade-12 | |
FROM use-lo-bundle-cost as prepare-upgrade-12 | |
ENV UPGRADE_TO=agoric-upgrade-12 UPGRADE_INFO="" | |
COPY --link --chmod=755 ./proposals/63:upgrade-12 /usr/src/proposals/63:upgrade-12 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_prepare.sh ./upgrade-test-scripts/start_to_to.sh /usr/src/upgrade-test-scripts/ | |
WORKDIR /usr/src/upgrade-test-scripts | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_prepare.sh 63:upgrade-12 | |
# EXECUTE upgrade-12 | |
FROM ghcr.io/agoric/agoric-sdk:38 as execute-upgrade-12 | |
WORKDIR /usr/src/upgrade-test-scripts | |
# base is a fresh sdk image so set up the proposal and its dependencies | |
COPY --link --chmod=755 ./proposals/63:upgrade-12 /usr/src/proposals/63:upgrade-12 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_execute.sh ./upgrade-test-scripts/start_to_to.sh ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 63:upgrade-12 | |
COPY --link --from=prepare-upgrade-12 /root/.agoric /root/.agoric | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_execute.sh agoric-upgrade-12 | |
# USE upgrade-12 | |
FROM execute-upgrade-12 as use-upgrade-12 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 63:upgrade-12 | |
ENTRYPOINT ./start_agd.sh | |
# TEST upgrade-12 | |
FROM use-upgrade-12 as test-upgrade-12 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 63:upgrade-12 | |
#---------------- | |
# crabble-start | |
#---------------- | |
# EVAL crabble-start | |
FROM use-upgrade-12 as eval-crabble-start | |
COPY --link --chmod=755 ./proposals/64:crabble-start /usr/src/proposals/64:crabble-start | |
WORKDIR /usr/src/upgrade-test-scripts | |
# First stage of this proposal so install its deps. | |
COPY --link ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 64:crabble-start | |
COPY --link --chmod=755 ./upgrade-test-scripts/*eval* /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_eval.sh 64:crabble-start | |
# USE crabble-start | |
FROM eval-crabble-start as use-crabble-start | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 64:crabble-start | |
ENTRYPOINT ./start_agd.sh | |
# TEST crabble-start | |
FROM use-crabble-start as test-crabble-start | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 64:crabble-start | |
#---------------- | |
# upgrade-13 | |
#---------------- | |
# PREPARE upgrade-13 | |
# upgrading to agoric-upgrade-13 | |
FROM use-crabble-start as prepare-upgrade-13 | |
ENV UPGRADE_TO=agoric-upgrade-13 UPGRADE_INFO="" | |
COPY --link --chmod=755 ./proposals/65:upgrade-13 /usr/src/proposals/65:upgrade-13 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_prepare.sh ./upgrade-test-scripts/start_to_to.sh /usr/src/upgrade-test-scripts/ | |
WORKDIR /usr/src/upgrade-test-scripts | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_prepare.sh 65:upgrade-13 | |
# EXECUTE upgrade-13 | |
FROM ghcr.io/agoric/agoric-sdk:39 as execute-upgrade-13 | |
WORKDIR /usr/src/upgrade-test-scripts | |
# base is a fresh sdk image so set up the proposal and its dependencies | |
COPY --link --chmod=755 ./proposals/65:upgrade-13 /usr/src/proposals/65:upgrade-13 | |
COPY --link --chmod=755 ./upgrade-test-scripts/env_setup.sh ./upgrade-test-scripts/run_execute.sh ./upgrade-test-scripts/start_to_to.sh ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh 65:upgrade-13 | |
COPY --link --from=prepare-upgrade-13 /root/.agoric /root/.agoric | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_execute.sh agoric-upgrade-13 | |
# USE upgrade-13 | |
FROM execute-upgrade-13 as use-upgrade-13 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh 65:upgrade-13 | |
ENTRYPOINT ./start_agd.sh | |
# TEST upgrade-13 | |
FROM use-upgrade-13 as test-upgrade-13 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh 65:upgrade-13 | |
#---------------- | |
# zoe1 | |
#---------------- | |
# EVAL zoe1 | |
FROM use-upgrade-13 as eval-zoe1 | |
COPY --link --chmod=755 ./proposals/b:zoe1 /usr/src/proposals/b:zoe1 | |
WORKDIR /usr/src/upgrade-test-scripts | |
# First stage of this proposal so install its deps. | |
COPY --link ./upgrade-test-scripts/install_deps.sh /usr/src/upgrade-test-scripts/ | |
RUN --mount=type=cache,target=/root/.yarn ./install_deps.sh b:zoe1 | |
COPY --link --chmod=755 ./upgrade-test-scripts/*eval* /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_eval.sh b:zoe1 | |
# USE zoe1 | |
FROM eval-zoe1 as use-zoe1 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_use.sh ./upgrade-test-scripts/start_agd.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
RUN ./run_use.sh b:zoe1 | |
ENTRYPOINT ./start_agd.sh | |
# TEST zoe1 | |
FROM use-zoe1 as test-zoe1 | |
WORKDIR /usr/src/upgrade-test-scripts | |
COPY --link --chmod=755 ./upgrade-test-scripts/run_test.sh /usr/src/upgrade-test-scripts/ | |
SHELL ["/bin/bash", "-c"] | |
ENTRYPOINT ./run_test.sh b:zoe1 | |
# LAST | |
FROM ghcr.io/agoric/agoric-3-proposals:use-upgrade-13 as latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment