Skip to content

Reduce docker images size.#196

Merged
pavel-shirshov merged 2 commits intosonic-net:masterfrom
oleksandrivantsiv:master
Jan 19, 2017
Merged

Reduce docker images size.#196
pavel-shirshov merged 2 commits intosonic-net:masterfrom
oleksandrivantsiv:master

Conversation

@oleksandrivantsiv
Copy link
Collaborator

@oleksandrivantsiv oleksandrivantsiv commented Jan 19, 2017

Copy to docker images only required dependencies.

Install only required dependencies.
@oleksandrivantsiv
Copy link
Collaborator Author

oleksandrivantsiv commented Jan 19, 2017

Images size with all target/deps directory copied:

docker-syncd-mlnx                  502.1 MB
docker-snmp-sv2                    442.1 MB
docker-lldp-sv2                    446.1 MB
docker-orchagent-mlnx              322.7 MB
docker-fpm                         325.5 MB
docker-database                    316.1 MB

Only required packages:

docker-syncd-mlnx                  468.4 MB
docker-snmp-sv2                    356.1 MB
docker-lldp-sv2                    360 MB
docker-orchagent-mlnx              233 MB
docker-fpm                         237.7 MB
docker-teamd                       228.7 MB
docker-database                    226.1 MB

@pavel-shirshov pavel-shirshov merged commit 80d0d2d into sonic-net:master Jan 19, 2017
Kalimuthu-Velappan pushed a commit to Kalimuthu-Velappan/sonic-buildimage that referenced this pull request Sep 12, 2019
* Get Vlan Id from ASIC_STATE Vlan Object if bvid present
monaliusa pushed a commit to monaliusa/sonic-buildimage that referenced this pull request Aug 7, 2020
…e2bd_get_event_change

