Built and maintained by Gerald PAQUIS and Contributors
This Repo contains a Python script for manipulate remotly TPCM (ThirdPartyContainerManager) by using REST-API, and a config file
The remote_tpcm script allow to deploy, remove and list container install on a Dell Enterprise SONiC.
This script is for purpose test only and explain howto deploy remotely, a container from a DockerHub Source.
- Python 3.8.10 version minimum
Before start, the remote_tpcm.conf must be configure.
The config file must be in the same repository as remote_tpcm.py
The remote_tpcm.conf(https://github.com/gpaquis/SONiC_TPCM/blob/main/src/remote_tpcm.conf) contain entry to deploy the container from DockerHub.
TPCM support deployment via HTTP/HTTPS/SFTP/SSH/USB, but this script don't support this deployment methode.
See Roadmap for more details and next feature.
Runing the script and options:
Options | Value | Description | Mandatory |
---|---|---|---|
List | List TPCM install on DES | ||
--action | Install | Install TPCM on DES | Yes |
Remove | Remove TPCM from DES | ||
Upgrade | Upgrade TPCM | ||
--switch_ip | IPV4 | IP address of the DES management interface | Yes |
--sonic_username | type string | Login used to access to the DES | Yes |
--sonic_password | type string | Password used to access to the DES | Yes |
python3 remote_tpcm.py --action [List|Install|Remove|Uprade] --switch_ip 192.168.101.101 --sonic_username admin --sonic_password YourPaSsWoRd
Add Update process for memory/storage assing to the TPCM
Add support for http/https/ssh/scp.
Allow to deploy more than one container at same time.
We welcome contributions to the project.