Skip to content

Commit

Permalink
Merge pull request #906 from UniqueNetwork/release-v939054
Browse files Browse the repository at this point in the history
Release v939054
  • Loading branch information
kozyrevdev authored Apr 14, 2023
2 parents 86290e7 + 0cae8a7 commit 87d25f4
Show file tree
Hide file tree
Showing 247 changed files with 11,308 additions and 7,505 deletions.
6 changes: 3 additions & 3 deletions .docker/Dockerfile-acala.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===== Rust builder =====
FROM ubuntu:20.04 as rust-builder
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ENV CARGO_HOME="/cargo-home"
Expand Down Expand Up @@ -36,6 +36,6 @@ RUN git clone -b {{ ACALA_BUILD_BRANCH }} --depth 1 https://github.com/AcalaNetw

# ===== BIN ======

FROM ubuntu:20.04 as builder-acala
FROM ubuntu:22.04 as builder-acala

COPY --from=builder-acala-bin /unique_parachain/Acala/target/production/acala /unique_parachain/Acala/target/production/acala
COPY --from=builder-acala-bin /unique_parachain/Acala/target/production/acala /unique_parachain/acala/target/production/acala
40 changes: 40 additions & 0 deletions .docker/Dockerfile-astar.j2
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 ACALA =====
FROM rust-builder as builder-astar-bin

WORKDIR /unique_parachain

RUN git clone --recurse-submodules -b {{ ASTAR_BUILD_BRANCH }} --depth 1 https://github.com/AstarNetwork/Astar.git && \
cd Astar && \
cargo build --release

# ===== BIN ======

FROM ubuntu:22.04 as builder-astar

COPY --from=builder-astar-bin /unique_parachain/Astar/target/release/astar-collator /unique_parachain/astar/target/release/astar
2 changes: 1 addition & 1 deletion .docker/Dockerfile-collators
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN git clone -b $BRANCH https://github.com/UniqueNetwork/unique-chain.git && \

# ===== RUN ======

FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -y update && \
apt-get -y install curl git && \
Expand Down
4 changes: 2 additions & 2 deletions .docker/Dockerfile-cumulus.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===== Rust builder =====
FROM ubuntu:20.04 as rust-builder
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ENV CARGO_HOME="/cargo-home"
Expand Down Expand Up @@ -35,6 +35,6 @@ RUN git clone -b {{ CUMULUS_BUILD_BRANCH }} --depth 1 https://github.com/parityt

# ===== BIN ======

FROM ubuntu:20.04 as builder-cumulus
FROM ubuntu:22.04 as builder-cumulus

COPY --from=builder-cumulus-bin /unique_parachain/cumulus/target/release/polkadot-parachain /unique_parachain/cumulus/target/release/polkadot-parachain
4 changes: 2 additions & 2 deletions .docker/Dockerfile-moonbeam.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===== Rust builder =====
FROM ubuntu:20.04 as rust-builder
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ENV CARGO_HOME="/cargo-home"
Expand Down Expand Up @@ -36,6 +36,6 @@ RUN git clone -b {{ MOONBEAM_BUILD_BRANCH }} --depth 1 https://github.com/PureSt

# ===== BIN ======

FROM ubuntu:20.04 as builder-moonbeam
FROM ubuntu:22.04 as builder-moonbeam

COPY --from=builder-moonbeam-bin /unique_parachain/moonbeam/target/release/moonbeam /unique_parachain/moonbeam/target/release/moonbeam
2 changes: 1 addition & 1 deletion .docker/Dockerfile-parachain
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN git clone https://github.com/UniqueNetwork/unique-chain.git -b $BRANCH . &&

# ===== RUN ======

FROM ubuntu:20.04
FROM ubuntu:22.04

ARG POLKADOT_LAUNCH_BRANCH=

Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile-parachain-node-only
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN cargo build --features=${NETWORK}-runtime --$PROFILE

# ===== RUN ======

FROM ubuntu:20.04
FROM ubuntu:22.04

ARG NETWORK
ARG POLKADOT_LAUNCH_BRANCH
Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile-parachain-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ WORKDIR /unique_parachain
RUN cargo build --features=${NETWORK}-runtime --$PROFILE

