grandinetech / grandine

High performance Ethereum consensus client
GNU General Public License v3.0
154 stars 17 forks source link

Added Dockerfile and building instructions #15

Closed sauliusgrigaitis closed 6 months ago

sauliusgrigaitis commented 6 months ago

@barnabasbusa thanks for raising this on Discord. Could you check that this is sufficient? BTW, the client still misses a few artefacts (genesis etc.) to make successful build, but the Dockefile and the instruction are in the readme.

barnabasbusa commented 6 months ago
 => ERROR [builder 4/4] RUN cd grandine && ./scripts/build/release.sh                                                                                                                                                                                                                                        23.7s 
------                                                                                                                                                                                                                                                                                                             
 > [builder 4/4] RUN cd grandine && ./scripts/build/release.sh:                                                                                                                                                                                                                                                    
0.086 info: syncing channel updates for 'stable-2024-02-08-aarch64-unknown-linux-gnu'                                                                                                                                                                                                                              
2.403 info: latest update on 2024-02-08, rust version 1.76.0 (07dca489a 2024-02-04)                                                                                                                                                                                                                                
2.403 info: downloading component 'cargo'                                                                                                                                                                                                                                                                          
3.195 info: downloading component 'clippy'                                                                                                                                                                                                                                                                         
3.409 info: downloading component 'rust-std'
6.736 info: downloading component 'rustc'
14.71 info: downloading component 'rustfmt'
15.66 info: installing component 'cargo'
16.25 info: installing component 'clippy'
16.49 info: installing component 'rust-std'
18.43 info: installing component 'rustc'
22.44 info: installing component 'rustfmt'
22.73 error: failed to load manifest for workspace member `/grandine/ad_hoc_bench`
22.73 
22.73 Caused by:
22.73   failed to load manifest for dependency `fork_choice_control`
22.73 
22.73 Caused by:
22.73   failed to load manifest for dependency `eth2_libp2p`
22.73 
22.73 Caused by:
22.73   failed to read `/grandine/eth2_libp2p/Cargo.toml`
22.73 
22.73 Caused by:
22.73   No such file or directory (os error 2)
------
Dockerfile:4
--------------------
   2 |     RUN apt-get update && apt-get -y upgrade && apt-get install -y make libclang-dev
   3 |     COPY . grandine
   4 | >>> RUN cd grandine && ./scripts/build/release.sh
   5 |     
   6 |     FROM ubuntu:latest
--------------------
ERROR: failed to solve: process "/bin/sh -c cd grandine && ./scripts/build/release.sh" did not complete successfully: exit code: 101
sauliusgrigaitis commented 6 months ago

https://github.com/grandinetech/grandine?tab=readme-ov-file#build

git submodule update --init

But even with this we still need to fix genesis files. Should be fixed very soon.

sauliusgrigaitis commented 6 months ago

@barnabasbusa please check when you have some time.