sonic-buildimage/dockers/docker-base-stretch
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
..
etc Set a rate limit on syslog messages from all Docker containers (#2573) 2019-03-04 11:46:48 -08:00
root Define a base Docker image and config-engine docker image based on Debian Stretch (#2076) 2019-01-30 23:05:52 -08:00
Dockerfile.j2 [build]: Added debug symbols to many debug dockers. (#3098) 2019-07-03 22:13:55 -07:00
dpkg_01_drop Define a base Docker image and config-engine docker image based on Debian Stretch (#2076) 2019-01-30 23:05:52 -08:00
LICENSE Define a base Docker image and config-engine docker image based on Debian Stretch (#2076) 2019-01-30 23:05:52 -08:00
no_install_recommend_suggest Define a base Docker image and config-engine docker image based on Debian Stretch (#2076) 2019-01-30 23:05:52 -08:00
sources.list Define a base Docker image and config-engine docker image based on Debian Stretch (#2076) 2019-01-30 23:05:52 -08:00