SimpleCore helper container extensions.
ContainerExtensions#
class ContainerExtensions()
Container related functions.
install#
@staticmethod
def install(testcase, container, tag)
Install a container from ghcr.io.
Arguments:
testcase
- reference to the testcase instancecontainer
str - name of the containertag
str - name of the tag
Raises:
ValueError
- if architecture of the container cannot be determined
uninstall#
@staticmethod
def uninstall(testcase, container)
Uninstall a container.
Arguments:
testcase
- reference to the testcase instancecontainer
str - name of the container
status#
@staticmethod
def status(testcase, container) -> dict
Return a dictionary from simpleswitch-status.
Arguments:
testcase
- reference to the testcase instancecontainer
str - name of the container