git.delta.rocks / unique-network / refs/commits / e358d8144394

difftreelog

source

.docker/Dockerfile-try-runtime.j21.1 KiBsourcehistory
1# ===== Rust builder =====2FROM ubuntu:22.04 as rust-builder3LABEL maintainer="Unique.Network"45ENV CARGO_HOME="/cargo-home"6ENV PATH="/cargo-home/bin:$PATH"7ENV TZ=UTC8RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone910RUN apt-get update && \11    apt-get install -y curl cmake pkg-config libssl-dev git clang llvm libudev-dev protobuf-compiler && \12    apt-get clean && \13    rm -r /var/lib/apt/lists/*1415RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none1617RUN mkdir /unique_parachain18WORKDIR /unique_parachain192021# ===== BUILD ======22FROM rust-builder as builder-unique2324ARG PROFILE=release2526COPY . /unique_parachain27WORKDIR /unique_parachain2829RUN echo "Requested features: {{ NETWORK }}-runtime\n" && \30    echo "Fork from: {{ REPLICA_FROM }}\n" && \31    cargo build --features=try-runtime,{{ NETWORK }}-runtime --release3233CMD cargo run --release --features {{ NETWORK }}-runtime,try-runtime -- try-runtime --runtime target/release/wbuild/{{ NETWORK }}-runtime/{{ NETWORK }}_runtime.compact.compressed.wasm -lruntime=debug -ltry-runtime::cli=debug on-runtime-upgrade --checks live --uri {{ REPLICA_FROM }}