Extracted shlax from podctl

This commit is contained in:
jpic
2020-02-14 20:14:56 +01:00
parent c78874a7e0
commit 2e94928aef
51 changed files with 750 additions and 940 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env python
import asyncio
from shlax import *
bash = Script(
Packages('bash'),
)
-24
View File
@@ -1,24 +0,0 @@
from podctl import *
ex = Container(
Base('docker.io/alpine'),
Packages('bash'),
DumbInit('sleep 55'),
Commit('test'),
)
podctl2 = Container(
Base('docker.io/alpine'),
Packages('bash python-dev'),
Commit('test2'),
)
async def test_pod_story2(pod):
await pod.script('down')()
async def test_pod_story(pod):
await pod.script('down')()
await pod.script('up')()
await pod.script('down')()