git.delta.rocks / unique-network / refs/commits / 4ed64c2572b0

difftreelog

merge try-tuntime compose files

Konstantin Astakhov2022-10-31parent: #04e0d10.patch.diff
in: master

4 files changed

modified.docker/Dockerfile-parachaindiffbeforeafterboth
35FROM rust-builder as builder-unique35FROM rust-builder as builder-unique
3636
37ARG PROFILE=release37ARG PROFILE=release
38ARG NETWORK=38ARG NETWORK
39ARG REPO_URL=39ARG REPO_URL
40ARG BRANCH=40ARG BRANCH
4141
42RUN echo "NETWORK="$NETWORK42RUN echo "NETWORK="${NETWORK}
4343
44WORKDIR /unique_parachain44WORKDIR /unique_parachain
4545
46RUN git clone $REPO_URL -b $BRANCH . && \46RUN git clone $REPO_URL -b $BRANCH . && \
47 cargo build --features="${NETWORK}-runtime" --$PROFILE47 cargo build --features=${NETWORK}-runtime --$PROFILE
4848
49# ===== RUN ======49# ===== RUN ======
5050
modified.docker/Dockerfile-try-runtimediffbeforeafterboth
2FROM ubuntu:20.04 as rust-builder2FROM ubuntu:20.04 as rust-builder
3LABEL maintainer="Unique.Network"3LABEL maintainer="Unique.Network"
44
5ARG RUST_TOOLCHAIN=5ARG RUST_TOOLCHAIN
66
7ENV RUST_TOOLCHAIN $RUST_TOOLCHAIN7ENV RUST_TOOLCHAIN $RUST_TOOLCHAIN
8ENV CARGO_HOME="/cargo-home"8ENV CARGO_HOME="/cargo-home"
3434
35ARG PROFILE=release35ARG PROFILE=release
36ARG NETWORK36ARG NETWORK
37ARG REPLICA_FROM=37ARG REPLICA_FROM
38ENV NETWORK $NETWORK38ENV NETWORK $NETWORK
39ENV REPLICA_FROM $REPLICA_FROM39ENV REPLICA_FROM $REPLICA_FROM
4040
modified.docker/docker-compose.try-runtime.j2diffbeforeafterboth
3services:3services:
4 try-runtime:4 try-runtime:
5 build:5 build:
6 context: ../
7 dockerfile: .docker/Dockerfile-try-runtime
6 args:8 args:
7 - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"9 - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
8 - "NETWORK={{ NETWORK }}"10 - "NETWORK={{ NETWORK }}"
9 - "REPLICA_FROM={{ REPLICA_FROM }}"11 - "REPLICA_FROM={{ REPLICA_FROM }}"
12 image: try-runtime
13 container_name: try-runtime
14 expose:
15 - 9944
16 - 9933
17 ports:
18 - 127.0.0.1:9944:9944
19 - 127.0.0.1:9933:9933
20 logging:
21 options:
22 max-size: "1m"
23 max-file: "3"
1024
11
modified.github/workflows/try-runtime.ymldiffbeforeafterboth
52 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml52 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml
5353
54 - name: Build the stack54 - name: Build the stack
55 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up --build --force-recreate --timeout 300 --remove-orphans --exit-code-from try-runtime55 run: docker-compose -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up --build --force-recreate --timeout 300 --remove-orphans --exit-code-from try-runtime
56 56
57 - name: Collect Docker Logs57 - name: Collect Docker Logs
58 if: success() || failure()58 if: success() || failure()
6666
67 - name: Stop running containers67 - name: Stop running containers
68 if: always() # run this step always68 if: always() # run this step always
69 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down69 run: docker-compose -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down
70 70
71 - name: Remove builder cache71 - name: Remove builder cache
72 if: always() # run this step always72 if: always() # run this step always