Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ jobs:
- name: Logs
run: docker compose --profile test --profile debug logs
if: always()
# - name: Trace
# uses: actions/upload-artifact@v4
# with:
# name: trace
# path: pcap/trace.pcap
# if: always()
- name: Trace
uses: actions/upload-artifact@v4
with:
name: trace
path: pcap/trace.pcap
if: always()
- name: Tear Down
run: docker compose --profile test --profile debug down --volumes
if: always()
24 changes: 12 additions & 12 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,18 @@ services:
scscf:
condition: service_healthy

# pcap:
# profiles:
# - debug
# network_mode: host
# command: tcpdump -i any -w /pcap/trace.pcap
# volumes:
# - ./pcap:/pcap
# build:
# context: .
# dockerfile_inline: |
# FROM alpine
# RUN apk add tcpdump
pcap:
profiles:
- debug
network_mode: host
command: ptcpdump -i any --pname kamailio -w /pcap/trace.pcap
volumes:
- ./pcap:/pcap
build:
context: .
dockerfile_inline: |
FROM alpine
RUN wget -qO- https://github.com/mozillazg/ptcpdump/releases/download/v0.36.0/ptcpdump_0.36.0_linux_amd64.tar.gz | tar -C /bin -xzf- ptcpdump


configs:
Expand Down
Loading