# ===== RUN ======
FROM ubuntu:20.04
FROM ubuntu:22.04

ARG NETWORK
ARG POLKADOT_LAUNCH_BRANCH
Expand Down
2 changes: 1 addition & 1 deletion .docker/Dockerfile-parachain-upgrade-data
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ WORKDIR /unique_parachain
RUN cargo build --features=${NETWORK}-runtime --$PROFILE

# ===== RUN ======
FROM ubuntu:20.04
FROM ubuntu:22.04

ARG NETWORK
ARG REPLICA_FROM
Expand Down
4 changes: 2 additions & 2 deletions .docker/Dockerfile-polkadot.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===== Rust builder =====
FROM ubuntu:20.04 as rust-builder
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ENV CARGO_HOME="/cargo-home"
Expand Down Expand Up @@ -35,6 +35,6 @@ RUN git clone -b {{ POLKADOT_BUILD_BRANCH }} --depth 1 https://github.com/parity

# ===== BIN ======

FROM ubuntu:20.04 as builder-polkadot
FROM ubuntu:22.04 as builder-polkadot

COPY --from=builder-polkadot-bin /unique_parachain/polkadot/target/release/polkadot /unique_parachain/polkadot/target/release/polkadot
2 changes: 1 addition & 1 deletion .docker/Dockerfile-testnet.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN git clone -b {{ BRANCH }} https://github.com/UniqueNetwork/unique-chain.git

# ===== RUN ======

FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -y update && \
apt-get -y install curl git && \
Expand Down
6 changes: 5 additions & 1 deletion .docker/Dockerfile-xcm.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ WORKDIR /unique_parachain

COPY ./xcm-config/launch-config-xcm-{{ NETWORK }}.json ./launch-config-xcm-{{ NETWORK }}.json
COPY ./xcm-config/5validators.jsonnet ./5validators.jsonnet
COPY ./xcm-config/6validators.jsonnet ./6validators.jsonnet

RUN git clone -b {{ BRANCH }} https://github.com/UniqueNetwork/unique-chain.git && \
cd unique-chain && \
cargo build --features={{ NETWORK }}-runtime --$PROFILE

# ===== RUN ======

FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -y update && \
apt-get -y install curl git && \
Expand All @@ -50,13 +51,15 @@ RUN export NVM_DIR="$HOME/.nvm" && \

COPY --from=builder-unique /unique_parachain/launch-config-xcm-{{ NETWORK }}.json /polkadot-launch/
COPY --from=builder-unique /unique_parachain/5validators.jsonnet /polkadot-launch/5validators.jsonnet
COPY --from=builder-unique /unique_parachain/6validators.jsonnet /polkadot-launch/6validators.jsonnet

COPY --from=builder-unique /unique_parachain/unique-chain/target/release/unique-collator /unique-chain/target/release/

COPY --from=uniquenetwork/builder-polkadot:{{ POLKADOT_BUILD_BRANCH }} /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
COPY --from=uniquenetwork/builder-moonbeam:{{ MOONBEAM_BUILD_BRANCH }} /unique_parachain/moonbeam/target/release/moonbeam /moonbeam/target/release/
COPY --from=uniquenetwork/builder-cumulus:{{ CUMULUS_BUILD_BRANCH }} /unique_parachain/cumulus/target/release/polkadot-parachain /cumulus/target/release/cumulus
COPY --from=uniquenetwork/builder-acala:{{ ACALA_BUILD_BRANCH }} /unique_parachain/Acala/target/production/acala /acala/target/release/
COPY --from=uniquenetwork/builder-astar:{{ ASTAR_BUILD_BRANCH }} /unique_parachain/astar/target/release/astar /astar/target/release/
COPY --from=uniquenetwork/builder-chainql:latest /chainql/target/release/chainql /chainql/target/release/

EXPOSE 9844
Expand All @@ -65,6 +68,7 @@ EXPOSE 9944
EXPOSE 9946
EXPOSE 9947
EXPOSE 9948
EXPOSE 9949

