Prechádzať zdrojové kódy

github workflows: fix use of unified docker-compose

Mokhtar Naamani 4 rokov pred
rodič
commit
262f5a82f5
3 zmenil súbory, kde vykonal 7 pridanie a 4 odobranie
  1. 1 1
      .env
  2. 5 2
      .github/workflows/run-network-tests.yml
  3. 1 1
      docker-compose.yml

+ 1 - 1
.env

@@ -18,7 +18,7 @@ TYPEORM_LOGGING=error
 ###########################
 
 # Substrate endpoint to source events from
-WS_PROVIDER_ENDPOINT_URI=ws://localhost:9944/
+WS_PROVIDER_ENDPOINT_URI=ws://joystream-node:9944/
 # Block height to start indexing from.
 # Note, that if there are already some indexed events, this setting is ignored
 BLOCK_HEIGHT=0

+ 5 - 2
.github/workflows/run-network-tests.yml

@@ -148,7 +148,7 @@ jobs:
       - name: Ensure tests are runnable
         run: yarn workspace cd-schemas checks --quiet
       - name: Start chain
-        run: docker-compose up -d
+        run: docker-compose up -d joystream-node
       - name: Initialize the content directory
         run: yarn workspace cd-schemas initialize:dev
 
@@ -202,7 +202,10 @@ jobs:
       - name: Build storage node
         run: yarn workspace storage-node build
       - name: Start Services
-        run: docker-compose --file docker-compose-with-storage.yml up -d
+        run: |
+          docker-compose up -d ipfs
+          docker-compose up -d joystream-node
+          docker-compose up -d colossus
       - name: Add development storage node and initialize content directory
         run: DEBUG=* yarn storage-cli dev-init
       - name: Try uploading

+ 1 - 1
docker-compose.yml

@@ -44,7 +44,7 @@ services:
       dockerfile: apps.Dockerfile
     ports:
       - '127.0.0.1:3001:3001'
-    command: colossus --dev --ws-provider ws://joystream-node:9944 --ipfs-host ipfs
+    command: colossus --dev --ws-provider {WS_PROVIDER_ENDPOINT_URI} --ipfs-host ipfs
     environment:
       - DEBUG=*