commit 28780cfadfd050e732a76d3f99f82463b762c071 Author: Nico Schottelius Date: Sat Jan 15 16:41:50 2022 +0100 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7dc1705 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM debian:11.2-slim + +RUN apt-get update && apt-get install -y wget gnupg2 less +RUN wget -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | apt-key add - +RUN echo deb http://hwraid.le-vert.net/debian bullseye main | tee /etc/apt/sources.list.d/hwraid.list +RUN apt-get update && apt-get install -y \ + hpacucli \ + ipmitool \ + megacli \ + megaclisas-status \ + redfishtool \ + stress-ng + + +COPY entrypoint.sh / +CMD ["/entrypoint.sh"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b5fb6c --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +## ungleich-hardware + +This container is made for configuring hardware on our clusters. +It usually needs to run in privileged mode. + +## Included tools + +``` +hdparm +hpacucli +megacli +megaclisas-status +stress-ng +``` + +## Changelog + +### 0.0.1 (2022-01-15) + +* Initial release diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..0535161 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +docker build -t ungleich-hardware . + +while [ $# -ge 1 ]; do + tag=$1; shift + git tag -a -m "Version $tag" $tag + git push --tags + docker tag ungleich-hardware:latest ungleich/ungleich-hardware:${tag} + docker tag ungleich-hardware:latest harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-hardware:${tag} + docker push ungleich/ungleich-hardware:${tag} + docker push harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-hardware:${tag} +done