Skip to content

Commit 85738ef

Browse files
committed
fix: testnet block 244 can't import
1 parent 7e23e95 commit 85738ef

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

scripts/docker/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ fi
196196
docker_build_args+=(
197197
--build-arg OA=$OA
198198
--build-arg VC=$VC
199+
--build-arg CHAIN_NETWORK=$network
199200
)
200201

201202
eval $which_build_proc

scripts/docker/node/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,21 @@ COPY pallets pallets
3131
COPY crates crates
3232
COPY standalone standalone
3333
COPY Cargo.toml Cargo.lock rustfmt.toml rust-toolchain.toml Makefile ./
34+
COPY scripts/wasm_overrides ./wasm_overrides
3435

3536
RUN make node
3637

3738
## We do not need the Rust toolchain to run the binary!
3839
FROM ubuntu:20.04 AS runtime
40+
ARG https_proxy
41+
ARG http_proxy
42+
ARG CHAIN_NETWORK
3943

4044
WORKDIR /opt/cess
4145

4246
COPY --from=builder /node/target/release/cess-node .
47+
COPY --from=builder /node/wasm_overrides/ .wasm_overrides
48+
RUN if [ "$CHAIN_NETWORK" = "testnet" ]; then ln -s ./.wasm_overrides/testnet ./wasms; else rm -rf .wasm_overrides; fi
4349
RUN apt-get update && apt-get install -y curl && apt-get clean -y && apt-get autoremove
4450

4551
HEALTHCHECK --interval=30s --timeout=5s --start-period=1800s --retries=10 \
1.88 MB
Binary file not shown.

0 commit comments

Comments
 (0)