sonic-buildimage/platform
Joe LeVeque 5c73c0197f
[docker-sonic-vs] Set PLATFORM and HWSKU env vars in Dockerfile (#5266)
sonic-py-common package relies on the `PLATFORM` environment variable to be set at runtime in the SONiC VS container. Exporting the variables in the start.sh script causes the variables to only be available to the shell running start.sh and any subshells it spawns. However, once the script exits, the variable is lost. This is resulting in the failure of tests which are run in the VS container, as they call applications which in turn call sonic-py-common functions which rely on PLATFORM to be set.

Setting the environment variables in the Dockerfile allows them to persist through the entire runtime of the container.
2020-09-01 13:39:10 -07:00
..
barefoot [arista] Update driver submodules (#5147) 2020-08-21 10:38:35 -07:00
broadcom [arista] Update driver submodules (#5147) 2020-08-21 10:38:35 -07:00
cavium [build]: wait for conflicts package to be uninstalled (#5039) 2020-07-27 10:46:20 -07:00
centec [centec]: Add centec arm64 architecture support for E530 (#4641) 2020-08-06 03:16:11 -07:00
centec-arm64 [centec]: Add centec arm64 architecture support for E530 (#4641) 2020-08-06 03:16:11 -07:00
generic [dockers] Rename 'docker-snmp-sv2' to 'docker-snmp' (#4699) 2020-06-11 16:04:23 -07:00
innovium [build]: wait for conflicts package to be uninstalled (#5039) 2020-07-27 10:46:20 -07:00
marvell [build]: wait for conflicts package to be uninstalled (#5039) 2020-07-27 10:46:20 -07:00
marvell-arm64 [build]: combine feature and container feature table (#5081) 2020-08-05 13:23:12 -07:00
marvell-armhf [build]: combine feature and container feature table (#5081) 2020-08-05 13:23:12 -07:00
mellanox [enable counters] Enable port buffer drops by default and update MLNX SAI submodule (#5059) 2020-08-25 08:48:56 -07:00
nephos [build]: wait for conflicts package to be uninstalled (#5039) 2020-07-27 10:46:20 -07:00
p4 Add switch for synchronous mode (#5237) 2020-08-24 14:04:10 -07:00
template [docker-syncd-vs]: Convert syncd-vs docker to buster (#4726) 2020-06-09 09:07:25 -07:00
vs [docker-sonic-vs] Set PLATFORM and HWSKU env vars in Dockerfile (#5266) 2020-09-01 13:39:10 -07:00