sonic-buildimage/dockers
Tamer Ahmed 5f3c4fac4b
[docker-orchagent] Call sonic-cfggen Once (#4936)
Optimizing number of calls made to sonic-cfggen during service
start up as it adds to total system boot up time.

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>

**- Why I did it**
sonic-cfggen call is slow and it adds to system start up time

**- How I did it**
places all required variable into single template and called into sonic-cfggen using this template

**- How to verify it**
***-Test 1***
there is an average saving of .5 to 1 sec between old script and new script
```
root@str-s6000-acs-14:/# time ./orchagent_old.sh
/usr/bin/orchagent -d /var/log/swss -b 8192 -m f4:8e:38:16:bc:8d

real	0m3.546s
user	0m2.365s
sys	0m0.585s

root@str-s6000-acs-14:/# time ./orchagent_new.sh
/usr/bin/orchagent -d /var/log/swss -b 8192 -m f4:8e:38:16:bc:8d

real	0m2.058s
user	0m1.650s
sys	0m0.363s
```
***-Test 2***
Built an image with this change and orchagent is running with intended params:
```
admin@str-s6000-acs-14:~$ ps -ef | grep orchagent
root      2988  1901  1 02:09 pts/0    00:00:02 /usr/bin/orchagent -d /var/log/swss -b 8192 -m f4:8e:38:16:bc:8d
```

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
2020-07-14 15:36:47 -07:00
..
docker-base [apt] Instruct apt-get to NOT check the "Valid Until" date in Release files (#3973) 2020-01-07 15:52:49 -08:00
docker-base-buster [telemetry] Call sonic-cfggen Once (#4901) 2020-07-12 18:08:52 +00:00
docker-base-stretch [telemetry] Call sonic-cfggen Once (#4901) 2020-07-12 18:08:52 +00:00
docker-basic_router Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
docker-config-engine Remove unused packages in docker images and host (#2807) 2019-04-29 17:21:24 -07:00
docker-config-engine-buster [mgmt-framework]: convert mgmt-framework to use buster docker (#4480) 2020-04-28 15:57:13 -07:00
docker-config-engine-stretch [build]: Improve dockerfile instructions (#3048) 2019-06-22 11:26:23 -07:00
docker-database [sonic-buildimage] Changes to make network specific sysctl common for both host and docker namespace (#4838) 2020-07-12 18:08:51 +00:00
docker-dhcp-relay [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
docker-fpm-frr "[config]: Multi ASIC loopback changes (#4895) 2020-07-12 18:08:51 +00:00
docker-fpm-gobgp [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
docker-fpm-quagga [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
docker-iccpd [docker-iccpd]: use service dependency in supervisord to start services 2020-05-22 11:01:28 -07:00
docker-lldp [docker] Correct the lldp-syncd program name in critical_process file. (#4862) 2020-06-28 11:08:30 -07:00
docker-nat [NAT]: Update the conntrack entries timeout to Max value after warmboot (#4596) 2020-07-12 18:08:52 +00:00
docker-orchagent [docker-orchagent] Call sonic-cfggen Once (#4936) 2020-07-14 15:36:47 -07:00
docker-platform-monitor [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
docker-ptf [docker-ptf] add gnmi python client (#4928) 2020-07-12 18:08:52 +00:00
docker-ptf-saithrift [docker-ptf-*]: Use buildimage infrastructure to build docker-ptf-* (#638) 2017-05-26 17:18:11 -07:00
docker-router-advertiser [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
docker-sflow [docker-sflow]: upgrade docker-sflow on buster (#4904) 2020-07-12 18:08:52 +00:00
docker-snmp [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
docker-sonic-mgmt [mgmt docker] move pycryptodome installation to the end of the docker building (#4917) 2020-07-12 18:08:52 +00:00
docker-sonic-mgmt-framework [mgmt-framework] Call sonic-cfggen Once (#4937) 2020-07-12 18:08:52 +00:00
docker-sonic-restapi [dockers] Update critical_processes file syntax (#4831) 2020-06-25 21:18:21 -07:00
docker-sonic-telemetry [telemetry] Fix telemetry vars template path (#4938) 2020-07-12 18:08:52 +00:00
docker-teamd [docker-team]: upgrade docker-teamd to buster (#4914) 2020-07-12 18:08:52 +00:00
dockerfile-macros.j2 Convert docker-snmp-sv2 to buster (#4529) 2020-05-14 10:23:37 -07:00