From 11ffd431a6001bf79f9a6c9e66223192d3203e95 Mon Sep 17 00:00:00 2001 From: Konstantin Astakhov Date: Mon, 24 Jun 2024 22:04:17 +0700 Subject: [PATCH] fix --- .docker/Dockerfile-hydradx | 11 +++++++---- .env | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.docker/Dockerfile-hydradx b/.docker/Dockerfile-hydradx index 766eb7170f..8120a01291 100644 --- a/.docker/Dockerfile-hydradx +++ b/.docker/Dockerfile-hydradx @@ -2,6 +2,7 @@ FROM ubuntu:22.04 as rust-builder LABEL maintainer="Unique.Network" +ARG RUST_TOOLCHAIN ENV CARGO_HOME="/cargo-home" ENV PATH="/cargo-home/bin:$PATH" ENV TZ=UTC @@ -14,10 +15,10 @@ RUN apt-get update && \ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none -RUN rustup toolchain install {{ RUST_TOOLCHAIN }} && \ - rustup target add wasm32-unknown-unknown --toolchain {{ RUST_TOOLCHAIN }} && \ - rustup default {{ RUST_TOOLCHAIN }} && \ - rustup component add --toolchain {{ RUST_TOOLCHAIN }} rust-src && \ +RUN rustup toolchain install "${RUST_TOOLCHAIN}" && \ + rustup target add wasm32-unknown-unknown --toolchain "${RUST_TOOLCHAIN}" && \ + rustup default "${RUST_TOOLCHAIN}" && \ + rustup component add --toolchain "${RUST_TOOLCHAIN}" rust-src && \ rustup target list --installed && \ rustup show @@ -27,6 +28,8 @@ WORKDIR /unique_parachain # ===== BUILD BIN ===== FROM rust-builder as builder-hydradx-bin +ARG HYDRADX_BUILD_BRANCH + WORKDIR /unique_parachain RUN git clone --depth 1 -b {{ HYDRADX_BUILD_BRANCH }} https://github.com/galacticcouncil/HydraDX-node.git diff --git a/.env b/.env index 7c79a3b8e7..aa89e1b974 100644 --- a/.env +++ b/.env @@ -6,6 +6,8 @@ STATEMINT_BUILD_BRANCH=1.9.0 ACALA_BUILD_BRANCH=2.25.0 MOONBEAM_BUILD_BRANCH=runtime-2901 ASTAR_BUILD_BRANCH=v5.39.1 +HYDRADX_BUILD_BRANCH=v27.0.0 +#POLKADEX_BUILD_BRANCH=v1.1.0 #repository in archive and switched to cumulus UNIQUE_MAINNET_BRANCH=release-v10030070 UNIQUE_REPLICA_FROM=wss://ws.unique.network:443 @@ -22,5 +24,3 @@ WESTMINT_BUILD_BRANCH=1.9.0 OPAL_MAINNET_BRANCH=release-v10030070 OPAL_REPLICA_FROM=wss://ws-opal.unique.network:443 -#POLKADEX_BUILD_BRANCH=v1.1.0 #repository in archive and switched to cumulus -HYDRADX_BUILD_BRANCH=v27.0.0