The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyperlane-monorepo/Dockerfile

38 lines
1.2 KiB

FROM node:18-alpine
Helloworld kathy infra (#636) * Alpha7 * Checker * Move AbacusCoreChecker to deploy * Transfer ownership of Router in RouterDeployer (#546) * Transfer ownership of Router in RouterDeployer * Improve router config/deploy/init (#557) * Add default initialize to Router * Remove proxies from router framework Co-authored-by: yorhodes <yorke@useabacus.network> * Update router tests for initialization * Move libs to contracts dir * Publish alpha12 * Publish beta1 * Small adjustments * Fix lint * Add newlines to package json * Publish beta3 * Add hello world commands to infra * Make hello world artifacts consistent with infra * Add back helloworld after merge * Fix kathy scripts for 0.2.2 Hoist resolveJsonModule ts config to root * Run prettier * Cleanup tsconfig trailing commas * initial dockerfile * Update and cleanup Ethers.JS Dependencies (#510) - Update all deps to latest ethers.js and remove redundancies - Replace celo-ethers-provider dep with celo-ethers-wrapper * Update yarn.lock * rm old scripts * Override GCP secrets with env vars, some initial infra * log errors * Replace celo-ethers-wrapper with new celo-ethers-provider lib * Use recomemnded alfajores forno url * Helloworld-kathy tooling * Config stuff * monorepo docker image ci * Bump patch versions * Make infra private (for now) * Stash deployment artifacts * Fix prettier * Add ethereum partial deployment * Add helloworld git submodule * Ensure contracts are connected at end of deploy * Updates for hello world * Add submodule status config * Update submodule to branch * Add post-merge git hook for submodule init update * Try post checkout hook * Make post-checkout executable * Update submodule without yarn.lock * Add remote flag to git submodule update * Update submodule again * Adjust post checkout hook * Add submodules true to github actions checkout * Move helloworld mod to main * Fix github actions checkout submodules * Add submodules true for yarn build step * fix kathy * nit name * try rm submodule? * rm submodule bit in husky post-checkout * Try again * no need to try catch * buildin * Getting rid of unintentional changes * Clean up a lil * Config * fix build .... * better dockerfile * Cleanin * nearly there * one step closer * agh * Gracefully handle errors * Don't hardcode gas * Final schedules * rm accidental submodule * Add comments describing env var overriding * Cleaning up * Avoid race cond * 0.2.4 * PR comments * New kathy img * Allow CHAINS_TO_SKIP to be an empty str * upgrade kathy img * once every hour * once every 2 hrs actually Co-authored-by: nambrot <nambrot@googlemail.com> Co-authored-by: yorhodes <yorke@useabacus.network> Co-authored-by: J M Rossy <jm.rossy@gmail.com>
2 years ago
WORKDIR /hyperlane-monorepo
Helloworld kathy infra (#636) * Alpha7 * Checker * Move AbacusCoreChecker to deploy * Transfer ownership of Router in RouterDeployer (#546) * Transfer ownership of Router in RouterDeployer * Improve router config/deploy/init (#557) * Add default initialize to Router * Remove proxies from router framework Co-authored-by: yorhodes <yorke@useabacus.network> * Update router tests for initialization * Move libs to contracts dir * Publish alpha12 * Publish beta1 * Small adjustments * Fix lint * Add newlines to package json * Publish beta3 * Add hello world commands to infra * Make hello world artifacts consistent with infra * Add back helloworld after merge * Fix kathy scripts for 0.2.2 Hoist resolveJsonModule ts config to root * Run prettier * Cleanup tsconfig trailing commas * initial dockerfile * Update and cleanup Ethers.JS Dependencies (#510) - Update all deps to latest ethers.js and remove redundancies - Replace celo-ethers-provider dep with celo-ethers-wrapper * Update yarn.lock * rm old scripts * Override GCP secrets with env vars, some initial infra * log errors * Replace celo-ethers-wrapper with new celo-ethers-provider lib * Use recomemnded alfajores forno url * Helloworld-kathy tooling * Config stuff * monorepo docker image ci * Bump patch versions * Make infra private (for now) * Stash deployment artifacts * Fix prettier * Add ethereum partial deployment * Add helloworld git submodule * Ensure contracts are connected at end of deploy * Updates for hello world * Add submodule status config * Update submodule to branch * Add post-merge git hook for submodule init update * Try post checkout hook * Make post-checkout executable * Update submodule without yarn.lock * Add remote flag to git submodule update * Update submodule again * Adjust post checkout hook * Add submodules true to github actions checkout * Move helloworld mod to main * Fix github actions checkout submodules * Add submodules true for yarn build step * fix kathy * nit name * try rm submodule? * rm submodule bit in husky post-checkout * Try again * no need to try catch * buildin * Getting rid of unintentional changes * Clean up a lil * Config * fix build .... * better dockerfile * Cleanin * nearly there * one step closer * agh * Gracefully handle errors * Don't hardcode gas * Final schedules * rm accidental submodule * Add comments describing env var overriding * Cleaning up * Avoid race cond * 0.2.4 * PR comments * New kathy img * Allow CHAINS_TO_SKIP to be an empty str * upgrade kathy img * once every hour * once every 2 hrs actually Co-authored-by: nambrot <nambrot@googlemail.com> Co-authored-by: yorhodes <yorke@useabacus.network> Co-authored-by: J M Rossy <jm.rossy@gmail.com>
2 years ago
RUN apk add --update --no-cache git g++ make py3-pip jq
Helloworld kathy infra (#636) * Alpha7 * Checker * Move AbacusCoreChecker to deploy * Transfer ownership of Router in RouterDeployer (#546) * Transfer ownership of Router in RouterDeployer * Improve router config/deploy/init (#557) * Add default initialize to Router * Remove proxies from router framework Co-authored-by: yorhodes <yorke@useabacus.network> * Update router tests for initialization * Move libs to contracts dir * Publish alpha12 * Publish beta1 * Small adjustments * Fix lint * Add newlines to package json * Publish beta3 * Add hello world commands to infra * Make hello world artifacts consistent with infra * Add back helloworld after merge * Fix kathy scripts for 0.2.2 Hoist resolveJsonModule ts config to root * Run prettier * Cleanup tsconfig trailing commas * initial dockerfile * Update and cleanup Ethers.JS Dependencies (#510) - Update all deps to latest ethers.js and remove redundancies - Replace celo-ethers-provider dep with celo-ethers-wrapper * Update yarn.lock * rm old scripts * Override GCP secrets with env vars, some initial infra * log errors * Replace celo-ethers-wrapper with new celo-ethers-provider lib * Use recomemnded alfajores forno url * Helloworld-kathy tooling * Config stuff * monorepo docker image ci * Bump patch versions * Make infra private (for now) * Stash deployment artifacts * Fix prettier * Add ethereum partial deployment * Add helloworld git submodule * Ensure contracts are connected at end of deploy * Updates for hello world * Add submodule status config * Update submodule to branch * Add post-merge git hook for submodule init update * Try post checkout hook * Make post-checkout executable * Update submodule without yarn.lock * Add remote flag to git submodule update * Update submodule again * Adjust post checkout hook * Add submodules true to github actions checkout * Move helloworld mod to main * Fix github actions checkout submodules * Add submodules true for yarn build step * fix kathy * nit name * try rm submodule? * rm submodule bit in husky post-checkout * Try again * no need to try catch * buildin * Getting rid of unintentional changes * Clean up a lil * Config * fix build .... * better dockerfile * Cleanin * nearly there * one step closer * agh * Gracefully handle errors * Don't hardcode gas * Final schedules * rm accidental submodule * Add comments describing env var overriding * Cleaning up * Avoid race cond * 0.2.4 * PR comments * New kathy img * Allow CHAINS_TO_SKIP to be an empty str * upgrade kathy img * once every hour * once every 2 hrs actually Co-authored-by: nambrot <nambrot@googlemail.com> Co-authored-by: yorhodes <yorke@useabacus.network> Co-authored-by: J M Rossy <jm.rossy@gmail.com>
2 years ago
RUN yarn set version 4.5.1
Helloworld kathy infra (#636) * Alpha7 * Checker * Move AbacusCoreChecker to deploy * Transfer ownership of Router in RouterDeployer (#546) * Transfer ownership of Router in RouterDeployer * Improve router config/deploy/init (#557) * Add default initialize to Router * Remove proxies from router framework Co-authored-by: yorhodes <yorke@useabacus.network> * Update router tests for initialization * Move libs to contracts dir * Publish alpha12 * Publish beta1 * Small adjustments * Fix lint * Add newlines to package json * Publish beta3 * Add hello world commands to infra * Make hello world artifacts consistent with infra * Add back helloworld after merge * Fix kathy scripts for 0.2.2 Hoist resolveJsonModule ts config to root * Run prettier * Cleanup tsconfig trailing commas * initial dockerfile * Update and cleanup Ethers.JS Dependencies (#510) - Update all deps to latest ethers.js and remove redundancies - Replace celo-ethers-provider dep with celo-ethers-wrapper * Update yarn.lock * rm old scripts * Override GCP secrets with env vars, some initial infra * log errors * Replace celo-ethers-wrapper with new celo-ethers-provider lib * Use recomemnded alfajores forno url * Helloworld-kathy tooling * Config stuff * monorepo docker image ci * Bump patch versions * Make infra private (for now) * Stash deployment artifacts * Fix prettier * Add ethereum partial deployment * Add helloworld git submodule * Ensure contracts are connected at end of deploy * Updates for hello world * Add submodule status config * Update submodule to branch * Add post-merge git hook for submodule init update * Try post checkout hook * Make post-checkout executable * Update submodule without yarn.lock * Add remote flag to git submodule update * Update submodule again * Adjust post checkout hook * Add submodules true to github actions checkout * Move helloworld mod to main * Fix github actions checkout submodules * Add submodules true for yarn build step * fix kathy * nit name * try rm submodule? * rm submodule bit in husky post-checkout * Try again * no need to try catch * buildin * Getting rid of unintentional changes * Clean up a lil * Config * fix build .... * better dockerfile * Cleanin * nearly there * one step closer * agh * Gracefully handle errors * Don't hardcode gas * Final schedules * rm accidental submodule * Add comments describing env var overriding * Cleaning up * Avoid race cond * 0.2.4 * PR comments * New kathy img * Allow CHAINS_TO_SKIP to be an empty str * upgrade kathy img * once every hour * once every 2 hrs actually Co-authored-by: nambrot <nambrot@googlemail.com> Co-authored-by: yorhodes <yorke@useabacus.network> Co-authored-by: J M Rossy <jm.rossy@gmail.com>
2 years ago
# Copy package.json and friends
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn/plugins ./.yarn/plugins
COPY .yarn/releases ./.yarn/releases
COPY .yarn/patches ./.yarn/patches
Helloworld kathy infra (#636) * Alpha7 * Checker * Move AbacusCoreChecker to deploy * Transfer ownership of Router in RouterDeployer (#546) * Transfer ownership of Router in RouterDeployer * Improve router config/deploy/init (#557) * Add default initialize to Router * Remove proxies from router framework Co-authored-by: yorhodes <yorke@useabacus.network> * Update router tests for initialization * Move libs to contracts dir * Publish alpha12 * Publish beta1 * Small adjustments * Fix lint * Add newlines to package json * Publish beta3 * Add hello world commands to infra * Make hello world artifacts consistent with infra * Add back helloworld after merge * Fix kathy scripts for 0.2.2 Hoist resolveJsonModule ts config to root * Run prettier * Cleanup tsconfig trailing commas * initial dockerfile * Update and cleanup Ethers.JS Dependencies (#510) - Update all deps to latest ethers.js and remove redundancies - Replace celo-ethers-provider dep with celo-ethers-wrapper * Update yarn.lock * rm old scripts * Override GCP secrets with env vars, some initial infra * log errors * Replace celo-ethers-wrapper with new celo-ethers-provider lib * Use recomemnded alfajores forno url * Helloworld-kathy tooling * Config stuff * monorepo docker image ci * Bump patch versions * Make infra private (for now) * Stash deployment artifacts * Fix prettier * Add ethereum partial deployment * Add helloworld git submodule * Ensure contracts are connected at end of deploy * Updates for hello world * Add submodule status config * Update submodule to branch * Add post-merge git hook for submodule init update * Try post checkout hook * Make post-checkout executable * Update submodule without yarn.lock * Add remote flag to git submodule update * Update submodule again * Adjust post checkout hook * Add submodules true to github actions checkout * Move helloworld mod to main * Fix github actions checkout submodules * Add submodules true for yarn build step * fix kathy * nit name * try rm submodule? * rm submodule bit in husky post-checkout * Try again * no need to try catch * buildin * Getting rid of unintentional changes * Clean up a lil * Config * fix build .... * better dockerfile * Cleanin * nearly there * one step closer * agh * Gracefully handle errors * Don't hardcode gas * Final schedules * rm accidental submodule * Add comments describing env var overriding * Cleaning up * Avoid race cond * 0.2.4 * PR comments * New kathy img * Allow CHAINS_TO_SKIP to be an empty str * upgrade kathy img * once every hour * once every 2 hrs actually Co-authored-by: nambrot <nambrot@googlemail.com> Co-authored-by: yorhodes <yorke@useabacus.network> Co-authored-by: J M Rossy <jm.rossy@gmail.com>
2 years ago
COPY typescript/utils/package.json ./typescript/utils/
COPY typescript/sdk/package.json ./typescript/sdk/
COPY typescript/helloworld/package.json ./typescript/helloworld/
COPY typescript/cli/package.json ./typescript/cli/
Helloworld kathy infra (#636) * Alpha7 * Checker * Move AbacusCoreChecker to deploy * Transfer ownership of Router in RouterDeployer (#546) * Transfer ownership of Router in RouterDeployer * Improve router config/deploy/init (#557) * Add default initialize to Router * Remove proxies from router framework Co-authored-by: yorhodes <yorke@useabacus.network> * Update router tests for initialization * Move libs to contracts dir * Publish alpha12 * Publish beta1 * Small adjustments * Fix lint * Add newlines to package json * Publish beta3 * Add hello world commands to infra * Make hello world artifacts consistent with infra * Add back helloworld after merge * Fix kathy scripts for 0.2.2 Hoist resolveJsonModule ts config to root * Run prettier * Cleanup tsconfig trailing commas * initial dockerfile * Update and cleanup Ethers.JS Dependencies (#510) - Update all deps to latest ethers.js and remove redundancies - Replace celo-ethers-provider dep with celo-ethers-wrapper * Update yarn.lock * rm old scripts * Override GCP secrets with env vars, some initial infra * log errors * Replace celo-ethers-wrapper with new celo-ethers-provider lib * Use recomemnded alfajores forno url * Helloworld-kathy tooling * Config stuff * monorepo docker image ci * Bump patch versions * Make infra private (for now) * Stash deployment artifacts * Fix prettier * Add ethereum partial deployment * Add helloworld git submodule * Ensure contracts are connected at end of deploy * Updates for hello world * Add submodule status config * Update submodule to branch * Add post-merge git hook for submodule init update * Try post checkout hook * Make post-checkout executable * Update submodule without yarn.lock * Add remote flag to git submodule update * Update submodule again * Adjust post checkout hook * Add submodules true to github actions checkout * Move helloworld mod to main * Fix github actions checkout submodules * Add submodules true for yarn build step * fix kathy * nit name * try rm submodule? * rm submodule bit in husky post-checkout * Try again * no need to try catch * buildin * Getting rid of unintentional changes * Clean up a lil * Config * fix build .... * better dockerfile * Cleanin * nearly there * one step closer * agh * Gracefully handle errors * Don't hardcode gas * Final schedules * rm accidental submodule * Add comments describing env var overriding * Cleaning up * Avoid race cond * 0.2.4 * PR comments * New kathy img * Allow CHAINS_TO_SKIP to be an empty str * upgrade kathy img * once every hour * once every 2 hrs actually Co-authored-by: nambrot <nambrot@googlemail.com> Co-authored-by: yorhodes <yorke@useabacus.network> Co-authored-by: J M Rossy <jm.rossy@gmail.com>
2 years ago
COPY typescript/infra/package.json ./typescript/infra/
COPY typescript/ccip-server/package.json ./typescript/ccip-server/
feat: fully testing ICA ownership with tooling (#4245) ### Description Some tweaks to get checker tooling working with ICA ownership: - changed the `inferCallSubmissionTypes` logic to no longer mutate `this.calls`. Some weird side effects were occurring, especially where the ICA logic would try to pop and push from `this.calls` while also looping over it. This is also why I made it serial again. I ended up moving away from mutating this.calls entirely during the iteration, so I guess moving back to doing it concurrently can be done again. Happy to do this if it feels good to - the only reason I haven't is this wasn't a place where we had huge inefficiencies and it'd complicate the code a little - Got it working where a Safe on chain A owns an ICA on chain B These are the flows I tested: - sepolia is the "owner chain" - deployed a warp route between sepolia and alfajores. Changed the alfajores owner to an ICA owned by the sepolia deployer key. Tested transferring ownership back from this to the deployer. - Did the exact same as above, but now with the ICA being owned by a Safe on sepolia - Transferred ownership of Alfajores core contracts to and from the sepolia-deployer-owned ICA These are some raw notes that may be of interest of what I did https://www.notion.so/hyperlanexyz/ICA-playground-996cf28aea1649a18051afb8bb82acb2 This doesn't auto-deploy ICAs. An ICA is expected to have been deployed already, and then just configured in `owners.ts`. Check-deploy figures out that it's an ICA and does all the rest. This is fine imo in the short term as I only imagine us using ICAs on two chains (inevm and viction) for the time being. ### Drive-by changes <!-- Are there any minor or drive-by changes also included? --> ### Related issues <!-- - Fixes #[issue number here] --> ### Backward compatibility <!-- Are these changes backward compatible? Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling? Yes/No --> ### Testing <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests -->
4 months ago
COPY typescript/widgets/package.json ./typescript/widgets/
COPY typescript/github-proxy/package.json ./typescript/github-proxy/
COPY solidity/package.json ./solidity/
Helloworld kathy infra (#636) * Alpha7 * Checker * Move AbacusCoreChecker to deploy * Transfer ownership of Router in RouterDeployer (#546) * Transfer ownership of Router in RouterDeployer * Improve router config/deploy/init (#557) * Add default initialize to Router * Remove proxies from router framework Co-authored-by: yorhodes <yorke@useabacus.network> * Update router tests for initialization * Move libs to contracts dir * Publish alpha12 * Publish beta1 * Small adjustments * Fix lint * Add newlines to package json * Publish beta3 * Add hello world commands to infra * Make hello world artifacts consistent with infra * Add back helloworld after merge * Fix kathy scripts for 0.2.2 Hoist resolveJsonModule ts config to root * Run prettier * Cleanup tsconfig trailing commas * initial dockerfile * Update and cleanup Ethers.JS Dependencies (#510) - Update all deps to latest ethers.js and remove redundancies - Replace celo-ethers-provider dep with celo-ethers-wrapper * Update yarn.lock * rm old scripts * Override GCP secrets with env vars, some initial infra * log errors * Replace celo-ethers-wrapper with new celo-ethers-provider lib * Use recomemnded alfajores forno url * Helloworld-kathy tooling * Config stuff * monorepo docker image ci * Bump patch versions * Make infra private (for now) * Stash deployment artifacts * Fix prettier * Add ethereum partial deployment * Add helloworld git submodule * Ensure contracts are connected at end of deploy * Updates for hello world * Add submodule status config * Update submodule to branch * Add post-merge git hook for submodule init update * Try post checkout hook * Make post-checkout executable * Update submodule without yarn.lock * Add remote flag to git submodule update * Update submodule again * Adjust post checkout hook * Add submodules true to github actions checkout * Move helloworld mod to main * Fix github actions checkout submodules * Add submodules true for yarn build step * fix kathy * nit name * try rm submodule? * rm submodule bit in husky post-checkout * Try again * no need to try catch * buildin * Getting rid of unintentional changes * Clean up a lil * Config * fix build .... * better dockerfile * Cleanin * nearly there * one step closer * agh * Gracefully handle errors * Don't hardcode gas * Final schedules * rm accidental submodule * Add comments describing env var overriding * Cleaning up * Avoid race cond * 0.2.4 * PR comments * New kathy img * Allow CHAINS_TO_SKIP to be an empty str * upgrade kathy img * once every hour * once every 2 hrs actually Co-authored-by: nambrot <nambrot@googlemail.com> Co-authored-by: yorhodes <yorke@useabacus.network> Co-authored-by: J M Rossy <jm.rossy@gmail.com>
2 years ago
RUN yarn install && yarn cache clean
# Copy everything else
COPY tsconfig.json ./
COPY typescript ./typescript
COPY solidity ./solidity
RUN yarn build
ENV REGISTRY_URI="/hyperlane-registry"
ARG REGISTRY_COMMIT="main"
RUN git clone https://github.com/hyperlane-xyz/hyperlane-registry.git "$REGISTRY_URI" \
&& cd "$REGISTRY_URI" \
&& git checkout "$REGISTRY_COMMIT"