Skip to content

Commit dcb7d08

Browse files
authored
Add Dockerfile for building a host-check container image. (#41)
1 parent e044091 commit dcb7d08

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
The v1 release supports Cisco IOS-XR release versions from 7.7.1 to 7.10.1.
77

8+
### v1.1.16 (2024-05-21)
9+
10+
- Added Dockerfile to build `host-check` container image.
11+
812
### v1.1.15 (2024-03-04)
913

1014
- `host-check` now has separate checks for IOMMU being enabled and PCI device availability.

Dockerfile.host-check

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Dockerfile to build a container with the host-check script
2+
#
3+
# Build:
4+
# podman build -t host-check -f Dockerfile.host-check .
5+
# Run (must be run with host network and mount /lib/modules):
6+
# podman run --net host -v /lib/modules:/lib/modules host-check
7+
8+
FROM python:3.11-slim-bullseye
9+
10+
WORKDIR /app
11+
12+
RUN apt-get -y update && \
13+
apt-get -y upgrade && \
14+
apt-get -y install procps kmod lshw
15+
16+
COPY scripts/host-check .
17+
18+
ENTRYPOINT ["scripts/host-check"]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Template files, whether illustrative scripts or template config/topology files.
5151

5252
Tests for the scripts.
5353

54+
### `Dockerfile.host-check`
55+
56+
Dockerfile for producing a `host-check` container image.
57+
5458

5559
## Versioning Scheme
5660

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ include = """
88
| host-check$
99
)
1010
"""
11+
exclude = """
12+
(
13+
Dockerfile.host-check$
14+
)
15+
"""
1116

1217
[tool.isort]
1318
# Make compatible with Black

0 commit comments

Comments
 (0)