difftreelog
correct build commands for parachains
in: master
5 files changed
.docker/Dockerfile-xcmdiffbeforeafterboth333334ARG PROFILE=release34ARG PROFILE=release35ARG FEATURE=35ARG FEATURE=36ARG REPO_URL=37ARG BRANCH=36ARG BRANCH=3837393840WORKDIR /unique_parachain39WORKDIR /unique_parachain414042RUN git clone $REPO_URL -b $BRANCH . && \41RUN git clone -b $BRANCH https://github.com/UniqueNetwork/unique-chain.git && \42 cd unique-chain && \43 cargo build --features=$FEATURE --$PROFILE43 cargo build --features=$FEATURE --$PROFILE444445# ===== BUILD POLKADOT =====45# ===== BUILD POLKADOT =====939394RUN git clone -b $CUMULUS_BUILD_BRANCH --depth 1 https://github.com/paritytech/cumulus.git && \94RUN git clone -b $CUMULUS_BUILD_BRANCH --depth 1 https://github.com/paritytech/cumulus.git && \95 cd cumulus && \95 cd cumulus && \96 cargo build --release96 cargo build --release --locked -p polkadot-parachain979798# ===== RUN ======98# ===== RUN ======9999100FROM ubuntu:20.04100FROM ubuntu:20.04101102ARG POLKADOT_LAUNCH_BRANCH=103ENV POLKADOT_LAUNCH_BRANCH $POLKADOT_LAUNCH_BRANCH101104102RUN apt-get -y update && \105RUN apt-get -y update && \103 apt-get -y install curl git && \106 apt-get -y install curl git && \107 nvm install v16.16.0 && \110 nvm install v16.16.0 && \108 nvm use v16.16.0111 nvm use v16.16.0109112110RUN git clone https://github.com/uniquenetwork/polkadot-launch -b feature/runtime-upgrade-testing113RUN git clone https://github.com/uniquenetwork/polkadot-launch -b $POLKADOT_LAUNCH_BRANCH111114112RUN export NVM_DIR="$HOME/.nvm" && \115RUN export NVM_DIR="$HOME/.nvm" && \113 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \116 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \114 cd /polkadot-launch && \117 cd /polkadot-launch && \115 npm install --global yarn && \118 npm install --global yarn && \116 yarn install119 yarn install117120118COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/121COPY --from=builder-unique /unique_parachain/unique-chain/target/release/unique-collator /unique-chain/target/release/119COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/122COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/120COPY --from=builder-moonbeam /unique_parachain/moonbeam/target/release/moonbeam /moonbeam/target/release/123COPY --from=builder-moonbeam /unique_parachain/moonbeam/target/release/moonbeam /moonbeam/target/release/121COPY --from=builder-cumulus /unique_parachain/cumulus/target/release/polkadot-parachain /cumulus/target/release/cumulus124COPY --from=builder-cumulus /unique_parachain/cumulus/target/release/polkadot-parachain /cumulus/target/release/cumulus.docker/docker-compose-xcm.ymldiffbeforeafterboth--- a/.docker/docker-compose-xcm.yml
+++ b/.docker/docker-compose-xcm.yml
@@ -5,8 +5,6 @@
build:
context: ../
dockerfile: .docker/Dockerfile-xcm
- image: xcm_nodes
- container_name: xcm_nodes
expose:
- 9844
- 9944
.docker/docker-compose.tmp-xcm-quartz.ymldiffbeforeafterboth--- a/.docker/docker-compose.tmp-xcm-quartz.yml
+++ b/.docker/docker-compose.tmp-xcm-quartz.yml
@@ -6,12 +6,14 @@
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"
+ - "POLKADOT_LAUNCH_BRANCH=feature/rewrite-chain-id-in-spec"
+ image: xcm_nodes_quartz
+ container_name: xcm_nodes_quartz
volumes:
- type: bind
source: ./xcm-config/launch-config-xcm-quartz.json
.docker/docker-compose.tmp-xcm-unique.ymldiffbeforeafterboth--- a/.docker/docker-compose.tmp-xcm-unique.yml
+++ b/.docker/docker-compose.tmp-xcm-unique.yml
@@ -12,6 +12,9 @@
- "ACALA_BUILD_BRANCH=2.9.0"
- "MOONBEAM_BUILD_BRANCH=v0.25.0"
- "CUMULUS_BUILD_BRANCH=release-v0.9.230"
+ - "POLKADOT_LAUNCH_BRANCH=feature/rewrite-chain-id-in-spec"
+ image: xcm_nodes_unique
+ container_name: xcm_nodes_unique
volumes:
- type: bind
source: ./xcm-config/launch-config-xcm-unique.json
.docker/docker-compose.tmp-xcm.j2diffbeforeafterboth--- /dev/null
+++ b/.docker/docker-compose.tmp-xcm.j2
@@ -0,0 +1,21 @@
+version: "3.5"
+
+services:
+ xcm_nodes:
+ build:
+ args:
+ - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
+ - "BRANCH={{ BRANCH }}"
+ - "FEATURE={{ FEATURE }}"
+ - "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"
+ - "ACALA_BUILD_BRANCH={{ ACALA_BUILD_BRANCH }}"
+ - "MOONBEAM_BUILD_BRANCH={{ MOONBEAM_BUILD_BRANCH }}"
+ - "CUMULUS_BUILD_BRANCH={{ CUMULUS_BUILD_BRANCH }}"
+ - "POLKADOT_LAUNCH_BRANCH={{ POLKADOT_LAUNCH_BRANCH }}"
+ image: xcm_nodes_{{ NETWORK }}
+ container_name: xcm_nodes_{{ NETWORK }}
+ volumes:
+ - type: bind
+ source: ./xcm-config/launch-config-xcm-{{ NETWORK }}.json
+ target: /polkadot-launch/launch-config.json
+ read_only: true