Skip to content
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

Added debug packages installation when SONIC_CONFIG_DEBUG enabled. #4

Closed
wants to merge 11 commits into from

Conversation

antonpatenko
Copy link

When SONIC_CONFIG_DEBUG enabled, this script performs installation of the debug packages, listed in docker-base.mk

Dockerfile.j2 Outdated
## Install common debug-packages
{% if docker_base_dbgs %}
RUN apt-get -y install \
{% for dbg_pkg in docker_base_dbgs.split(' ') -%}

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

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

Dockerfile.j2 Outdated
{% if docker_base_dbgs %}
## Install common debug-packages
RUN apt-get -y install \
{% for dbg_pkg in docker_base_dbgs.split(' ') -%}
Copy link
Contributor

@qiluo-msft qiluo-msft Feb 6, 2017

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

Copy link
Author

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

Dockerfile.j2 Outdated

## 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
Copy link
Contributor

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.

@jleveque jleveque closed this Jun 7, 2017
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants