This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/dockers
Renuka Manavalan 76bf5a0bc4 [build]: Added debug symbols to many debug dockers. (#3098)
* Added debug symbols to many debug dockers.

* For debug images *only*:
1) Archive source files into debug image
2) Archived source is copied into /src
3) Created an empty dir /debug
4) Mount both /src as ro & /debug as rw into every docker
5) Login banner will give some details on /src & /debug
6) Devs can copy core file into /debug and view it from inside a container.
7) Dev may create all gdb logs and other data directly into /debug.

* Dropped redundant REDIS_TOOLS per review comments.

* Added debug symbols to frr package and hence FRR based BGP docker.

* 1) Moved dbg_files.sh to scripts/
2) Src directories to archive are now collected from individual Makefiles.
3) Added few more debug symbols
4) Added few more debug dockers.

Here after no more changes except per review comments.

To debug:
Install required version of debug image in Switch or VM.
Copy core file into /debug of host
Get into Docker
gdb /usr/bin/<daemon> -c /debug/<your core file>
set directory /src/... <-- inside gdb to get the source

For non-in-depth debugging:

Download corresponding debug Docker image (docker-...-dbg.gz) to your VM
Load the image
Run image with entrypoint as 'bash' with dir containing core mapped in.
Run gdb on the core.
2019-07-03 22:13:55 -07:00
..
docker-base Remove unused packages in docker images and host (#2807) 2019-04-29 17:21:24 -07:00
docker-base-stretch [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
docker-basic_router Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
docker-config-engine Remove unused packages in docker images and host (#2807) 2019-04-29 17:21:24 -07:00
docker-config-engine-stretch [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-database [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-dhcp-relay [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-fpm-frr [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-fpm-gobgp Generate interface table to have an entry designated to default VRF. (#2848) 2019-06-10 14:02:55 -07:00
docker-fpm-quagga Generate interface table to have an entry designated to default VRF. (#2848) 2019-06-10 14:02:55 -07:00
docker-lldp-sv2 [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-orchagent [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-platform-monitor [devices]: DELL Platform 2.0 API Infra and Reboot Reason support in Z9100 & S6100 (#3063) 2019-07-03 06:52:35 -07:00
docker-ptf [docker-ptf]: move docker-ptf to stretch (#2954) 2019-05-29 18:26:52 -07:00
docker-ptf-saithrift [docker-ptf-*]: Use buildimage infrastructure to build docker-ptf-* (#638) 2017-05-26 17:18:11 -07:00
docker-router-advertiser [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-snmp-sv2 [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-sonic-mgmt Remove unused packages in docker images and host (#2807) 2019-04-29 17:21:24 -07:00
docker-sonic-telemetry [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-teamd [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
dockerfile-macros.j2 [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00