sonic-buildimage/dbg_files.sh
Renuka Manavalan 0bca6b8468
1) Build debug docker image for each docker (#3104)
2) Install debug tools in every debug docker image
3) Install available debug symbols in debug docker image
4) Provide additional host/docker mapping for host dirs /src & /debug
    4.1) The one-image will have source code under /src
    4.2) /debug is mapped as rw. User can put his core file there and use this dir to
         collect debug session logs too.
5) Build debug image using debug dockers
6) Source code is archived into /src of debug image
7) The welcome banner is extended to display these additional facilities in debug image.
2019-07-09 08:55:03 -07:00

28 lines
506 B
Bash
Executable File

#!/bin/bash
# Provie file paths to archive for debug image as relative to src subdir
#
SRC_DIR_LIST="\
libteam \
lldpd \
libnl3 \
radvd \
redis \
snmpd \
sonic-dbsyncd \
sonic-frr \
sonic-platform-common \
sonic-platform-daemons \
sonic-py-swsssdk \
sonic-sairedis \
sonic-snmpagent \
sonic-swss \
sonic-swss-common \
tacacs"
for i in $SRC_DIR_LIST
do
find $i/ -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -type f
done