-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #922 from UniqueNetwork/build/merge-941055-into-ma…
…ster Merge release 941055 into master
- Loading branch information
Showing
138 changed files
with
5,891 additions
and
3,676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# ===== Rust builder ===== | ||
FROM ubuntu:22.04 as rust-builder | ||
LABEL maintainer="Unique.Network" | ||
|
||
ENV CARGO_HOME="/cargo-home" | ||
ENV PATH="/cargo-home/bin:$PATH" | ||
ENV TZ=UTC | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y curl cmake pkg-config libssl-dev git clang llvm libudev-dev protobuf-compiler && \ | ||
apt-get clean && \ | ||
rm -r /var/lib/apt/lists/* | ||
|
||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none | ||
|
||
RUN rustup toolchain uninstall $(rustup toolchain list) && \ | ||
rustup toolchain install {{ RUST_TOOLCHAIN }} && \ | ||
rustup default {{ RUST_TOOLCHAIN }} && \ | ||
rustup target list --installed && \ | ||
rustup show | ||
RUN rustup target add wasm32-unknown-unknown --toolchain {{ RUST_TOOLCHAIN }} | ||
|
||
RUN mkdir /unique_parachain | ||
WORKDIR /unique_parachain | ||
|
||
# ===== BUILD CHAINQL ===== | ||
FROM rust-builder as builder-chainql-bin | ||
|
||
RUN mkdir chainql | ||
WORKDIR /chainql | ||
|
||
RUN git clone -b {{ CHAINQL }} --depth 1 https://github.com/UniqueNetwork/chainql.git . && \ | ||
cargo build --release | ||
|
||
# ===== RUN ====== | ||
|
||
FROM ubuntu:22.04 as builder-chainql | ||
|
||
COPY --from=builder-chainql-bin /chainql/target/release/chainql /chainql/target/release/chainql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# ===== Rust builder ===== | ||
FROM uniquenetwork/services:latest as rust-builder | ||
|
||
ENV RUST_TOOLCHAIN $RUST_TOOLCHAIN | ||
ENV CARGO_HOME="/cargo-home" | ||
ENV PATH="/cargo-home/bin:$PATH" | ||
ENV TZ=UTC | ||
|
||
RUN rustup toolchain uninstall $(rustup toolchain list) && \ | ||
rustup toolchain install {{ RUST_TOOLCHAIN }} && \ | ||
rustup default {{ RUST_TOOLCHAIN }} && \ | ||
rustup target list --installed && \ | ||
rustup show | ||
RUN rustup target add wasm32-unknown-unknown --toolchain {{ RUST_TOOLCHAIN }} | ||
|
||
RUN mkdir /unique_parachain | ||
WORKDIR /unique_parachain | ||
|
||
|
||
# ===== BUILD ====== | ||
FROM rust-builder as builder-unique | ||
|
||
ARG PROFILE=release | ||
|
||
COPY . /unique_parachain | ||
WORKDIR /unique_parachain | ||
|
||
RUN echo "Requested features: {{ NETWORK }}-runtime\n" && \ | ||
echo "Fork from: {{ REPLICA_FROM }}\n" && \ | ||
cargo build --features=try-runtime,{{ NETWORK }}-runtime --release | ||
|
||
CMD cargo run --release --features {{ NETWORK }}-runtime,try-runtime -- try-runtime --runtime target/release/wbuild/{{ WASM_NAME }}-runtime/{{ WASM_NAME }}_runtime.compact.compressed.wasm -lruntime=debug -ltry-runtime::cli=debug on-runtime-upgrade --checks live --uri {{ REPLICA_FROM }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3.5" | ||
|
||
services: | ||
forkless-data: | ||
image: uniquenetwork/ci-forkless-data-local:{{ NETWORK }}-{{ BUILD_TAG }} | ||
container_name: forkless-data | ||
expose: | ||
- 9944 | ||
- 9933 | ||
ports: | ||
- 127.0.0.1:9944:9944 | ||
- 127.0.0.1:9933:9933 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3.5" | ||
|
||
services: | ||
forkless-nodata: | ||
image: uniquenetwork/ci-forkless-nodata-local:{{ NETWORK }}-{{ BUILD_TAG }} | ||
container_name: forkless-nodata | ||
expose: | ||
- 9944 | ||
- 9933 | ||
ports: | ||
- 127.0.0.1:9944:9944 | ||
- 127.0.0.1:9933:9933 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.