-
Notifications
You must be signed in to change notification settings - Fork 94
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
dev: update Madara genesis loading #484
Changes from 2 commits
600b870
cb37f1f
8a47a42
fec7f69
ba37efa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# TODO: Use official madara image when https://github.com/keep-starknet-strange/madara/issues/982 is closed | ||
# FROM ghcr.io/keep-starknet-strange/madara:v0.1.0.experimental.3 as madara | ||
FROM fredtupas/madara as madara | ||
FROM fredtupas/madara-fixed as madara | ||
|
||
FROM ghcr.io/kkrt-labs/kakarot-rpc/node:latest | ||
|
||
|
@@ -16,14 +16,14 @@ COPY --from=madara /madara-bin /madara-bin | |
|
||
# Madara Path | ||
ENV MADARA_PATH=/root/.madara | ||
ENV MADARA_CONFIG_PATH=${MADARA_PATH}/configs | ||
ENV KAKAROT_CONTRACTS_PATH=${MADARA_PATH}/cairo-contracts/kakarot | ||
ENV MADARA_GENESIS_ASSETS_PATH=${MADARA_PATH}/configs/genesis-assets | ||
ENV KAKAROT_CONTRACTS_PATH=${MADARA_GENESIS_ASSETS_PATH}/kakarot | ||
|
||
# Download Madara genesis config to source path | ||
RUN svn export https://github.com/keep-starknet-strange/madara/trunk/configs ${MADARA_CONFIG_PATH} | ||
RUN svn export https://github.com/d-roak/madara/branches/feat/configs-index/configs/genesis-assets ${MADARA_GENESIS_ASSETS_PATH} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: Update to Madara's main branch |
||
|
||
# Copy combined genesis.json to source path | ||
COPY .hive/genesis.json ${MADARA_CONFIG_PATH}/genesis-assets/genesis.json | ||
COPY .hive/genesis.json ${MADARA_GENESIS_ASSETS_PATH}/genesis.json | ||
|
||
# Copy compiled Kakarot contracts to destination path of compiled contracts | ||
COPY ./lib/kakarot/build ${KAKAROT_CONTRACTS_PATH} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ export PROXY_ACCOUNT_CLASS_HASH=$(starkli class-hash ${MADARA_PATH}/cairo-contra | |
--rpc-external \ | ||
--rpc-methods=unsafe \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. u can remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha, thanks will remove this! |
||
--rpc-cors=all \ | ||
--disable-madara-configs \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we're copying all the genesis assets into the local Madara path, we need to add this flag to use them |
||
--tmp \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are u setting a tmp path for the db? since it's a docker container, u can just let it go to the default madara-path There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Forgot to remove this, had to add this flag before in the fork because it was initializing but not including the Kakarot contracts for some reason and it worked when we added it |
||
--dev & | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: will update pr to official image once this pr in Madara is merged keep-starknet-strange/madara#1018