git.delta.rocks / unique-network / refs/commits / 5487ee73ea6a

difftreelog

fix copy from build tag for polkadot

Konstantin Astakhov2022-10-24parent: #4778ac7.patch.diff
in: master

4 files changed

modified.docker/Dockerfile-parachaindiffbeforeafterboth
1ARG POLKADOT_BUILD_BRANCH
2FROM uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} as polkadot
3
1# ===== Rust builder =====4# ===== Rust builder =====
2FROM ubuntu:20.04 as rust-builder5FROM ubuntu:20.04 as rust-builder
3LABEL maintainer="Unique.Network"6LABEL maintainer="Unique.Network"
36ARG REPO_URL=39ARG REPO_URL=
37ARG BRANCH=40ARG BRANCH=
3841
39
40WORKDIR /unique_parachain42WORKDIR /unique_parachain
4143
42RUN git clone $REPO_URL -b $BRANCH . && \44RUN git clone $REPO_URL -b $BRANCH . && \
68COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/70COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/
69COPY --from=builder-unique /unique_parachain/launch-config.json /polkadot-launch/launch-config.json71COPY --from=builder-unique /unique_parachain/launch-config.json /polkadot-launch/launch-config.json
7072
71COPY --from=uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/73COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
7274
73CMD export NVM_DIR="$HOME/.nvm" && \75CMD export NVM_DIR="$HOME/.nvm" && \
74 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \76 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
75 cd /polkadot-launch && \77 cd /polkadot-launch && \
76 yarn start launch-config.json78 yarn start launch-config.json
77
7879
7980
modified.docker/Dockerfile-parachain-node-onlydiffbeforeafterboth
1ARG POLKADOT_BUILD_BRANCH
2FROM uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} as polkadot
3
1# ===== Rust builder =====4# ===== Rust builder =====
2FROM ubuntu:20.04 as rust-builder5FROM ubuntu:20.04 as rust-builder
3LABEL maintainer="Unique.Network"6LABEL maintainer="Unique.Network"
83COPY --from=builder-unique-current /unique_parachain/target/release/unique-collator /unique-chain/current/release/86COPY --from=builder-unique-current /unique_parachain/target/release/unique-collator /unique-chain/current/release/
84COPY --from=builder-unique-target /unique_parachain/target/release/unique-collator /unique-chain/target/release/87COPY --from=builder-unique-target /unique_parachain/target/release/unique-collator /unique-chain/target/release/
85COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm88COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm
86
87COPY --from=uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
88COPY --from=uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
8989
90COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
91COPY --from=polkadot /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
9092
91CMD export NVM_DIR="$HOME/.nvm" && \93CMD export NVM_DIR="$HOME/.nvm" && \
92 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \94 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
modified.docker/Dockerfile-parachain-upgradediffbeforeafterboth
1ARG POLKADOT_BUILD_BRANCH
2FROM uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} as polkadot
3
1# ===== Rust builder =====4# ===== Rust builder =====
2FROM ubuntu:20.04 as rust-builder5FROM ubuntu:20.04 as rust-builder
3LABEL maintainer="Unique.Network"6LABEL maintainer="Unique.Network"
85COPY --from=builder-unique-target /unique_parachain/target/release/unique-collator /unique-chain/target/release/88COPY --from=builder-unique-target /unique_parachain/target/release/unique-collator /unique-chain/target/release/
86COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm89COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm
8790
88COPY --from=uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/91COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
89COPY --from=uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm92COPY --from=polkadot /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
9093
91CMD export NVM_DIR="$HOME/.nvm" && \94CMD export NVM_DIR="$HOME/.nvm" && \
92 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \95 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
modified.docker/Dockerfile-parachain-upgrade-datadiffbeforeafterboth
1ARG POLKADOT_BUILD_BRANCH
2FROM uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} as polkadot
3
1# ===== Rust builder =====4# ===== Rust builder =====
2FROM ubuntu:20.04 as rust-builder5FROM ubuntu:20.04 as rust-builder
3LABEL maintainer="Unique.Network"6LABEL maintainer="Unique.Network"
9093
91COPY --from=uniquenetwork/builder-chainql:latest /chainql/target/release/chainql /chainql/target/release/94COPY --from=uniquenetwork/builder-chainql:latest /chainql/target/release/chainql /chainql/target/release/
9295
93COPY --from=uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/96COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
94COPY --from=uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm97COPY --from=polkadot /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
9598
96CMD export NVM_DIR="$HOME/.nvm" PATH="$PATH:/chainql/target/release" REPLICA_FROM && \99CMD export NVM_DIR="$HOME/.nvm" PATH="$PATH:/chainql/target/release" REPLICA_FROM && \
97 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \100 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \