glifio / filecoin-docker

A Docker image for Lotus Filecoin nodes
Apache License 2.0
59 stars 29 forks source link

How to build hyperspace network? #81

Closed J1a-wei closed 1 year ago

J1a-wei commented 1 year ago

This repo is awesome. I know how to build Mainnet and Calibnet, but how should HypeSace build Docker image?

make -e NETWORK=hyperspace -e BRANCH=v1.22.0-rc6 build

Got these error log

rm -rf build/.filecoin-install build/.update-modules lotus lotus-miner lotus-worker lotus-shed lotus-gateway lotus-seed lotus-fountain lotus-bench lotus-stats lotus-pcr lotus-health lotus-wallet lotus-keygen testground tvx lotus-sim
make -C extern/filecoin-ffi/ clean
make[1]: Entering directory '/go/lotus/extern/filecoin-ffi'
go clean -cache -testcache
rm -rf filcrypto.h filcrypto.pc libfilcrypto.a .install-filcrypto
rm -f ./runner
cd rust && cargo clean && cd ..
info: syncing channel updates for 'nightly-2022-05-09-x86_64-unknown-linux-musl'
info: latest update on 2022-05-09, rust version 1.62.0-nightly (cb1219871 2022-05-08)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
make[1]: Leaving directory '/go/lotus/extern/filecoin-ffi'
make: *** No rule to make target 'hyperspace'.  Stop.
dumikau commented 1 year ago

Hi there! :) The network name for hyperspace is actually hyperspacenet.

Also, keep in mind that it's highly possible that hyperspacenet will come to an end around the end of May.

J1a-wei commented 1 year ago

Thank you for the reminder, but I tried to make hyperspacenet and it still failed.

cd rust && cargo clean && cd ..
info: syncing channel updates for 'nightly-2022-05-09-x86_64-unknown-linux-musl'
info: latest update on 2022-05-09, rust version 1.62.0-nightly (cb1219871 2022-05-08)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
make[1]: Leaving directory '/go/lotus/extern/filecoin-ffi'
make: *** No rule to make target 'hyperspacenet'.  Stop.
The command '/bin/sh -c cd lotus &&     make clean &&     make ${NETWORK} lotus-shed lotus-gateway &&     install -C ./lotus /usr/local/bin/lotus &&     install -C ./lotus-gateway /usr/local/bin/lotus-gateway &&     install -C ./lotus-shed /usr/local/bin/lotus-shed' returned a non-zero code: 2

So it is not supported to build the Hyperspace network? @dumikau

dumikau commented 1 year ago

Hmmm, depends on the branch or tag you're building from. Not all lotus branches support hyperspace. Afaik we use the ntwk/hyperspace branch to build hyperspace. The Makefile there supports the rule to build hyperspacenet

dumikau commented 1 year ago

The version there is 1.20.3 though. I'd suggest you to use calibnet instead. They're not really different at this point, and calibnet is still being updated on the regular basis.