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

WIP: rvalle/feature docker #437

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rvalle
Copy link

@rvalle rvalle commented Feb 7, 2022

Docker builder based on @insipx stale branch

I am currently testing it, but PR is WIP but in case anybody is interested to test it...

@rvalle
Copy link
Author

rvalle commented Feb 8, 2022

The container is working and indexing the polkadot blockchain.
However it might be good idea to provide a fully working docker-compose file to help people get started with archiving a substrate blockchain.

cd $PROJECT_ROOT

# Find the current version from Cargo.toml
VERSION=`grep "^version" ./Cargo.toml | egrep -o "([0-9\.]+)"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure if it's just me, but I have to change this to /bin/polkadot-archive/Cargo.toml to work -- there's no version in the root Cargo.toml since it's a workspace,

Copy link
Author

Choose a reason for hiding this comment

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

good point. Yes, I noticed it failing to collect any version.

@insipx
Copy link
Collaborator

insipx commented Feb 10, 2022

Going to test this out later!

@rvalle
Copy link
Author

rvalle commented Feb 11, 2022

As discussed, it would be nice that this Dockerfile generates the WASM modules with tracing required for substrate-archive be more capable to generate events.

Working on it.

@rvalle
Copy link
Author

rvalle commented Feb 15, 2022

Discussed on the Chat and seems like automatic compilation of past WASM modules in batch mode is not feasible due to compiler errors :(

I think I will try to use a builder Dockerfile to assist in the creation of new WASM modules while also just copy them for distribution into the node-archive docker.

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