-
Notifications
You must be signed in to change notification settings - Fork 200
Added debug packages installation when SONIC_CONFIG_DEBUG enabled. #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
redis-tools package depends on libjemalloc1
This reverts commit 73b5fce. libjemalloc1 will be installed directly to orchagent and database
| ## Install common debug-packages | ||
| {% if docker_base_dbgs %} | ||
| RUN apt-get -y install \ | ||
| {% for dbg_pkg in docker_base_dbgs.split(' ') -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to keep list of these packages in buildimage since they are not built bu it but installed directly from apt instead
Just put a list of packages here and use debug config directly in conditional
Dockerfile.j2
Outdated
| exim4-config \ | ||
| exim4-daemon-light | ||
|
|
||
| ## Install common debug-packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is relevant only when debug option is enabled
Move it inside conditional check
| {% if docker_base_dbgs %} | ||
| ## Install common debug-packages | ||
| RUN apt-get -y install \ | ||
| {% for dbg_pkg in docker_base_dbgs.split(' ') -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dbg_pkg [](start = 7, length = 7)
What is dbg_pkg for docker-base? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See this pull request.
sonic-net/sonic-buildimage#234
|
|
||
| ## Clean up | ||
| RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y | ||
| ## Note: NO removing /var/lib/apt/lists/*, shared by all derived images |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this part? /var/lib/apt/lists/ will possibly be obsoleted and there is no benefit to be share then.
…onic-net#4) With adding more columns into the port_config.ini file, the previous logic of checking len(line.split()) == 4 is no longer valid. With adding the logic of parsing the title of the file, the port index could be directly retrieved depending on which column it is. Signed-off-by: Shu0T1an ChenG <[email protected]>
When SONIC_CONFIG_DEBUG enabled, this script performs installation of the debug packages, listed in docker-base.mk