-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Implement podman and docker container runtimes support" This reverts commit 115c312. * Ignore too-many-positional-arguments check
- Loading branch information
Showing
9 changed files
with
2 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,70 +136,3 @@ def test_skip_apicast_retrying_on_404(application, api_client): | |
client = api_client(disable_retry_status_list={404}) | ||
|
||
assert client.get("/status/404").status_code == 404 | ||
|
||
|
||
################################################################################ | ||
# Example usage of DockerRuntime | ||
def example_docker(): | ||
from testsuite.containers.docker_runtime import DockerRuntime | ||
from testsuite.containers.container_runtime import ContainerConfig | ||
from contextlib import closing | ||
|
||
with closing(DockerRuntime("tcp://10.0.145.159:2376")) as d: | ||
cc = ContainerConfig("mysql", "latest", {"MYSQL_ROOT_PASSWORD": "root"}, {"3306": "33767"}, cmd=["ls", "-la"]) | ||
cc.attach_volume("/root/dkr", "/mnt") | ||
c = d.run(cc) | ||
print(d.logs(c)) | ||
|
||
# d.stop(c) | ||
d.delete_container(c) | ||
|
||
|
||
############################################################################### | ||
# Example usage of PodmanRuntime | ||
def example_podman(): | ||
from testsuite.containers.podman_runtime import PodmanRuntime | ||
from testsuite.containers.container_runtime import ContainerConfig | ||
from contextlib import closing | ||
|
||
with closing(PodmanRuntime("ssh://[email protected]/run/podman/io.podman")) as d: | ||
cc = ContainerConfig("mysql", "latest", {"MYSQL_ROOT_PASSWORD": "root"}, {"3306": "33075"}, cmd=["ls"]) | ||
cc.attach_volume("/root/blah", "/mnt") | ||
c = d.run(cc) | ||
print(d.logs(c)) | ||
# d.stop(c) | ||
d.delete_container(c) | ||
|
||
|
||
############################################################################### | ||
# Example usage of DockerRuntime | ||
def example_docker_no_cm(): | ||
from testsuite.containers.docker_runtime import DockerRuntime | ||
from testsuite.containers.container_runtime import ContainerConfig | ||
|
||
d = DockerRuntime("tcp://10.0.145.159:2376") | ||
cc = ContainerConfig("mysql", "latest", {"MYSQL_ROOT_PASSWORD": "root"}, {"3306": "33767"}, cmd=["ls", "-la"]) | ||
cc.attach_volume("/root/dkr", "/mnt") | ||
c = d.run(cc) | ||
print(d.logs(c)) | ||
|
||
# d.stop(c) | ||
d.delete_container(c) | ||
d.close() | ||
|
||
|
||
############################################################################### | ||
# Example usage of PodmanRuntime | ||
def example_podman_no_cm(): | ||
from testsuite.containers.podman_runtime import PodmanRuntime | ||
from testsuite.containers.container_runtime import ContainerConfig | ||
|
||
d = PodmanRuntime("ssh://[email protected]/run/podman/io.podman") | ||
cc = ContainerConfig("mysql", "latest", {"MYSQL_ROOT_PASSWORD": "root"}, {"3306": "33076"}, cmd=["ls"]) | ||
cc.attach_volume("/root/blah", "/mnt") | ||
c = d.run(cc) | ||
print(d.logs(c)) | ||
# d.stop(c) | ||
d.delete_container(c) | ||
|
||
d.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters