diff --git a/scripts/docker/build.sh b/scripts/docker/build.sh index 10504bbf..a36f4cdb 100755 --- a/scripts/docker/build.sh +++ b/scripts/docker/build.sh @@ -196,6 +196,7 @@ fi docker_build_args+=( --build-arg OA=$OA --build-arg VC=$VC + --build-arg CHAIN_NETWORK=$network ) eval $which_build_proc diff --git a/scripts/docker/node/Dockerfile b/scripts/docker/node/Dockerfile index 79251387..d60e86ed 100644 --- a/scripts/docker/node/Dockerfile +++ b/scripts/docker/node/Dockerfile @@ -31,15 +31,21 @@ COPY pallets pallets COPY crates crates COPY standalone standalone COPY Cargo.toml Cargo.lock rustfmt.toml rust-toolchain.toml Makefile ./ +COPY scripts/wasm_overrides ./wasm_overrides RUN make node ## We do not need the Rust toolchain to run the binary! FROM ubuntu:20.04 AS runtime +ARG https_proxy +ARG http_proxy +ARG CHAIN_NETWORK WORKDIR /opt/cess COPY --from=builder /node/target/release/cess-node . +COPY --from=builder /node/wasm_overrides/ .wasm_overrides +RUN if [ "$CHAIN_NETWORK" = "testnet" ]; then ln -s ./.wasm_overrides/testnet ./wasms; else rm -rf .wasm_overrides; fi RUN apt-get update && apt-get install -y curl && apt-get clean -y && apt-get autoremove HEALTHCHECK --interval=30s --timeout=5s --start-period=1800s --retries=10 \ diff --git a/scripts/wasm_overrides/testnet/spec_100.wasm b/scripts/wasm_overrides/testnet/spec_100.wasm new file mode 100644 index 00000000..89fa0394 Binary files /dev/null and b/scripts/wasm_overrides/testnet/spec_100.wasm differ