git.delta.rocks / unique-network / refs/commits / 41613d6a6f37

difftreelog

merge override docker-compose files

Konstantin Astakhov2022-11-01parent: #8a0d4a7.patch.diff
in: master

12 files changed

deleted.docker/docker-compose-dev.yamldiffbeforeafterboth
--- a/.docker/docker-compose-dev.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-version: "3.5"
-
-services:
-  node-dev:
-    build:
-      context: ../
-      dockerfile: .docker/Dockerfile-chain-dev
-    image: node-dev
-    container_name: node-dev
deleted.docker/docker-compose-forkless.ymldiffbeforeafterboth
--- a/.docker/docker-compose-forkless.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-version: "3.5"
-
-services:
-  node-parachain:
-    build:
-      context: ../
-      dockerfile: .docker/Dockerfile-parachain-upgrade
-    image: node-parachain
-    container_name: node-parachain
-    volumes:
-       - type: bind
-         source: ./launch-config-forkless.json
-         target: /polkadot-launch/launch-config.json
-         read_only: true
-    expose:
-      - 9944
-      - 9933
-    ports:
-      - 127.0.0.1:9944:9944
-      - 127.0.0.1:9933:9933
-    logging:
-      options:
-        max-size: "1m"
-        max-file: "3"
deleted.docker/docker-compose-master.ymldiffbeforeafterboth
--- a/.docker/docker-compose-master.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-version: "3.5"
-
-services:
-  blockchain_nodes:
-    build:
-      context: ../
-      dockerfile: .docker/Dockerfile-parachain
-    image: blockchain_nodes
-    container_name: blockchain_nodes
-    expose:
-      - 9944
-      - 9933
-    ports:
-      - 127.0.0.1:9944:9944
-      - 127.0.0.1:9933:9933
-    logging:
-      options:
-        max-size: "1m"
-        max-file: "3"
deleted.docker/docker-compose-try-runtime.ymldiffbeforeafterboth
--- a/.docker/docker-compose-try-runtime.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-version: "3.5"
-
-services:
-  try-runtime:
-    build:
-      context: ../
-      dockerfile: .docker/Dockerfile-try-runtime
-    image: try-runtime
-    container_name: try-runtime
-    expose:
-      - 9944
-      - 9933
-    ports:
-      - 127.0.0.1:9944:9944
-      - 127.0.0.1:9933:9933
-    logging:
-      options:
-        max-size: "1m"
-        max-file: "3"
modified.docker/docker-compose.tmp-dev.j2diffbeforeafterboth
--- a/.docker/docker-compose.tmp-dev.j2
+++ b/.docker/docker-compose.tmp-dev.j2
@@ -8,6 +8,8 @@
         - "NETWORK={{ NETWORK }}"
       context: ../
       dockerfile: .docker/Dockerfile-chain-dev
+    image: node-dev
+    container_name: node-dev
     expose:
       - 9944
       - 9933
deleted.docker/docker-compose.tmp-master.j2diffbeforeafterboth
--- a/.docker/docker-compose.tmp-master.j2
+++ /dev/null
@@ -1,11 +0,0 @@
-version: "3.5"
-
-services:
-  blockchain_nodes:
-    build:
-      args:
-        - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
-        - "BRANCH={{ BRANCH }}"
-        - "REPO_URL={{ REPO_URL }}"
-        - "NETWORK={{ NETWORK }}"
-        - "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"
added.docker/docker-compose.tmp-try-runtime.j2diffbeforeafterboth
--- /dev/null
+++ b/.docker/docker-compose.tmp-try-runtime.j2
@@ -0,0 +1,23 @@
+version: "3.5"
+
+services:
+  try-runtime:
+    build:
+      context: ../
+      dockerfile: .docker/Dockerfile-try-runtime
+      args:
+        - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
+        - "NETWORK={{ NETWORK }}"
+        - "REPLICA_FROM={{ REPLICA_FROM }}"      
+    image: try-runtime
+    container_name: try-runtime
+    expose:
+      - 9944
+      - 9933
+    ports:
+      - 127.0.0.1:9944:9944
+      - 127.0.0.1:9933:9933
+    logging:
+      options:
+        max-size: "1m"
+        max-file: "3"
modified.docker/docker-compose.tmp-unit.j2diffbeforeafterboth
--- a/.docker/docker-compose.tmp-unit.j2
+++ b/.docker/docker-compose.tmp-unit.j2
@@ -8,6 +8,8 @@
       args:
         - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
         - "NETWORK={{ NETWORK }}"
+    image: node-dev
+    container_name: node-dev        
     logging:
       options:
         max-size: "1m"
