Skip to content

Commit 3af4d3d

Browse files
committed
deprecation notice
1 parent 03ebe88 commit 3af4d3d

File tree

8 files changed

+35
-10
lines changed

8 files changed

+35
-10
lines changed

cmd/boostd/run.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ var runCmd = &cli.Command{
4444
Name: "no-metrics",
4545
Usage: "stops emitting information about the node as metrics (param is used by tests)",
4646
},
47+
&cli.BoolFlag{
48+
Name: "deprecated",
49+
Usage: "Boost is now deprecated. Please migrate to Curio instead. See https://docs.curiostorage.org/ and https://docs.curiostorage.org/curio-market/migrating-from-boost for more information.",
50+
Required: true,
51+
Value: false,
52+
},
4753
},
4854
Action: func(cctx *cli.Context) error {
4955
if cctx.Bool("pprof") {

docker/devnet/Dockerfile.source

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## docker will invoke this file from ../../.. dir in order to access the code
33
#########################################################################################
44
ARG LOTUS_TEST_IMAGE=filecoin/lotus-test:latest
5-
FROM ${LOTUS_TEST_IMAGE} as lotus-test
5+
FROM ${LOTUS_TEST_IMAGE} AS lotus-test
66
#########################################################################################
77
FROM node:20.11.1-alpine3.19 AS react-builder
88

@@ -13,7 +13,7 @@ COPY gql /src/gql
1313
RUN npm_config_legacy_peer_deps=yes npm ci --no-audit --prefix react&& \
1414
npm run --prefix react build
1515
#########################################################################################
16-
FROM golang:1.23-bullseye as builder
16+
FROM golang:1.23-bullseye AS builder
1717

1818
RUN apt update && apt install -y \
1919
build-essential \
@@ -78,7 +78,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
7878
--mount=type=cache,target=/go/pkg/mod \
7979
make debug
8080
#########################################################################################
81-
FROM ubuntu:22.04 as runner
81+
FROM ubuntu:22.04 AS runner
8282

8383
RUN apt update && apt install -y \
8484
curl \
@@ -96,7 +96,7 @@ COPY --from=lotus-test /usr/local/bin/lotus-shed /usr/local/bin/
9696
## Test lotus starts
9797
RUN lotus -v && lotus-miner -v
9898
#########################################################################################
99-
FROM runner as boost-dev
99+
FROM runner AS boost-dev
100100

101101
ARG BUILD_VERSION=0.1
102102

@@ -128,7 +128,7 @@ RUN boost -v
128128

129129
ENTRYPOINT ["./entrypoint.sh"]
130130
#########################################################################################
131-
FROM runner as booster-http-dev
131+
FROM runner AS booster-http-dev
132132

133133
ARG BUILD_VERSION=0.1
134134

@@ -150,7 +150,7 @@ COPY docker/devnet/booster-http/entrypoint.sh /app/
150150

151151
ENTRYPOINT ["./entrypoint.sh"]
152152
#########################################################################################
153-
FROM runner as booster-bitswap-dev
153+
FROM runner AS booster-bitswap-dev
154154

155155
ARG BUILD_VERSION=0.1
156156

docker/devnet/boost/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ fi
118118

119119
echo Starting LID service and boost in dev mode...
120120
trap 'kill %1' SIGINT
121-
exec boostd -vv run --nosync=true &>> $BOOST_PATH/boostd.log
121+
exec boostd -vv run --nosync=true --deprecated=true &>> $BOOST_PATH/boostd.log

docker/devnet/lotus/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ENV LOTUS_SKIP_GENESIS_CHECK=_yes_
2020
ENV GENESIS_PATH=/var/lib/genesis
2121
ENV SECTOR_SIZE=8388608
2222
ENV LOTUS_FEVM_ENABLEETHRPC=true
23+
ENV LOTUS_CHAININDEXER_ENABLEINDEXER=true
2324

2425
VOLUME /var/tmp/filecoin-proof-parameters
2526
VOLUME /var/lib/genesis

react/src/App.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
} from "./LID";
2828
import {RetrievalLogsPage} from "./RetrievalLogs";
2929
import {RetrievalLogDetail} from "./RetrievalLogDetail";
30-
import {MonitoringAlert} from "./MonitoringAlert";
30+
import {DeprecationAlert, MonitoringAlert} from "./MonitoringAlert";
3131
import {IpniAdDetail, IpniAdEntries, IpniPage} from "./Ipni";
3232
import {DirectDealsPage} from "./DirectDeals";
3333
import {DirectDealDetail} from "./DirectDealDetail";
@@ -43,7 +43,8 @@ function App(props) {
4343
<Menu />
4444
<td className="main-content">
4545
<div className="page-content">
46-
<MonitoringAlert />
46+
<DeprecationAlert />
47+
{/*<MonitoringAlert />*/}
4748
<MinerAddress />
4849
<Epoch />
4950
<Banner />

react/src/Banner.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from "react";
22
import './Banner.css'
3+
import warnImg from "./bootstrap-icons/icons/exclamation-circle.svg";
4+
import {Link} from "react-router-dom";
35

46
export function ShowBanner(msg, isError) {
57
const banner = document.getElementById('banner')

react/src/MonitoringAlert.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
display: inline-block;
1010
padding: 1em;
1111
border-radius: 0.2em;
12-
color: #444;
12+
color: #bd0e0e;
1313
background-color: #fff;
1414
}
1515

react/src/MonitoringAlert.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,18 @@ export function MonitoringAlert(props) {
2929
</div>
3030
)
3131
}
32+
33+
export function DeprecationAlert(props) {
34+
return (
35+
<div id="monitoring-alert" className="showing">
36+
<div className="message">
37+
<img src={warnImg} alt={"warning"}/>
38+
<span>
39+
Boost is deprecated and will no longer be supported in the future. Please{' '}
40+
<a href="https://docs.curiostorage.org/curio-market/migrating-from-boost" target="_blank" rel="noopener noreferrer">migrate</a> to{' '}
41+
<a href="https://docs.curiostorage.org" target="_blank" rel="noopener noreferrer">Curio</a>.
42+
</span>
43+
</div>
44+
</div>
45+
)
46+
}

0 commit comments

Comments
 (0)