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
The following commit(s) were added to refs/heads/docker/ext by this push:
new 25686a6 Add container checker
25686a6 is described below
commit 25686a63f9797008c998500f9883841caa2daca2
Author: Gao Hongtao <[email protected]>
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..857cb58 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/[email protected]
+ with:
+ name: logs
+ path: /tmp/skywalking