Skip to content

Commit 584de78

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

File tree

11 files changed

+933
-45
lines changed

11 files changed

+933
-45
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ python = ">=3.13"
1212
apt-repo = "^0.5"
1313
boto3 = "^1.40.57"
1414
click = "^8.2.1"
15-
cryptography = "^46.0.1"
15+
cryptography = "^46.0.2"
1616
jsonschema = "^4.25.1"
1717
networkx = "^3.5"
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"
@@ -24,13 +25,13 @@ gitpython = "^3.1.45"
2425
[tool.poetry.group.dev.dependencies]
2526
bandit = "^1.8.6"
2627
black = "^25.1.0"
28+
isort = "^7.0.0"
2729
moto = "^5.1.12"
30+
pyright = "^1.1.406"
2831
python-dotenv = "^1.1.1"
2932
pytest = "^8.4.1"
3033
pytest-cov = "^7.0.0"
31-
isort = "^7.0.0"
3234
requests-mock = "^1.12.1"
33-
pyright = "^1.1.403"
3435

3536
[tool.poetry.group.docs.dependencies]
3637
sphinx-rtd-theme = "^3.0.2"

src/gardenlinux/constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,15 @@
159159

160160
S3_DOWNLOADS_DIR = Path(os.path.dirname(__file__)) / ".." / "s3_downloads"
161161

162+
GL_DEB_REPO_BASE_URL = "https://packages.gardenlinux.io/gardenlinux"
162163
GLVD_BASE_URL = (
163164
"https://glvd.ingress.glvd.gardnlinux.shoot.canary.k8s-hana.ondemand.com/v1"
164165
)
165-
GL_DEB_REPO_BASE_URL = "https://packages.gardenlinux.io/gardenlinux"
166166

167167
GARDENLINUX_GITHUB_RELEASE_BUCKET_NAME = "gardenlinux-github-releases"
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
from .index import Index
1010
from .layer import Layer
1111
from .manifest import Manifest
12+
from .podman import Podman
1213

13-
__all__ = ["Container", "ImageManifest", "Index", "Layer", "Manifest"]
14+
__all__ = ["Container", "ImageManifest", "Index", "Layer", "Manifest", "Podman"]

0 commit comments

Comments
 (0)