difftreelog
add docker-compose files for xcm
in: master
6 files changed
.docker/Dockerfile-xcmdiffbeforeafterboth--- /dev/null
+++ b/.docker/Dockerfile-xcm
@@ -0,0 +1,127 @@
+# ===== Rust builder =====
+FROM ubuntu:20.04 as rust-builder
+LABEL maintainer="Unique.Network"
+
+ARG RUST_TOOLCHAIN=
+
+ENV RUST_TOOLCHAIN $RUST_TOOLCHAIN
+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 && \
+ 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 ======
+FROM rust-builder as builder-unique
+
+ARG PROFILE=release
+ARG FEATURE=
+ARG REPO_URL=
+ARG BRANCH=
+
+
+WORKDIR /unique_parachain
+
+RUN git clone $REPO_URL -b $BRANCH . && \
+ cargo build --features=$FEATURE --$PROFILE
+
+# ===== BUILD POLKADOT =====
+FROM rust-builder as builder-polkadot
+
+ARG POLKADOT_BUILD_BRANCH=
+ENV POLKADOT_BUILD_BRANCH $POLKADOT_BUILD_BRANCH
+
+
+WORKDIR /unique_parachain
+
+RUN git clone -b $POLKADOT_BUILD_BRANCH --depth 1 https://github.com/paritytech/polkadot.git && \
+ cd polkadot && \
+ cargo build --release
+
+# ===== BUILD ACALA =====
+FROM rust-builder as builder-acala
+
+ARG ACALA_BUILD_BRANCH=
+ENV ACALA_BUILD_BRANCH $ACALA_BUILD_BRANCH
+
+
+WORKDIR /unique_parachain
+
+RUN git clone -b $ACALA_BUILD_BRANCH --depth 1 https://github.com/AcalaNetwork/Acala.git && \
+ cd Acala && \
+ make init && \
+ cargo build --release
+
+# ===== BUILD MOONBEAM =====
+FROM rust-builder as builder-moonbeam
+
+ARG MOONBEAM_BUILD_BRANCH=
+ENV MOONBEAM_BUILD_BRANCH $MOONBEAM_BUILD_BRANCH
+
+
+WORKDIR /unique_parachain
+
+RUN git clone -b $MOONBEAM_BUILD_BRANCH --depth 1 https://github.com/PureStake/moonbeam.git && \
+ cd moonbeam && \
+ cargo build --release
+
+# ===== BUILD CUMULUS =====
+FROM rust-builder as builder-cumulus
+
+ARG CUMULUS_BUILD_BRANCH=
+ENV CUMULUS_BUILD_BRANCH $CUMULUS_BUILD_BRANCH
+
+
+WORKDIR /unique_parachain
+
+RUN git clone -b $CUMULUS_BUILD_BRANCH --depth 1 https://github.com/paritytech/cumulus.git && \
+ cd cumulus && \
+ cargo build --release
+
+# ===== RUN ======
+
+FROM ubuntu:20.04
+
+RUN apt-get -y update && \
+ apt-get -y install curl git && \
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && \
+ export NVM_DIR="$HOME/.nvm" && \
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
+ nvm install v16.16.0 && \
+ nvm use v16.16.0
+
+RUN git clone https://github.com/uniquenetwork/polkadot-launch -b feature/runtime-upgrade-testing
+
+RUN export NVM_DIR="$HOME/.nvm" && \
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
+ cd /polkadot-launch && \
+ npm install --global yarn && \
+ yarn install
+
+COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/
+COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
+COPY --from=builder-acala /unique_parachain/Acala/target/production/acala /acala/target/release/
+COPY --from=builder-moonbeam /unique_parachain/moonbeam/target/release/moonbeam /moonbeam/target/release/
+COPY --from=builder-cumulus /unique_parachain/cumulus/target/release/polkadot-parachain /cumulus/target/release/cumulus
+
+CMD export NVM_DIR="$HOME/.nvm" && \
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
+ cd /polkadot-launch && \
+ yarn start launch-config.json
.docker/docker-compose-xcm.ymldiffbeforeafterboth--- /dev/null
+++ b/.docker/docker-compose-xcm.yml
@@ -0,0 +1,25 @@
+version: "3.5"
+
+services:
+ xcm_nodes:
+ build:
+ context: ../
+ dockerfile: .docker/Dockerfile-xcm
+ image: xcm_nodes
+ container_name: xcm_nodes
+ expose:
+ - 9844
+ - 9944
+ - 9946
+ - 9947
+ - 9948
+ 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
+ logging:
+ options:
+ max-size: "1m"
+ max-file: "3"
.docker/docker-compose.tmp-xcm-quartz.ymldiffbeforeafterboth--- /dev/null
+++ b/.docker/docker-compose.tmp-xcm-quartz.yml
@@ -0,0 +1,19 @@
+version: "3.5"
+
+services:
+ xcm_nodes:
+ build:
+ args:
+ - "RUST_TOOLCHAIN=nightly-2022-07-24"
+ - "BRANCH=release-v927020"
+ - "REPO_URL=https://github.com/UniqueNetwork/unique-chain.git"
+ - "FEATURE=quartz-runtime"
+ - "POLKADOT_BUILD_BRANCH=release-v0.9.27"
+ - "ACALA_BUILD_BRANCH=2.9.0"
+ - "MOONBEAM_BUILD_BRANCH=v0.25.0"
+ - "CUMULUS_BUILD_BRANCH=release-v0.9.230"
+ volumes:
+ - type: bind
+ source: ./launch-config-xcm-quartz.json
+ target: /polkadot-launch/launch-config.json
+ read_only: true
.docker/docker-compose.tmp-xcm-unique.ymldiffbeforeafterboth--- /dev/null
+++ b/.docker/docker-compose.tmp-xcm-unique.yml
@@ -0,0 +1,19 @@
+version: "3.5"
+
+services:
+ xcm_nodes:
+ build:
+ args:
+ - "RUST_TOOLCHAIN=nightly-2022-07-24"
+ - "BRANCH=release-v927020"
+ - "REPO_URL=https://github.com/UniqueNetwork/unique-chain.git"
+ - "FEATURE=unique-runtime"
+ - "POLKADOT_BUILD_BRANCH=release-v0.9.27"
+ - "ACALA_BUILD_BRANCH=2.9.0"
+ - "MOONBEAM_BUILD_BRANCH=v0.25.0"
+ - "CUMULUS_BUILD_BRANCH=release-v0.9.230"
+ volumes:
+ - type: bind
+ source: ./launch-config-xcm-unique.json
+ target: /polkadot-launch/launch-config.json
+ read_only: true
.docker/launch-config-xcm-quartz.jsondiffbeforeafterboth--- /dev/null
+++ b/.docker/launch-config-xcm-quartz.json
@@ -0,0 +1,171 @@
+{
+ "relaychain": {
+ "bin": "/polkadot/target/release/polkadot",
+ "chain": "westend-local",
+ "nodes": [
+ {
+ "name": "alice",
+ "wsPort": 9844,
+ "rpcPort": 9843,
+ "port": 30444,
+ "flags": [
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "bob",
+ "wsPort": 9855,
+ "rpcPort": 9854,
+ "port": 30555,
+ "flags": [
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "charlie",
+ "wsPort": 9866,
+ "rpcPort": 9865,
+ "port": 30666,
+ "flags": [
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "dave",
+ "wsPort": 9877,
+ "rpcPort": 9876,
+ "port": 30777,
+ "flags": [
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "eve",
+ "wsPort": 9888,
+ "rpcPort": 9887,
+ "port": 30888,
+ "flags": [
+ "-lparachain::candidate_validation=debug"
+ ]
+ }
+
+ ],
+ "genesis": {
+ "runtime": {
+ "runtime_genesis_config": {
+ "parachainsConfiguration": {
+ "config": {
+ "validation_upgrade_frequency": 1,
+ "validation_upgrade_delay": 1
+ }
+ }
+ }
+ }
+ }
+ },
+ "parachains": [
+ {
+ "bin": "/unique-chain/target/release/unique-collator",
+ "id": "2095",
+ "balance": "1000000000000000000000000",
+ "nodes": [
+ {
+ "port": 31200,
+ "wsPort": 9944,
+ "rpcPort": 9933,
+ "name": "alice",
+ "flags": [
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/acala/target/release/acala",
+ "id": "2000",
+ "chain": "karura-dev",
+ "balance": "1000000000000000000000",
+ "nodes": [
+ {
+ "wsPort": 9946,
+ "port": 31202,
+ "name": "alice",
+ "flags": [
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/moonbeam/target/release/moonbeam",
+ "id": 2023,
+ "balance": "1000000000000000000000",
+ "chain": "moonriver-local",
+ "nodes": [
+ {
+ "wsPort": 9947,
+ "port": 31203,
+ "name": "alice",
+ "flags": [
+ "--",
+ "--execution=wasm"
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/cumulus/target/release/cumulus",
+ "id": "1000",
+ "chain": "statemine-local",
+ "balance": "1000000000000000000000000",
+ "nodes": [
+ {
+ "wsPort": 9948,
+ "port": 31204,
+ "name": "alice",
+ "flags": [
+ ]
+ }
+ ]
+ }
+ ],
+ "simpleParachains": [],
+ "hrmpChannels": [
+ {
+ "sender": 2095,
+ "recipient": 2000,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2000,
+ "recipient": 2095,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2095,
+ "recipient": 2023,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2023,
+ "recipient": 2095,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2095,
+ "recipient": 1000,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 1000,
+ "recipient": 2095,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ }
+ ],
+ "finalization": false
+}
+
.docker/launch-config-xcm-unique.jsondiffbeforeafterboth1{2 "relaychain": {3 "bin": "/polkadot/target/release/polkadot",4 "chain": "westend-local",5 "nodes": [6 {7 "name": "alice",8 "wsPort": 9844,9 "rpcPort": 9843,10 "port": 30444,11 "flags": [12 "-lparachain::candidate_validation=debug"13 ]14 },15 {16 "name": "bob",17 "wsPort": 9855,18 "rpcPort": 9854,19 "port": 30555,20 "flags": [21 "-lparachain::candidate_validation=debug"22 ]23 },24 {25 "name": "charlie",26 "wsPort": 9866,27 "rpcPort": 9865,28 "port": 30666,29 "flags": [30 "-lparachain::candidate_validation=debug"31 ]32 },33 {34 "name": "dave",35 "wsPort": 9877,36 "rpcPort": 9876,37 "port": 30777,38 "flags": [39 "-lparachain::candidate_validation=debug"40 ]41 },42 {43 "name": "eve",44 "wsPort": 9888,45 "rpcPort": 9887,46 "port": 30888,47 "flags": [48 "-lparachain::candidate_validation=debug"49 ]50 }5152 ],53 "genesis": {54 "runtime": {55 "runtime_genesis_config": {56 "parachainsConfiguration": {57 "config": {58 "validation_upgrade_frequency": 1,59 "validation_upgrade_delay": 160 }61 }62 }63 }64 }65 },66 "parachains": [67 {68 "bin": "/unique-chain/target/release/unique-collator",69 "id": "2037",70 "balance": "1000000000000000000000000",71 "nodes": [72 {73 "port": 31200,74 "wsPort": 9944,75 "rpcPort": 9933,76 "name": "alice",77 "flags": [78 ]79 }80 ]81 },82 {83 "bin": "/acala/target/release/acala",84 "id": "2000",85 "chain": "acala-dev",86 "balance": "1000000000000000000000",87 "nodes": [88 {89 "wsPort": 9946,90 "port": 31202,91 "name": "alice",92 "flags": [93 ]94 }95 ]96 },97 {98 "bin": "/moonbeam/target/release/moonbeam",99 "id": "2004",100 "balance": "1000000000000000000000",101 "chain": "moonbeam-local",102 "nodes": [103 {104 "wsPort": 9947,105 "port": 31203,106 "name": "alice",107 "flags": [108 "--",109 "--execution=wasm"110 ]111 }112 ]113 },114 {115 "bin": "/cumulus/target/release/cumulus",116 "id": "1000",117 "chain": "statemint-local",118 "balance": "1000000000000000000000000",119 "nodes": [120 {121 "wsPort": 9948,122 "port": 31204,123 "name": "alice",124 "flags": [125 ]126 }127 ]128 }129 ],130 "simpleParachains": [],131 "hrmpChannels": [132 {133 "sender": 2037,134 "recipient": 2000,135 "maxCapacity": 8,136 "maxMessageSize": 512137 },138 {139 "sender": 2000,140 "recipient": 2037,141 "maxCapacity": 8,142 "maxMessageSize": 512143 },144 {145 "sender": 2037,146 "recipient": 2004,147 "maxCapacity": 8,148 "maxMessageSize": 512149 },150 {151 "sender": 2004,152 "recipient": 2037,153 "maxCapacity": 8,154 "maxMessageSize": 512155 },156 {157 "sender": 2037,158 "recipient": 1000,159 "maxCapacity": 8,160 "maxMessageSize": 512161 },162 {163 "sender": 1000,164 "recipient": 2037,165 "maxCapacity": 8,166 "maxMessageSize": 512167 }168 ],169 "finalization": false170}171