Skip to content

Ensure platform has a chance to override defaults #7525

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Ensure platform has a chance to override defaults #7525

wants to merge 3 commits into from

Conversation

VenkatCisco
Copy link
Contributor

Why I did it

This provides ability for Platform to override certain defaults specified in the SONiC's rules/config file or via the environment variables. This gives build time & run time flexibility for a vendor platform to scale over build and run time issues

How I did it

Check if platform//rules/config file exists and if so then source it

How to verify it

Two such examples are as follows:

example1:
For instance, certain build time docker mounts issues in internal servers can be overcome:
DOCKER_BUILDER_MOUNTS :=
$(if $(BUILD_DOCKER_CONFIG),$(BUILD_DOCKER_CONFIG),/etc/docker/interior.daemon.json):/etc/docker/daemon.json:ro

example 2:
DEFAULT_USERNAME := foo
DEFAULT_PASSWORD := bar

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@VenkatCisco VenkatCisco marked this pull request as ready for review May 6, 2021 04:31
@qiluo-msft
Copy link
Collaborator

Regarding your example 2, you should use USERNAME to override DEFAULT_USERNAME. You don't need this PR to achieve it.

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.

2 participants