Skip to content

Commit 33fce17

Browse files
Add support to interact with a local podman installation
* Add support to interact with a local podman installation * Fix `None` returned for `gardenlinux.oci.Podman.pull()` * Add more descriptive `gl-oci` tool description. Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: SAP <tobias.wolf@sap.com>
1 parent a00be85 commit 33fce17

File tree

11 files changed

+1367
-57
lines changed

11 files changed

+1367
-57
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ cryptography = "^46.0.3"
1616
jsonschema = "^4.26.0"
1717
networkx = "^3.6"
1818
oras = "^0.2.38"
19+
podman = "^5.6.0"
1920
pygit2 = "^1.19.1"
2021
pygments = "^2.19.2"
2122
PyGithub = "^2.8.1"
@@ -24,12 +25,12 @@ gitpython = "^3.1.45"
2425

2526
[tool.poetry.group.dev.dependencies]
2627
bandit = "^1.9.3"
28+
isort = "^7.0.0"
2729
moto = "^5.1.20"
2830
pre-commit = "^4.5.1"
2931
python-dotenv = "^1.2.1"
3032
pytest = "^9.0.2"
3133
pytest-cov = "^7.0.0"
32-
isort = "^7.0.0"
3334
requests-mock = "^1.12.1"
3435
mypy = "1.18.2"
3536
types-click = "^7.1.8"

src/gardenlinux/constants.py

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

169+
PODMAN_CONNECTION_MAX_IDLE_SECONDS = 3
170+
169171
# https://github.com/gardenlinux/gardenlinux/issues/3044
170172
# Empty string is the 'legacy' variant with traditional root fs and still needed/supported
171173
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)