deleted.docker/docker-compose.try-runtime.j2diffbeforeafterboth
--- a/.docker/docker-compose.try-runtime.j2
+++ /dev/null
@@ -1,23 +0,0 @@
-version: "3.5"
-
-services:
-  try-runtime:
-    build:
-      context: ../
-      dockerfile: .docker/Dockerfile-try-runtime
-      args:
-        - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
-        - "NETWORK={{ NETWORK }}"
-        - "REPLICA_FROM={{ REPLICA_FROM }}"      
-    image: try-runtime
-    container_name: try-runtime
-    expose:
-      - 9944
-      - 9933
-    ports:
-      - 127.0.0.1:9944:9944
-      - 127.0.0.1:9933:9933
-    logging:
-      options:
-        max-size: "1m"
-        max-file: "3"
modified.github/workflows/try-runtime.ymldiffbeforeafterboth
before · .github/workflows/try-runtime.yml
1# Try-runtime checks2# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2587656213/Try+runtime34# Triger: only call from main workflow(re-usable workflows)5on:6  workflow_call:78# A workflow run is made up of one or more jobs that can run sequentially or in parallel9jobs:10  try-runtime:11    # The type of runner that the job will run on12    runs-on: self-hosted-ci13    14    name: ${{ matrix.network }}-try-runtime1516    continue-on-error: true         #Do not stop testing of matrix runs failed.  As it decided during PR review - it required 50/50& Let's check it with false.1718    strategy:19      matrix:20        include:21          - network: opal22            replica_from_address: wss://eu-ws-opal.unique.network:44323          - network: quartz24            replica_from_address: wss://eu-ws-quartz.unique.network:44325          - network: unique26            replica_from_address: wss://eu-ws.unique.network:4432728    steps:2930      - name: Clean Workspace31        uses: AutoModality/action-clean@v1.1.03233      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it34      - uses: actions/checkout@v335        with:36          ref: ${{ github.head_ref }}  #Checking out head commit3738      - name: Read .env file39        uses: xom9ikk/dotenv@v24041      - name: Generate ENV related extend file for docker-compose42        uses: cuchi/jinja2-action@v1.2.043        with:44          template: .docker/docker-compose.try-runtime.j245          output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml46          variables: |47            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}48            NETWORK=${{ matrix.network }}49            REPLICA_FROM=${{ matrix.replica_from_address }}5051      - name: Show build configuration52        run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml5354      - name: Build the stack55        run: docker-compose -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up --build  --force-recreate --timeout 300 --remove-orphans --exit-code-from try-runtime56 57      - name: Collect Docker Logs58        if: success() || failure()59        uses: jwalton/gh-docker-logs@v2.2.060        with:61          dest: './try-runtime-logs.${{ matrix.network }}'62          images: 'try-runtime' 6364      - name: Show docker logs65        run: cat './try-runtime-logs.${{ matrix.network }}/try-runtime.log'6667      - name: Stop running containers68        if: always()                   # run this step always69        run: docker-compose -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down70        71      - name: Remove builder cache72        if: always()                   # run this step always73        run: |74          docker builder prune -f -a75          docker system prune -f76          docker image prune -f -a
after · .github/workflows/try-runtime.yml
1# Try-runtime checks2# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2587656213/Try+runtime34# Triger: only call from main workflow(re-usable workflows)5on:6  workflow_call:78# A workflow run is made up of one or more jobs that can run sequentially or in parallel9jobs:10  try-runtime:11    # The type of runner that the job will run on12    runs-on: self-hosted-ci13    14    name: ${{ matrix.network }}-try-runtime1516    continue-on-error: true         #Do not stop testing of matrix runs failed.  As it decided during PR review - it required 50/50& Let's check it with false.1718    strategy:19      matrix:20        include:21          - network: opal22            replica_from_address: wss://eu-ws-opal.unique.network:44323          - network: quartz24            replica_from_address: wss://eu-ws-quartz.unique.network:44325          - network: unique26            replica_from_address: wss://eu-ws.unique.network:4432728    steps:2930      - name: Clean Workspace31        uses: AutoModality/action-clean@v1.1.03233      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it34      - uses: actions/checkout@v335        with:36          ref: ${{ github.head_ref }}  #Checking out head commit3738      - name: Read .env file39        uses: xom9ikk/dotenv@v24041      - name: Generate ENV related extend file for docker-compose42        uses: cuchi/jinja2-action@v1.2.043        with:44          template: .docker/docker-compose.tmp-try-runtime.j245          output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml46          variables: |47            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}48            NETWORK=${{ matrix.network }}49            REPLICA_FROM=${{ matrix.replica_from_address }}5051      - name: Show build configuration52        run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml5354      - name: Build the stack55        run: docker-compose -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up --build  --force-recreate --timeout 300 --remove-orphans --exit-code-from try-runtime56 57      - name: Collect Docker Logs58        if: success() || failure()59        uses: jwalton/gh-docker-logs@v2.2.060        with:61          dest: './try-runtime-logs.${{ matrix.network }}'62          images: 'try-runtime' 6364      - name: Show docker logs65        run: cat './try-runtime-logs.${{ matrix.network }}/try-runtime.log'6667      - name: Stop running containers68        if: always()                   # run this step always69        run: docker-compose -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down70        71      - name: Remove builder cache72        if: always()                   # run this step always73        run: |74          docker builder prune -f -a75          docker system prune -f76          docker image prune -f -a
modified.github/workflows/unit-test.ymldiffbeforeafterboth
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test.yml
@@ -46,11 +46,11 @@
         run: cat .docker/docker-compose.unit.yml
 
       - name: Build the stack
-        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" up --build  --force-recreate --timeout 300 --remove-orphans --exit-code-from node-dev
+        run: docker-compose -f ".docker/docker-compose.unit.yml" up --build  --force-recreate --timeout 300 --remove-orphans --exit-code-from node-dev
 
       - name: Stop running containers
         if: always()                   # run this step always
-        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down
+        run: docker-compose -f ".docker/docker-compose.unit.yml" down
         
       - name: Remove builder cache
         if: always()                   # run this step always
modified.github/workflows/yarn-dev.ymldiffbeforeafterboth
--- a/.github/workflows/yarn-dev.yml
+++ b/.github/workflows/yarn-dev.yml
@@ -54,7 +54,7 @@
         run: cat .docker/docker-compose.${{ matrix.network }}.yml
 
       - name: Build the stack
-        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans
+        run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans
 
       - uses: actions/setup-node@v3
         with:
@@ -88,7 +88,7 @@
 
       - name: Stop running containers
         if: always()                   # run this step always
-        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down
+        run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" down
 
       - name: Remove builder cache
         if: always()                   # run this step always