-
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 pull request #816 from UniqueNetwork/release-v936050
Release v936050
- Loading branch information
Showing
257 changed files
with
14,980 additions
and
9,063 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
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,74 @@ | ||
ARG POLKADOT_BUILD_BRANCH | ||
FROM uniquenetwork/builder-polkadot:${POLKADOT_BUILD_BRANCH} as polkadot | ||
|
||
# ===== Rust builder ===== | ||
FROM uniquenetwork/services:latest as rust-builder | ||
ARG RUST_TOOLCHAIN= | ||
|
||
ENV RUST_TOOLCHAIN $RUST_TOOLCHAIN | ||
ENV CARGO_HOME="/cargo-home" | ||
ENV PATH="/cargo-home/bin:$PATH" | ||
ENV TZ=UTC | ||
|
||
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 NETWORK | ||
ARG POLKADOT_LAUNCH_BRANCH | ||
ARG BRANCH | ||
|
||
ENV POLKADOT_LAUNCH_BRANCH $POLKADOT_LAUNCH_BRANCH | ||
|
||
WORKDIR /unique_parachain | ||
|
||
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 | ||
|
||
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 ${POLKADOT_LAUNCH_BRANCH} | ||
|
||
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/unique-chain/.docker/testnet-config/launch-config.json /polkadot-launch/launch-config.json | ||
COPY --from=builder-unique /unique_parachain/unique-chain/target/release/unique-collator /unique-chain/target/release/ | ||
|
||
COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/ | ||
|
||
EXPOSE 9844 | ||
EXPOSE 9944 | ||
EXPOSE 9933 | ||
EXPOSE 9833 | ||
EXPOSE 40333 | ||
EXPOSE 30333 | ||
|
||
CMD export NVM_DIR="$HOME/.nvm" && \ | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ | ||
cd /polkadot-launch && \ | ||
yarn start launch-config.json |
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: "3.5" | ||
|
||
services: | ||
parachain-collators: | ||
build: | ||
args: | ||
- "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}" | ||
- "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}" | ||
- "POLKADOT_LAUNCH_BRANCH={{ POLKADOT_LAUNCH_BRANCH }}" | ||
- "NETWORK={{ NETWORK }}" | ||
- "BRANCH={{ BRANCH }}" | ||
context: ../ | ||
dockerfile: .docker/Dockerfile-parachain | ||
image: parachain-collators | ||
container_name: parachain-collators | ||
expose: | ||
- 9944 | ||
- 9933 | ||
ports: | ||
- 127.0.0.1:9944:9944 | ||
- 127.0.0.1:9933:9933 | ||
logging: | ||
options: | ||
max-size: "1m" | ||
max-file: "3" |
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
Oops, something went wrong.