[device/celestica]: Add support for fan/voltage event to questone2bd get_change_event api
dmytroxshevchuk pushed a commit to dmytroxshevchuk/sonic-buildimage that referenced this pull request Aug 31, 2020
xumia pushed a commit to xumia/sonic-buildimage-1 that referenced this pull request Feb 16, 2021
…hon 2 for 201911 branch (sonic-net#196)

Something changed recently which caused the sonic-utilities 201911 PR build to fail to install the `mock` package from PyPI implicitly. Here, we install version 3.0.5 (the latest version available for Python 2) of the package explicitly before building the sonic-utilities package.

Also, explicitly call `pip2` and `python2` instead of `pip` and `python` just to ensure the proper versions are used.
qiluo-msft pushed a commit that referenced this pull request Feb 23, 2021
183162f Fix issue: expect redis pubsub data to be str type instead of bytes type (#196)

#### Why I did it

Update submodule pointer for snmpagent to include PR sonic-net/sonic-snmpagent#196 

#### How I did it

Update submodule pointer for snmpagent

#### How to verify it

Run build
qiluo-msft pushed a commit that referenced this pull request Mar 3, 2021
183162f Fix issue: expect redis pubsub data to be str type instead of bytes type (#196)

#### Why I did it

Update submoduel for snmpagent for 202012 branch since there is not 202012 branch for snmpagent

#### How I did it

Update submodule pointer

#### How to verify it

Run build
daall added a commit to daall/sonic-buildimage that referenced this pull request Mar 10, 2021
- Unset CONFIG_THERMAL_STATISTICS to prevent kernel crash (sonic-net#199)
- [dni_dps460] Add attributes to retrieve PMBus status command codes (sonic-net#197)
- [mellanox]: Backport new kernel patches (sonic-net#195)
- [ci]: build amd64/armhf/arm64 for CI build (sonic-net#196)
- Fix read and write failure to ‘fan1_target’ attribute of ‘dni_dps460’ driver. (sonic-net#183)

Signed-off-by: Danny Allen <daall@microsoft.com>
liat-grozovik pushed a commit that referenced this pull request Mar 11, 2021
- Unset CONFIG_THERMAL_STATISTICS to prevent kernel crash (#199)
- [dni_dps460] Add attributes to retrieve PMBus status command codes (#197)
- [mellanox]: Backport new kernel patches (#195)
- [ci]: build amd64/armhf/arm64 for CI build (#196)
- Fix read and write failure to ‘fan1_target’ attribute of ‘dni_dps460’ driver. (#183)

Signed-off-by: Danny Allen <daall@microsoft.com>
jleveque pushed a commit that referenced this pull request Jun 18, 2021
7670b49 [sonic_platform/sfp_base] Add common definition for get SFP error status (#194)
1336598 [CI] sonic-config-engine now depends on SONiC YANG packages (#198)
f57fee4 Add to check pcie configuration revision to get the right configuration. (#195)
4e3a0a0 Fix typo for midplane APIs. (#196)
fc2e9e2 [eeprom_tlv_info] Optimize EEPROM data process by using visitor pattern (#193)
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
183162f Fix issue: expect redis pubsub data to be str type instead of bytes type (sonic-net#196)

#### Why I did it

Update submodule pointer for snmpagent to include PR sonic-net/sonic-snmpagent#196 

#### How I did it

Update submodule pointer for snmpagent

#### How to verify it

Run build
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
7670b49 [sonic_platform/sfp_base] Add common definition for get SFP error status (sonic-net#194)
1336598 [CI] sonic-config-engine now depends on SONiC YANG packages (sonic-net#198)
f57fee4 Add to check pcie configuration revision to get the right configuration. (sonic-net#195)
4e3a0a0 Fix typo for midplane APIs. (sonic-net#196)
fc2e9e2 [eeprom_tlv_info] Optimize EEPROM data process by using visitor pattern (sonic-net#193)
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jan 24, 2022
Signed-off-by: pettershao-ragilenetworks <pettershao@ragilenetworks.com>
SuvarnaMeenakshi pushed a commit to SuvarnaMeenakshi/sonic-buildimage that referenced this pull request Mar 16, 2022
…ype (sonic-net#196)

**- What I did**

Change redis pubsub expect data type from bytes to str. There was a snmpagent framework change which transfer redis pubsub data from bytes to str, after that change, there is no need for non-framework code to do this transfer. So now we need handle str data directly.

**- How I did it**

Change data expectation from bytes to str

**- How to verify it**

Run regression and manual test
sg893052 pushed a commit to sg893052/sonic-buildimage that referenced this pull request Apr 25, 2022
snider-nokia pushed a commit to snider-nokia/sonic-buildimage that referenced this pull request Apr 6, 2023
In midplane API, default method should be raise NotImplementedError not return NotImplementedError
vivekrnv pushed a commit to vivekrnv/sonic-buildimage that referenced this pull request Apr 28, 2023
Signed-off-by: Guohan Lu <lguohan@gmail.com>
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jun 5, 2024
mssonicbld added a commit that referenced this pull request Feb 18, 2025
…utomatically (#21565)

#### Why I did it
src/sonic-host-services
```
* 69788c2 - (HEAD -> master, origin/master, origin/HEAD) Fix: Set default values for kdump enhancement (#217) (3 days ago) [Muhammad Ali Hussnain]
* d7e8021 - [chassis] make multi_asic_ns_to_host_fwd False for EXTERNAL_CLIENT acl service (#218) (4 days ago) [Arvindsrinivasan Lakshmi Narasimhan]
* d925457 - Fix sudo command failed because root user password expired by password hardening feature issue (#215) (4 days ago) [Hua Liu]
* 7e1b280 - reverted ssh_key to ssh_string (#216) (6 days ago) [Muhammad Ali Hussnain]
* 741a9df - Handle NotImplementedError in determine-reboot-cause that will be thrown on VS Chassis platform (#211) (7 days ago) [Changrong Wu]
* 47f6feb - check sonic-installer message and return proper error code for when image doesn't exist. (#210) (7 days ago) [Dawei Huang]
* 1fe9a76 - Updated Key and Path (#209) (7 days ago) [Muhammad Ali Hussnain]
* bb0a31c - Adding support for persistent storage and retrieval of DPU reboot-cause (#169) (8 days ago) [rameshraghupathy]
* 5e08927 - [hostcfgd] Fix the state machine during eth0 default route check failure (#196) (2 weeks ago) [Vivek]
* d2cc1a8 - Add ImageService.set_next_boot for GNOI Activate OS. (#207) (3 weeks ago) [Dawei Huang]
* 9c49913 - register image_service and docker_service. (#208) (3 weeks ago) [Dawei Huang]
* d88d8d0 - Implementation for ImageService.List (#206) (4 weeks ago) [Dawei Huang]
* d7e4df5 - Enabled configuring the default number of kdumps in Linux. (#202) (4 weeks ago) [Mridul Bajpai]
* ca9d329 - kdump-remote feature in hostcfgd (#166) (4 weeks ago) [Muhammad Ali Hussnain]
```
#### How I did it
#### How to verify it
#### Description for the changelog
dgsudharsan pushed a commit to dgsudharsan/sonic-buildimage that referenced this pull request Jul 1, 2025
…AD automatically (sonic-net#1295)

#### Why I did it
src/sonic-utilities
```
* e2a1eaed - (HEAD -> 202412, origin/202412) Merge pull request sonic-net#196 from mssonicbld/sonicbld/202412-merge (23 hours ago) [mssonicbld]
* ef0659eb - Merge branch '202411' of https://github.com/sonic-net/sonic-utilities into 202412 (23 hours ago) [Sonic Automation]
* 84c3cd8b - [Arista] Add Arista-7050CX3-32S-C28S4 to generic_config_updater (sonic-net#3935) (2 days ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vmittal-msft pushed a commit to vmittal-msft/sonic-buildimage that referenced this pull request Oct 20, 2025
…AD automatically (sonic-net#1302)

#### Why I did it
src/sonic-utilities
```
* 5d641fed - (HEAD -> 202503, origin/202503) Merge pull request sonic-net#197 from mssonicbld/sonicbld/202503-merge (23 hours ago) [mssonicbld]
* 47727466 - Merge branch '202412' of https://github.com/Azure/sonic-utilities.msft into 202503 (23 hours ago) [Sonic Automation]
* e2a1eaed - (origin/202412) Merge pull request sonic-net#196 from mssonicbld/sonicbld/202412-merge (2 days ago) [mssonicbld]
* ef0659eb - Merge branch '202411' of https://github.com/sonic-net/sonic-utilities into 202412 (2 days ago) [Sonic Automation]
* 84c3cd8b - [Arista] Add Arista-7050CX3-32S-C28S4 to generic_config_updater (sonic-net#3935) (3 days ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
jianyuewu pushed a commit to jianyuewu/sonic-buildimage that referenced this pull request Feb 10, 2026
…ure (sonic-net#196)

The last del command in the following flow will fail because of a bug in MgmtIfaceCfg. During vrf add, it tries to update the default route and if the route is not present, the command will write an error log

MgmtIfaceCfg is not saving the saving the state in the internal variable. This will cause problem next time and update comes.

config vrf add mgmt
config vrf del mgmt
config vrf add mgmt
config vrf del mgmt
Added a UT and verified the fix

Dec 18 03:57:43 sonic hostcfgd[98362]: MgmtIfaceCfg: mgmt vrf state update
Dec 18 03:57:43 sonic hostcfgd[98362]: Set mgmt vrf state true
Dec 18 03:57:50 sonic hostcfgd[98362]: MgmtIfaceCfg: Could not delete eth0 route
Dec 18 03:58:05 sonic hostcfgd[98362]: MgmtIfaceCfg: mgmt vrf state update
Dec 18 03:58:05 sonic hostcfgd[98362]: Set mgmt vrf state false
mssonicbld added a commit that referenced this pull request Mar 12, 2026
…omatically (#25873)

#### Why I did it
src/sonic-mgmt-common
```
* b420c65 - (HEAD -> master, origin/master, origin/HEAD) bump go version to 1.21 (#208) (6 hours ago) [sigabrtv1]
* d802877 - Implement translib backend logic for the gNSI Pathz (#196) (7 days ago) [niranjanivivek]
* 45b3556 - Implement translib backend logic for the gNSI Authz (#200) (7 days ago) [niranjanivivek]
```
#### 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.

2 participants