From aacd068743127b241f10a95876595465caddbb4a Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 15 Jan 2022 20:17:47 +0100 Subject: [PATCH] ++dmidecode ++k8s ++hwraid --- Dockerfile | 1 + README.md | 41 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6af4f6b..fea533d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ RUN wget -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | apt RUN echo deb http://hwraid.le-vert.net/debian buster main | tee /etc/apt/sources.list.d/hwraid.list RUN apt-get update && apt search hpacucli RUN apt-get update && apt-get install -y \ + dmidecode \ hpacucli \ ipmitool \ megacli \ diff --git a/README.md b/README.md index 22c2728..112b56b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,10 @@ It usually needs to run in privileged mode. The source repository for this container is on -[code.ungleich.ch](https://code.ungleich.ch/ungleich-public/ungleich-hardware). +[code.ungleich.ch](https://code.ungleich.ch/ungleich-public/ungleich-hardware). This +image uses significant content from the +[hwraid](https://hwraid.le-vert.net/) page that we would like to thank +for its years long contribution. You can use this image from @@ -16,6 +19,7 @@ You can use this image from ## Included tools ``` +dmidecode hdparm hpacucli megacli @@ -23,8 +27,43 @@ megaclisas-status stress-ng ``` +## Usage + +### Kubernetes + +To enable access to devices and give permission to the pod to use it, +you could use: + +``` +apiVersion: v1 +kind: Pod +metadata: + name: ungleich-hardware +spec: + containers: + - name: ungleich-hardware + image: harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-hardware:0.0.1 + args: + - sleep + - "1000000" + volumeMounts: + - mountPath: /dev + name: dev + securityContext: + privileged: true + volumes: + - name: dev + hostPath: + path: /dev +``` + + ## Changelog / Tags +### 0.0.2 (2022-01-15) + +* Added dmidecode + ### 0.0.1 (2022-01-15) * Initial release