Skip to content

Commit

Permalink
feat: enable ARM64 build and push for Taiko Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
johntaiko committed Sep 5, 2024
1 parent 0de96ab commit 358923a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,11 @@ define taiko_docker_build_push
# cp $(BUILD_PATH)/aarch64-unknown-linux-gnu/$(PROFILE)/taiko-reth $(BIN_DIR)/arm64/taiko-reth

docker buildx build --file ./DockerfileTaiko.cross . \
#--platform linux/amd64,linux/arm64 \
--platform linux/amd64 \
--platform linux/amd64,linux/arm64 \
--tag $(TAIKO_DOCKER_IMAGE_NAME):$(1) \
--tag $(TAIKO_DOCKER_IMAGE_NAME):$(2) \
--provenance=false \
# --push
--push
endef

##@ Other
Expand Down
4 changes: 2 additions & 2 deletions examples/rpc-db/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use reth::{
blockchain_tree::noop::NoopBlockchainTree, providers::test_utils::TestCanonStateSubscriptions,
tasks::TokioTaskExecutor,
};
use reth_node_ethereum::{EthEvmConfig, EthExecutorProvider};
use reth_node_ethereum::{EthEngineTypes, EthEvmConfig, EthExecutorProvider};
use std::{path::Path, sync::Arc};

// Custom rpc extension
Expand All @@ -60,7 +60,7 @@ async fn main() -> eyre::Result<()> {
// disk and don't handle new blocks/live sync etc, which is done by the blockchain tree.
let provider = BlockchainProvider::new(factory, Arc::new(NoopBlockchainTree::default()))?;

let rpc_builder = RpcModuleBuilder::default()
let rpc_builder = RpcModuleBuilder::<_, _, _, _, _, _, _, EthEngineTypes>::default()
.with_provider(provider.clone())
// Rest is just noops that do nothing
.with_noop_pool()
Expand Down

0 comments on commit 358923a

Please sign in to comment.