Skip to content

Commit

Permalink
fix(ci): update Lotus in devnets
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs committed Sep 20, 2024
1 parent 6383ea5 commit d4f98bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scripts/devnet-curio/lotus.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --profile mini

ENV PATH="/root/.cargo/bin:${PATH}"

RUN git clone --depth 1 --branch v1.28.0-rc1 https://github.com/filecoin-project/lotus.git .
RUN git clone --depth 1 --branch v1.28.3 https://github.com/filecoin-project/lotus.git .

# https://github.com/Filecoin-project/filecoin-ffi?tab=readme-ov-file#building-from-source
RUN CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__" \
Expand All @@ -19,7 +19,7 @@ RUN CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__" \
FFI_USE_GPU="0" \
make 2k && strip lotus*

FROM ubuntu:22.04
FROM ubuntu:24.04

# Needed for the healthcheck
RUN apt-get update && apt-get install -y curl
Expand Down
2 changes: 1 addition & 1 deletion scripts/devnet/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function get_sync_height {
local port=$1
curl --silent -X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":2,"method":"Filecoin.ChainHead","param":"null"}' \
"http://127.0.0.1:${port}/rpc/v0" | jq '.result.Height'
"http://127.0.0.1:${port}/rpc/v1" | jq '.result.Height'
}

function get_f3_latest_cert_instance {
Expand Down
4 changes: 2 additions & 2 deletions scripts/devnet/lotus.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --profile mini

ENV PATH="/root/.cargo/bin:${PATH}"

RUN git clone --depth 1 --branch v1.28.0-rc1 https://github.com/filecoin-project/lotus.git .
RUN git clone --depth 1 --branch v1.28.3 https://github.com/filecoin-project/lotus.git .

# https://github.com/Filecoin-project/filecoin-ffi?tab=readme-ov-file#building-from-source
RUN CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__" \
Expand All @@ -19,7 +19,7 @@ RUN CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__" \
FFI_USE_GPU="0" \
make 2k && strip lotus*

FROM ubuntu:22.04
FROM ubuntu:24.04

# Needed for the healthcheck
RUN apt-get update && apt-get install -y curl
Expand Down
4 changes: 2 additions & 2 deletions scripts/devnet/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ docker compose up --build --force-recreate --detach
# RPC server is up. This checks if Forest's RPC endpoint is up.
function call_forest_chain_head {
curl --silent -X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":2,"method":"Filecoin.NetPeers","params":"null"}' \
"http://127.0.0.1:${FOREST_RPC_PORT}/rpc/v0"
--data '{"jsonrpc":"2.0","id":2,"method":"Filecoin.ChainHead","param":"null"}' \
"http://127.0.0.1:${FOREST_RPC_PORT}/rpc/v1"
}

until call_forest_chain_head; do
Expand Down

0 comments on commit d4f98bf

Please sign in to comment.