-
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 branch 'unique-polkadot-1.14' into feature/foreign-assets-reset…
…-location
- Loading branch information
Showing
133 changed files
with
12,699 additions
and
7,880 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
set -e | ||
BDK_DIR=$(dirname $(readlink -f "$0")) | ||
RUST_LOG=info baedeker --spec=docker -J$BDK_DIR/vendor/ --generator=docker_compose=$BDK_DIR/.bdk-env --generator=docker_compose_discover=$BDK_DIR/.bdk-env/discover.env --secret=file=$BDK_DIR/.bdk-env/secret --tla-str=relay_spec=rococo-local --input-modules='lib:baedeker-library/ops/nginx.libsonnet' --input-modules='lib:baedeker-library/ops/devtools.libsonnet' --tla-str=repoDir=$(realpath $BDK_DIR/..) $@ $BDK_DIR/rewrites.jsonnet | ||
RUST_LOG=info baedeker --spec=docker -J$BDK_DIR/vendor/ --generator=docker_compose=$BDK_DIR/.bdk-env --generator=docker_compose_discover=$BDK_DIR/.bdk-env/discover.env --secret=file=$BDK_DIR/.bdk-env/secret --tla-str=relay_spec=westend-local --tla-code=assethub_spec="import 'assethub-spec.json'" --input-modules='lib:baedeker-library/ops/nginx.libsonnet' --input-modules='lib:baedeker-library/ops/devtools.libsonnet' --tla-str=repoDir=$(realpath $BDK_DIR/..) $@ $BDK_DIR/rewrites.jsonnet | ||
cd $BDK_DIR/.bdk-env | ||
docker compose up -d --wait --remove-orphans |
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 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 |
---|---|---|
@@ -1,19 +1,10 @@ | ||
FROM uniquenetwork/services:latest | ||
FROM uniquenetwork/services:base-stable-1.77.0 | ||
|
||
ARG NETWORK | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Etc/UTC | ||
ENV NETWORK=$NETWORK | ||
ENV CARGO_HOME="/cargo-home" | ||
ENV PATH="/cargo-home/bin:$PATH" | ||
|
||
RUN mkdir /dev_chain | ||
COPY . /dev_chain | ||
|
||
WORKDIR /dev_chain | ||
COPY . /workdir | ||
WORKDIR /workdir | ||
|
||
RUN cargo build --profile integration-tests --features=${NETWORK}-runtime,fast-inflation | ||
RUN echo "$NETWORK" | ||
|
||
CMD cargo run --profile integration-tests --features=${NETWORK}-runtime,fast-inflation -- --dev -linfo --rpc-cors=all --unsafe-rpc-external |
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 |
---|---|---|
@@ -1,14 +1,9 @@ | ||
FROM uniquenetwork/services:latest | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV CARGO_HOME="/cargo-home" | ||
ENV PATH="/cargo-home/bin:$PATH" | ||
FROM uniquenetwork/services:base-stable-1.77.0 | ||
|
||
ARG NETWORK | ||
|
||
RUN mkdir /dev_chain | ||
COPY . /dev_chain | ||
COPY . /workdir | ||
|
||
WORKDIR /dev_chain | ||
WORKDIR /workdir | ||
|
||
CMD cargo test --features=limit-testing,tests --workspace |
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,38 @@ | ||
# ===== 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 | ||
|
||
RUN cargo install --git https://github.com/paritytech/try-runtime-cli --tag v0.8.0 --locked | ||
|
||
RUN mkdir /unique_parachain | ||
WORKDIR /unique_parachain | ||
|
||
# ===== BUILD ====== | ||
FROM rust-builder AS builder-unique | ||
|
||
ARG NETWORK | ||
ARG REPLICA_FROM | ||
|
||
ENV NETWORK=${NETWORK} | ||
ENV REPLICA_FROM=${REPLICA_FROM} | ||
|
||
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 --profile=production | ||
|
||
CMD try-runtime --runtime target/production/wbuild/${NETWORK}-runtime/${NETWORK}_runtime.compact.compressed.wasm on-runtime-upgrade --blocktime 6000 --checks all live --uri ${REPLICA_FROM} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.