You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2019/11/22 13:26:15 UTC

[skywalking] 01/01: Add container checker

This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch docker/ext
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 5f265624c015496249665e80152545322f13cca4
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Fri Nov 22 21:24:17 2019 +0800

    Add container checker
---
 .github/workflows/docker-ci.yaml | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/docker-ci.yaml b/.github/workflows/docker-ci.yaml
index 23d5dc1..7ef0edd 100644
--- a/.github/workflows/docker-ci.yaml
+++ b/.github/workflows/docker-ci.yaml
@@ -18,7 +18,8 @@ name: docker-ci
 
 on: [push]
 env:
-  SCRIPTS_DIR: ./test/scripts
+  SKIP_TEST: true
+  DOCKER_DIR: ./docker
   LOG_DIR: /tmp/skywalking
 jobs:
   build:
@@ -27,5 +28,22 @@ jobs:
       - uses: actions/checkout@v1
       - name: Build docker image
         run: make docker
-      - name: Start oap
-        run: docker run --name oap skywalking/oap
+      - name: Bootstrap cluster
+        run: cd ${DOCKER_DIR} && docker-compose up -d
+      - name: Check port avaliable
+        run: |
+          echo "Waiting for OAP ready"
+          for i in $(seq 1 15); do nc -z -w3 localhost 11800 && exit 0 || sleep 3; done; exit 1
+          echo "OAP is ready"
+          echo "Waiting for UI ready"
+          for i in $(seq 1 15); do nc -z -w3 localhost 8080 && exit 0 || sleep 3; done; exit 1
+           echo "UI is ready"
+      - name: Collect logs
+        run: |
+          docker-compose logs oap > ${LOG_DIR}/oap.txt
+          docker-compose logs ui > ${LOG_DIR}/ui.txt
+          docker-compose logs elasticsearch > ${LOG_DIR}/es.txt
+      - uses: actions/upload-artifact@v1.0.0
+        with:
+          name: logs
+          path: /tmp/skywalking