CMD export NVM_DIR="$HOME/.nvm" PATH="$PATH:/chainql/target/release" && \
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
Expand Down
4 changes: 2 additions & 2 deletions .docker/additional/Dockerfile-polkadot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===== Rust builder =====
FROM ubuntu:20.04 as rust-builder
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ARG RUST_TOOLCHAIN=nightly-2022-10-09
Expand Down Expand Up @@ -39,7 +39,7 @@ RUN git clone -b $POLKADOT_BUILD_BRANCH --depth 1 https://github.com/paritytech/

# ===== BIN ======

FROM ubuntu:20.04 as builder-polkadot
FROM ubuntu:22.04 as builder-polkadot

COPY --from=builder-polkadot-bin /unique_parachain/polkadot/target/release/polkadot /unique_parachain/polkadot/target/release/polkadot
COPY --from=builder-polkadot-bin /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
9 changes: 5 additions & 4 deletions .docker/additional/xcm-rococo/Dockerfile-xcm-opal-rococo.temp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM uniquenetwork/builder-polkadot:{{ POLKADOT_BUILD_BRANCH }} as polkadot
FROM uniquenetwork/builder-cumulus:{{ STATEMINE_BUILD_BRANCH }} as cumulus
FROM uniquenetwork/builder-polkadot:{{ UNIQUEWEST_MAINNET_BRANCH }} as polkadot
FROM uniquenetwork/builder-cumulus:{{ WESTMINT_BUILD_BRANCH }} as cumulus

# ===== Rust builder =====
FROM ubuntu:20.04 as rust-builder
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ENV CARGO_HOME="/cargo-home"
Expand Down Expand Up @@ -41,7 +41,7 @@ RUN git clone -b {{ BRANCH }} https://github.com/UniqueNetwork/unique-chain.git
cargo build --features=opal-runtime --$PROFILE

# ===== RUN ======
FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -y update && \
apt-get -y install curl git && \
Expand All @@ -60,6 +60,7 @@ RUN export NVM_DIR="$HOME/.nvm" && \
yarn install

COPY --from=builder-unique /unique_parachain/.docker/additional/xcm-rococo/launch-config-xcm-opal-rococo.json /polkadot-launch/launch-config.json
COPY --from=builder-unique /unique_parachain/.docker/xcm-config/5validators.jsonnet /polkadot-launch/5validators.jsonnet

COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/
COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
Expand Down
11 changes: 7 additions & 4 deletions .docker/additional/xcm-rococo/Dockerfile-xcm-quartz-rococo.temp
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM uniquenetwork/builder-polkadot:{{ POLKADOT_BUILD_BRANCH }} as polkadot
FROM uniquenetwork/builder-polkadot:{{ KUSAMA_MAINNET_BRANCH }} as polkadot
FROM uniquenetwork/builder-moonbeam:{{ MOONRIVER_BUILD_BRANCH }} as moonbeam
FROM uniquenetwork/builder-cumulus:{{ STATEMINE_BUILD_BRANCH }} as cumulus
FROM uniquenetwork/builder-acala:{{ KARURA_BUILD_BRANCH }} as acala
FROM uniquenetwork/builder-astar:{{ SHIDEN_BUILD_BRANCH }} as astar

# ===== Rust builder =====
FROM ubuntu:20.04 as rust-builder
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ENV CARGO_HOME="/cargo-home"
Expand Down Expand Up @@ -43,7 +44,7 @@ RUN git clone -b {{ BRANCH }} https://github.com/UniqueNetwork/unique-chain.git
cargo build --features=quartz-runtime --$PROFILE

# ===== RUN ======
FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -y update && \
apt-get -y install curl git && \
Expand All @@ -62,20 +63,22 @@ RUN export NVM_DIR="$HOME/.nvm" && \
yarn install

COPY --from=builder-unique /unique_parachain/.docker/additional/xcm-rococo/launch-config-xcm-quartz-rococo.json /polkadot-launch/launch-config.json
COPY --from=builder-unique /unique_parachain/.docker/xcm-config/5validators.jsonnet /polkadot-launch/5validators.jsonnet
COPY --from=builder-unique /unique_parachain/.docker/xcm-config/6validators.jsonnet /polkadot-launch/6validators.jsonnet

COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/
COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
COPY --from=moonbeam /unique_parachain/moonbeam/target/release/moonbeam /moonbeam/target/release/
COPY --from=cumulus /unique_parachain/cumulus/target/release/polkadot-parachain /cumulus/target/release/cumulus
COPY --from=acala /unique_parachain/Acala/target/production/acala /acala/target/release/
COPY --from=astar /unique_parachain/astar/target/release/astar /astar/target/release/
COPY --from=uniquenetwork/builder-chainql:latest /chainql/target/release/chainql /chainql/target/release/

EXPOSE 9844
EXPOSE 9944
EXPOSE 9946
EXPOSE 9947
EXPOSE 9948
EXPOSE 9949

CMD export NVM_DIR="$HOME/.nvm" PATH="$PATH:/chainql/target/release" && \
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
Expand Down
11 changes: 7 additions & 4 deletions .docker/additional/xcm-rococo/Dockerfile-xcm-unique-rococo.temp
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM uniquenetwork/builder-polkadot:{{ POLKADOT_BUILD_BRANCH }} as polkadot
FROM uniquenetwork/builder-polkadot:{{ POLKADOT_MAINNET_BRANCH }} as polkadot
FROM uniquenetwork/builder-moonbeam:{{ MOONBEAM_BUILD_BRANCH }} as moonbeam
FROM uniquenetwork/builder-cumulus:{{ STATEMINT_BUILD_BRANCH }} as cumulus
FROM uniquenetwork/builder-acala:{{ ACALA_BUILD_BRANCH }} as acala
FROM uniquenetwork/builder-astar:{{ ASTAR_BUILD_BRANCH }} as astar

# ===== Rust builder =====
FROM ubuntu:20.04 as rust-builder
FROM ubuntu:22.04 as rust-builder
LABEL maintainer="Unique.Network"

ENV CARGO_HOME="/cargo-home"
Expand Down Expand Up @@ -43,7 +44,7 @@ RUN git clone -b {{ BRANCH }} https://github.com/UniqueNetwork/unique-chain.git
cargo build --features=unique-runtime --$PROFILE

# ===== RUN ======
FROM ubuntu:20.04
FROM ubuntu:22.04

RUN apt-get -y update && \
apt-get -y install curl git && \
Expand All @@ -62,20 +63,22 @@ RUN export NVM_DIR="$HOME/.nvm" && \
yarn install

COPY --from=builder-unique /unique_parachain/.docker/additional/xcm-rococo/launch-config-xcm-unique-rococo.json /polkadot-launch/launch-config.json
COPY --from=builder-unique /unique_parachain/.docker/xcm-config/5validators.jsonnet /polkadot-launch/5validators.jsonnet
COPY --from=builder-unique /unique_parachain/.docker/xcm-config/6validators.jsonnet /polkadot-launch/6validators.jsonnet

COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/
COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
COPY --from=moonbeam /unique_parachain/moonbeam/target/release/moonbeam /moonbeam/target/release/
COPY --from=cumulus /unique_parachain/cumulus/target/release/polkadot-parachain /cumulus/target/release/cumulus
COPY --from=acala /unique_parachain/Acala/target/production/acala /acala/target/release/
COPY --from=astar /unique_parachain/astar/target/release/astar /astar/target/release/
COPY --from=uniquenetwork/builder-chainql:latest /chainql/target/release/chainql /chainql/target/release/

EXPOSE 9844
EXPOSE 9944
EXPOSE 9946
EXPOSE 9947
EXPOSE 9948
EXPOSE 9949

CMD export NVM_DIR="$HOME/.nvm" PATH="$PATH:/chainql/target/release" && \
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ services:
- 9946
- 9947
- 9948
- 9949
ports:
- 127.0.0.1:9844:9844
- 127.0.0.1:9944:9944
- 127.0.0.1:9946:9946
- 127.0.0.1:9947:9947
- 127.0.0.1:9948:9948
- 127.0.0.1:9949:9949

Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ services:
- 9946
- 9947
- 9948
- 9949
ports:
- 127.0.0.1:9844:9844
- 127.0.0.1:9944:9944
- 127.0.0.1:9946:9946
- 127.0.0.1:9947:9947
- 127.0.0.1:9948:9948
- 127.0.0.1:9949:9949

Loading

0 comments on commit 87d25f4

Please sign in to comment.