Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dockerfile for deploying contracts #755

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

samlaf
Copy link
Contributor

@samlaf samlaf commented Sep 9, 2024

Why are these changes needed?

Need an image for deploying contracts as part of my kurtosis inabox project. Generally think this is something we should have as well. Every time we deploy, we should create an image tagged with the release name/version number that contains the exact contracts that were deployed. This way anyone that wants to work locally can use that image to deploy to anvil or some local devnet and reproduce the contracts at that point.

Not set on the exact dockerfile; open to improvements. Also think we should have all of our ad-hoc docker images in the bake file in #754.

Published this image at https://github.com/orgs/Layr-Labs/packages/container/package/eigenda%2Fcontract-deployer. Would a kind admin soul please link that image with the eigenda repo for easier discovery. cc @anupsv

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@samlaf samlaf requested a review from 0x0aa0 September 9, 2024 00:27
Needed by kurtosis devnet because of path overwriting issues when in script/ folder directly
@@ -25,7 +25,7 @@ import "forge-std/StdJson.sol";
// forge script script/Deployer.s.sol:SetupEigenDA --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast -vvvv
contract SetupEigenDA is EigenDADeployer, EigenLayerUtils {

string deployConfigPath = "script/eigenda_deploy_config.json";
string deployConfigPath = "script/input/eigenda_deploy_config.json";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to change this path to make the kurtosis devnet work (otherwise uploading the config would overwrite the rest of the directory.

I think I changed everywhere else that depended on this but please double check. Also I feel like we might want to have this path as an arg to the run function instead of hardcoded?

@samlaf samlaf merged commit e839473 into master Sep 11, 2024
9 checks passed
@samlaf samlaf deleted the feat-contract-deployer-docker-image branch September 11, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants