This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/platform/vs/docker-sonic-vs
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
..
50-default.conf [virtualswitch]: build docker-sonic-vs docker based on SAI virtual switch (#1065) 2017-10-23 22:01:42 -07:00
chassis_db.py [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
database_config.json [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
default_chassis_cfg.json [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
Dockerfile.j2 [docker-sonic-vs] Set PLATFORM and HWSKU env vars in Dockerfile (#5266) 2020-09-01 13:39:10 -07:00
hostname.j2 [vs]: support virtual-chassis setup in vs docker (#4709) 2020-07-29 14:20:31 -07:00
hwsku.json Add support to VS platform for platform.json and DPB CLI Tests (#5192) 2020-08-20 17:10:58 -07:00
init_cfg.json.j2 Add switch for synchronous mode (#5237) 2020-08-24 14:04:10 -07:00
orchagent.sh Add switch for synchronous mode (#5237) 2020-08-24 14:04:10 -07:00
platform.json Add support to VS platform for platform.json and DPB CLI Tests (#5192) 2020-08-20 17:10:58 -07:00
sonic-dev.gpg.key [vs]: add vlan configuration support in virtual switch (#1200) 2017-11-30 14:59:25 -08:00
start.sh [docker-sonic-vs] Set PLATFORM and HWSKU env vars in Dockerfile (#5266) 2020-09-01 13:39:10 -07:00
supervisord.conf [dvs] Start portsyncd before orchagent for docker-sonic-vs container (#5140) 2020-08-11 08:52:06 -07:00