Просмотр исходного кода

Merge branch 'master' into olympia-update-from-master

Mokhtar Naamani 3 лет назад
Родитель
Сommit
e4deee9576
2 измененных файлов с 44 добавлено и 0 удалено
  1. 28 0
      .github/workflows/joystream-apps-docker.yml
  2. 16 0
      query-node/README.md

+ 28 - 0
.github/workflows/joystream-apps-docker.yml

@@ -0,0 +1,28 @@
+name: Build joystream/apps and publish to Docker Hub
+
+on:
+  workflow_dispatch:
+    inputs:
+      tag_suffix:
+        description: 'Tag suffix'
+        required: true
+jobs:
+  docker:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Extract branch name
+        shell: bash
+        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
+        id: extract_branch
+      - name: Login to DockerHub
+        uses: docker/login-action@v1
+        with:
+          username: ${{ secrets.DOCKERHUB_USERNAME }}
+          password: ${{ secrets.DOCKERHUB_PASSWORD }}
+      - name: Build and push
+        id: docker_build
+        uses: docker/build-push-action@v2
+        with:
+          file: apps.Dockerfile
+          push: true
+          tags: joystream/apps:${{ steps.extract_branch.outputs.branch }}-${{ github.event.inputs.tag_suffix }}

+ 16 - 0
query-node/README.md

@@ -46,3 +46,19 @@ You can stop the query-node and remove all associated docker containers without
 ```bash
 yarn workspace query-node-root kill
 ```
+
+- Database connection settings: DB_NAME, DB_HOST, DB_PORT, DB_USER, DB_PASS
+- Chain RPC endpoint: WS_PROVIDER_ENDPOINT_URI
+- If non-standard types are being used by the Substrate runtime, map type definitions in the json format as an external volume
+
+Follow the links for more information about the [indexer](https://github.com/Joystream/hydra/tree/master/packages/hydra-indexer) service and [indexer-api-gateway](https://github.com/Joystream/hydra/tree/master/packages/hydra-indexer-gateway).
+
+## GraphQL Playground assets url
+Query node's user interface, GraphQL Playground, is expecting to be served at `/graphql`. 
+If you are serving the files on path like `/query/server/graphql` via some nginx proxy, aliasing, etc. you will need to provide
+the base url to query node server via `GRAPHQL_PLAYGROUND_CDN` environment variable.
+
+```
+# use the following when serving playground at `/query/server/graphql`
+GRAPHQL_PLAYGROUND_CDN="query/server" yarn workspace query-node-root query-node:start:dev 
+```