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

[docker-config-engine]: introduce docker sonic config engine #274

Merged
merged 3 commits into from
Feb 8, 2017

Conversation

lguohan
Copy link
Collaborator

@lguohan lguohan commented Feb 7, 2017

No description provided.

@lguohan
Copy link
Collaborator Author

lguohan commented Feb 7, 2017

one image size decreased by ~30%

-rw-r--r-- 1 lgh lgh 451227877 Feb  7 08:17 sonic-aboot-broadcom-1.swi
-rw-r--r-- 1 lgh lgh 615025670 Feb  7 02:58 sonic-aboot-broadcom.swi

RUN apt-get install -y python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml

COPY \
{% for deb in docker_config_engine_debs.split(' ') -%}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra '-'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like it is the same as before

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also strip whitespace in templates by hand. If you add a minus sign (-) to the start or end of a block (e.g. a For tag), a comment, or a variable expression, the whitespaces before or after that block will be removed:

it is correct

COPY \
{% for deb in docker_config_engine_debs.split(' ') -%}
debs/{{ deb }}{{' '}}
{%- endfor -%}
Copy link
Collaborator

@qiluo-msft qiluo-msft Feb 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra '-'s? {% endfor %}. Also below.

Copy link
Collaborator

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments.

sonic config engine provide the sonic configure engine for all sonic
dockers that rely on the engine to generate runtime configuration.
@lguohan
Copy link
Collaborator Author

lguohan commented Feb 7, 2017

rebase master

RUN apt-get -y install python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml


COPY \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll vote for keep those lines as removing them will cause confusion when later developers want to add dependency for this docker.
If we really want to remove those lines, maybe revert this docker from DOCKER_IMAGES back to SIMPLE_DOCKER_IMAGES in rule.mk?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should rename from Dockerfile.j2 to Dockerfile as well? SIMPLE_DOCKER don't use dockerfile templates

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

# Dependencies for sonic-cfggen
RUN apt-get install -y python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml

COPY \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with dhcp-relay. Revert to SIMPLE_DOCKER_IMAGES?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do.

@taoyl-ms
Copy link
Contributor

taoyl-ms commented Feb 7, 2017

:shipit:

@lguohan lguohan merged commit b6753e7 into sonic-net:master Feb 8, 2017
@lguohan lguohan deleted the cfg branch November 6, 2017 04:31
stcheng pushed a commit to stcheng/sonic-buildimage that referenced this pull request Jun 13, 2019
sonic-swss:
[vnet]: Extend Bitmap VNET test with "remove" flows (sonic-net#900)
[vxlanorch] Ambiguous return code for removeNextHopTunnel (sonic-net#880)
Address review comment: remove data member m_entriesCreated, which is introduced for dependancy resolution purpose. (sonic-net#839)
Set LAG mtu value based on kernel netlink msg (sonic-net#922)
[orchagent]: Remove try/catch for correct coredump file (sonic-net#790)
[aclorch] unittest by gtest (sonic-net#924)
[orchagent]: Added support of PFC WD for BFN platform (sonic-net#823)
[vnetorch]: Fix tunnel route removal flow for bitmap VNET (sonic-net#912)
pkill -9 zebra for frr warm restart VS test fix (sonic-net#927)
swss-orchagent: add new orch for vnet routes/tunnel routes tables in CONFIG_DB  (sonic-net#907)
[debian]: Do not build test when building with real SAI (sonic-net#932)

sonic-swss-common:
Add schema for dot1p to tc mapping config table (sonic-net#274)
Fix MIRROR_SESSION table macro name (sonic-net#264)
[schema] Add VNET Route tables in config_db (sonic-net#279)
[debian] increment debian compatibility to 10 to enable parallel package build (sonic-net#280)
White-list clear_stats op from orchagent to syncd (sonic-net#281)
Correct comment (sonic-net#282)

sonic-sairedis:
[debian]: Change build order in target binary (sonic-net#452)
[debian] increment debian compatibility to 10 to enable parallel package build (sonic-net#461)
Full sleep wait flex counter polling thread when POLL_COUNTER_STATUS is disable (sonic-net#462)
add support for SAI_ATTR_VALUE_TYPE_ACL_CAPABILITY (sonic-net#460)
Check if port VID exists in db on flex counter query (sonic-net#464)
Full sleep wait change for PFC watchdog (sonic-net#465)
Add synchronous clear_stats operation path (sonic-net#463)
Modify sai_create_port to breakout a port for virtual switch (sonic-net#454)
Fix typo  (sonic-net#467)

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
stcheng pushed a commit that referenced this pull request Jun 14, 2019
sonic-swss:
[vnet]: Extend Bitmap VNET test with "remove" flows (#900)
[vxlanorch] Ambiguous return code for removeNextHopTunnel (#880)
Address review comment: remove data member m_entriesCreated, which is introduced for dependancy resolution purpose. (#839)
Set LAG mtu value based on kernel netlink msg (#922)
[orchagent]: Remove try/catch for correct coredump file (#790)
[aclorch] unittest by gtest (#924)
[orchagent]: Added support of PFC WD for BFN platform (#823)
[vnetorch]: Fix tunnel route removal flow for bitmap VNET (#912)
pkill -9 zebra for frr warm restart VS test fix (#927)
swss-orchagent: add new orch for vnet routes/tunnel routes tables in CONFIG_DB  (#907)
[debian]: Do not build test when building with real SAI (#932)

sonic-swss-common:
Add schema for dot1p to tc mapping config table (#274)
Fix MIRROR_SESSION table macro name (#264)
[schema] Add VNET Route tables in config_db (#279)
[debian] increment debian compatibility to 10 to enable parallel package build (#280)
White-list clear_stats op from orchagent to syncd (#281)
Correct comment (#282)

sonic-sairedis:
[debian]: Change build order in target binary (#452)
[debian] increment debian compatibility to 10 to enable parallel package build (#461)
Full sleep wait flex counter polling thread when POLL_COUNTER_STATUS is disable (#462)
add support for SAI_ATTR_VALUE_TYPE_ACL_CAPABILITY (#460)
Check if port VID exists in db on flex counter query (#464)
Full sleep wait change for PFC watchdog (#465)
Add synchronous clear_stats operation path (#463)
Modify sai_create_port to breakout a port for virtual switch (#454)
Fix typo  (#467)

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
Kalimuthu-Velappan pushed a commit to Kalimuthu-Velappan/sonic-buildimage that referenced this pull request Sep 12, 2019
seiferteric pushed a commit to project-arlo/sonic-buildimage that referenced this pull request Oct 14, 2019
* Update src/sonic-swss-common from branch 'broadcom_sonic'
  to 124d498601ff860736888c2ece1c9753b4da41b9
  - Merge 201904 branch to broadcom_sonic branch on Mon Jul  1 13:57:58 PDT 2019
    
    Change-Id: I38ebacb16ce081d657b369dadb0ae213737484b0
    
  - Correct comment (sonic-net#282)
    
    Signed-off-by: Wenda Ni <wenni@microsoft.com>
  - White-list clear_stats op from orchagent to syncd (sonic-net#281)
    
    Signed-off-by: Wenda Ni <wenni@microsoft.com>
  - [debian] increment debian compatibility to 10 to enable parallel package build (sonic-net#280)
    
    From debhelper man pages:
    
    "If neither option is specified, debhelper currently defaults to
    --parallel in compat 10 (or later) and --no-parallel otherwise."
    
  - [schema] Add VNET Route tables in config_db (sonic-net#279)
    
    * Add VNET Route tables in config_db
    * fix the space alignment
    * address alighment by replacing tab with space
    
  - Fix MIRROR_SESSION table macro name (sonic-net#264)
    
    Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
  - Add schema for dot1p to tc mapping config table (sonic-net#274)
    
    Signed-off-by: Wenda Ni <wenni@microsoft.com>
madhanmellanox pushed a commit to madhanmellanox/sonic-buildimage that referenced this pull request Mar 23, 2020
dmytroxshevchuk pushed a commit to dmytroxshevchuk/sonic-buildimage that referenced this pull request Aug 31, 2020
For easier testing when using python framework
sg893052 pushed a commit to sg893052/sonic-buildimage that referenced this pull request Apr 25, 2022
yxieca added a commit to yxieca/sonic-buildimage that referenced this pull request Jul 18, 2022
platform-daemon:
* 17f886d 2022-07-18 | [ycabled] remove some redundant logging for active-active cable type (sonic-net#274) (HEAD -> 202205, github/202205) [vdahiya12]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
yxieca added a commit that referenced this pull request Jul 19, 2022
platform-daemon:
* 17f886d 2022-07-18 | [ycabled] remove some redundant logging for active-active cable type (#274) (HEAD -> 202205, github/202205) [vdahiya12]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
jaganbal-a pushed a commit to jaganbal-a/sonic-buildimage_plat_daemon that referenced this pull request Jul 21, 2022
sonic-platform-daemon submodule update
005ec30 [ycabled] remove some redundant logging for active-active cable type (sonic-net#274)
e889625 [ycabled][grpc] Fix some time interval,options for grpc keep alive to work (sonic-net#271)
1651050 [ycabled] add some retry logic for gRPC channel setup;fix no channel gRPC notification (sonic-net#269)
7c0be24 [CMIS]Improved 400G link bring up sequence (sonic-net#254)
df447b4 [ycabled] Fix the init values for active-active ports (sonic-net#266)
ec84af4 [sonic-ycabled] fix grpc logic for timeout,cli HWSTATUS value retrival logic for active-active cable (sonic-net#264)
prgeor pushed a commit that referenced this pull request Jul 25, 2022
sonic-platform-daemon submodule update
005ec30 [ycabled] remove some redundant logging for active-active cable type (#274)
e889625 [ycabled][grpc] Fix some time interval,options for grpc keep alive to work (#271)
1651050 [ycabled] add some retry logic for gRPC channel setup;fix no channel gRPC notification (#269)
7c0be24 [CMIS]Improved 400G link bring up sequence (#254)
df447b4 [ycabled] Fix the init values for active-active ports (#266)
ec84af4 [sonic-ycabled] fix grpc logic for timeout,cli HWSTATUS value retrival logic for active-active cable (#264)

Co-authored-by: Jaganathan Anbalagan <jaganbal@cisco.com>
skbarista pushed a commit to skbarista/sonic-buildimage that referenced this pull request Aug 17, 2022
platform-daemon:
* 17f886d 2022-07-18 | [ycabled] remove some redundant logging for active-active cable type (sonic-net#274) (HEAD -> 202205, github/202205) [vdahiya12]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
dprital added a commit to dprital/sonic-buildimage that referenced this pull request Jan 30, 2023
Update sonic-snmpagent submodule pointer to include the following:
* 4f55473 Use github code scanning instead of LGTM ([sonic-net#274](sonic-net/sonic-snmpagent#274))

Signed-off-by: dprital <drorp@nvidia.com>
liat-grozovik pushed a commit that referenced this pull request Feb 1, 2023
Update sonic-snmpagent submodule pointer to include the following:
* 4f55473 Use github code scanning instead of LGTM ([#274](sonic-net/sonic-snmpagent#274))

Signed-off-by: dprital <drorp@nvidia.com>
qiluo-msft added a commit that referenced this pull request Feb 16, 2023
#### Why I did it
Include below commits:
```
7147354 2023-02-14 | Fix: zero route may have empty nexthop (#276) [Qi Luo]
e60a64c 2022-11-30 | Use github code scanning instead of LGTM (#274) [Liu Shilong]
```
mihirpat1 pushed a commit to mihirpat1/sonic-buildimage that referenced this pull request Feb 21, 2023
…onic-net#274)

This change is required for stop posting MUX_CABLE_INFO entries into state DB for active-active cable_type since for these cables there is no i2c/eeprom or muxcable.
This loop is independent of main loop, hence it needs to be changed separately

Description
Motivation and Context
How Has This Been Tested?
Unit-tests

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
vivekrnv pushed a commit to vivekrnv/sonic-buildimage that referenced this pull request Mar 18, 2024
Merge latest upstream changes and add bookworm support for bluefield
mssonicbld added a commit that referenced this pull request Aug 18, 2024
…lly (#19896)

#### Why I did it
src/sonic-gnmi
```
* 64ed32b - (HEAD -> master, origin/master, origin/HEAD) Merge pull request #274 from isabelmsft/file_stat_gnoi (5 days ago) [isabelmsft]
* 46df786 - fix spacing (8 days ago) [isabelmsft]
* 894ffe6 - fix spacing (8 days ago) [isabelmsft]
* 6fe7d32 - fix formatting (8 days ago) [isabelmsft]
* 6b435c9 - uncomment check (2 weeks ago) [isabelmsft]
* 302ca17 - increase coverage (2 weeks ago) [isabelmsft]
* 0b2cb90 - fix local test (2 weeks ago) [isabelmsft]
* 7c392c8 - fix syntax (2 weeks ago) [isabelmsft]
* e06641d - inc cov atmpt (2 weeks ago) [isabelmsft]
* 328e631 - Merge branch 'file_stat_gnoi' of https://github.com/isabelmsft/sonic-gnmi into file_stat_gnoi (3 weeks ago) [isabelmsft]
|\ 
| failure_prs.log 8944bb1 - Merge branch 'master' into file_stat_gnoi (3 weeks ago) [isabelmsft]
* | 14bf34a - update test (3 weeks ago) [isabelmsft]
|/ 
* ad0e226 - add UT, clean error (3 weeks ago) [isabelmsft]
* 34a94d6 - update (3 weeks ago) [isabelmsft]
* d860f28 - update file system (3 weeks ago) [isabelmsft]
* 36ec608 - update (3 weeks ago) [isabelmsft]
* 3430dd2 - update (3 weeks ago) [isabelmsft]
* 0b70222 - update (3 weeks ago) [isabelmsft]
* 5236768 - update (3 weeks ago) [isabelmsft]
* 0fe0971 - feature change (3 weeks ago) [isabelmsft]
```
#### How I did it
#### How to verify it
#### Description for the changelog
matiAlfaro pushed a commit to Marvell-switching/sonic-buildimage that referenced this pull request Aug 21, 2024
…lly (sonic-net#19896)

#### Why I did it
src/sonic-gnmi
```
* 64ed32b - (HEAD -> master, origin/master, origin/HEAD) Merge pull request sonic-net#274 from isabelmsft/file_stat_gnoi (5 days ago) [isabelmsft]
* 46df786 - fix spacing (8 days ago) [isabelmsft]
* 894ffe6 - fix spacing (8 days ago) [isabelmsft]
* 6fe7d32 - fix formatting (8 days ago) [isabelmsft]
* 6b435c9 - uncomment check (2 weeks ago) [isabelmsft]
* 302ca17 - increase coverage (2 weeks ago) [isabelmsft]
* 0b2cb90 - fix local test (2 weeks ago) [isabelmsft]
* 7c392c8 - fix syntax (2 weeks ago) [isabelmsft]
* e06641d - inc cov atmpt (2 weeks ago) [isabelmsft]
* 328e631 - Merge branch 'file_stat_gnoi' of https://github.com/isabelmsft/sonic-gnmi into file_stat_gnoi (3 weeks ago) [isabelmsft]
|\ 
| failure_prs.log 8944bb1 - Merge branch 'master' into file_stat_gnoi (3 weeks ago) [isabelmsft]
* | 14bf34a - update test (3 weeks ago) [isabelmsft]
|/ 
* ad0e226 - add UT, clean error (3 weeks ago) [isabelmsft]
* 34a94d6 - update (3 weeks ago) [isabelmsft]
* d860f28 - update file system (3 weeks ago) [isabelmsft]
* 36ec608 - update (3 weeks ago) [isabelmsft]
* 3430dd2 - update (3 weeks ago) [isabelmsft]
* 0b70222 - update (3 weeks ago) [isabelmsft]
* 5236768 - update (3 weeks ago) [isabelmsft]
* 0fe0971 - feature change (3 weeks ago) [isabelmsft]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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.

3 participants