Skip to content

Commit

Permalink
redirect logs from ceresdb container in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiKaiWi committed Mar 16, 2023
1 parent 8d3df79 commit 4010832
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ jobs:
make integration-test
env:
RUST_BACKTRACE: "1"
- name: Redirect Logs
run: |
docker logs -t ceresdb0 > /tmp/ceresdb-0.log
docker logs -t ceresdb1 > /tmp/ceresdb-1.log
- name: Upload Logs
if: always()
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-CI
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV RUST_BACKTRACE 1
COPY ./ceresdb-server /usr/bin/ceresdb-server
RUN chmod +x /usr/bin/ceresdb-server

COPY ./docker/entrypoint-ci.sh /entrypoint.sh
COPY ./docker/entrypoint.sh /entrypoint.sh
COPY ./docs/minimal.toml /etc/ceresdb/ceresdb.toml

COPY ./docker/tini /tini
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ services:
- "5441:5441"
volumes:
- ./docker/ceresdb-cluster-0.toml:/etc/ceresdb/ceresdb.toml
- /tmp/ceresdb-0.log:/tmp/ceresdb.log
depends_on:
- ceresmeta

Expand All @@ -28,6 +27,5 @@ services:
- "5442:5442"
volumes:
- ./docker/ceresdb-cluster-1.toml:/etc/ceresdb/ceresdb.toml
- /tmp/ceresdb-1.log:/tmp/ceresdb.log
depends_on:
- ceresmeta
19 changes: 0 additions & 19 deletions docker/entrypoint-ci.sh

This file was deleted.

0 comments on commit 4010832

Please sign in to comment.