Skip to content

Commit

Permalink
CHange directory for container logs
Browse files Browse the repository at this point in the history
  • Loading branch information
moraygrieve committed Nov 11, 2024
1 parent 82ead7e commit f6271f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/local_run_merge_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ jobs:
run: |
cd ${{ github.workspace }}/go-ten/
go run ./testnet/launcher/cmd
- name: 'Collect container logs'
if: always()
run: |
echo "Run docker container log background processes"
cd ${{ github.workspace }}/go-ten/
docker logs -f `docker ps -aqf "name=validator-host"` > validator-host.out 2>&1 &
docker logs -f `docker ps -aqf "name=validator-enclave"` > validator-enclave.out 2>&1 &
docker logs -f `docker ps -aqf "name=sequencer-host"` > sequencer-host.out 2>&1 &
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/local_run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
if: always()
run: |
echo "Run docker container log background processes"
cd ${{ github.workspace }}/go-ten/
docker logs -f `docker ps -aqf "name=validator-host"` > validator-host.out 2>&1 &
docker logs -f `docker ps -aqf "name=validator-enclave"` > validator-enclave.out 2>&1 &
docker logs -f `docker ps -aqf "name=sequencer-host"` > sequencer-host.out 2>&1 &
Expand Down

0 comments on commit f6271f4

Please sign in to comment.