Skip to content

Commit 8f1808a

Browse files
committed
Add support to interact with a local podman installation
Signed-off-by: Tobias Wolf <wolf@b1-systems.de>
1 parent f55bfe2 commit 8f1808a

File tree

11 files changed

+1299
-62
lines changed

11 files changed

+1299
-62
lines changed

poetry.lock

Lines changed: 22 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ cryptography = "^46.0.3"
1616
jsonschema = "^4.25.1"
1717
networkx = "^3.6"
1818
oras = "^0.2.38"
19+
podman = "^5.6.0"
1920
pygit2 = "^1.19.0"
2021
pygments = "^2.19.2"
2122
PyYAML = "^6.0.2"
@@ -28,7 +29,6 @@ pre-commit = "^4.5.0"
2829
python-dotenv = "^1.2.1"
2930
pytest = "^9.0.2"
3031
pytest-cov = "^7.0.0"
31-
isort = "^7.0.0"
3232
requests-mock = "^1.12.1"
3333

3434
[tool.poetry.group.docs.dependencies]

src/gardenlinux/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@
165165
GARDENLINUX_GITHUB_RELEASE_BUCKET_NAME = "gardenlinux-github-releases"
166166
GLVD_BASE_URL = "https://security.gardenlinux.org/v1"
167167

168+
PODMAN_CONNECTION_MAX_IDLE_SECONDS = 3
169+
168170
# https://github.com/gardenlinux/gardenlinux/issues/3044
169171
# Empty string is the 'legacy' variant with traditional root fs and still needed/supported
170172
IMAGE_VARIANTS = ["", "_usi", "_tpm2_trustedboot"]

src/gardenlinux/oci/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,15 @@
99
from .index import Index
1010
from .layer import Layer
1111
from .manifest import Manifest
12+
from .podman import Podman
13+
from .podman_context import PodmanContext
1214

13-
__all__ = ["Container", "ImageManifest", "Index", "Layer", "Manifest"]
15+
__all__ = [
16+
"Container",
17+
"ImageManifest",
18+
"Index",
19+
"Layer",
20+
"Manifest",
21+
"Podman",
22+
"PodmanContext",
23+
]

0 commit comments

Comments
 (0)