Files
openstack-helm-images/node-problem-detector/Dockerfile
Vladimir Kozhukalov 3210c559d8 Switch to *-container-image roles
Some time ago we updated the Loci repo to publish
Openstack images to quay.io. This PR does the same for
this repo to publish infra images to quay.io.

The *-docker-image zuul-jobs roles do not support other
registries except docker hub. So we have to switch to
*-container-image roles which also assumes updating
some jobs variables.

Also this PR removes build jobs for outdated images
- calicoctl-utility
- elasticsearch-s3
- gate-utils
- ospurge
- vbmc

Signed-off-by: Vladimir Kozhukalov <kozhukalov@gmail.com>
Change-Id: I41bb88dc1e0fd06896865834fd8d118f432d5be2
2026-01-12 16:49:17 -06:00

20 lines
857 B
Docker

ARG FROM=quay.io/airshipit/ubuntu:noble
FROM ${FROM}
ARG NPD_VERSION="v0.8.16"
ARG NPD_SRC_URL="https://github.com/kubernetes/node-problem-detector/releases/download/${NPD_VERSION}"
RUN apt-get update ;\
apt-get upgrade -y ;\
apt-get install --no-install-recommends -y wget ca-certificates ;\
#Create a Temp dir to download and extract the package
TMP_DIR=$(mktemp --directory) ;\
wget -q ${NPD_SRC_URL}/node-problem-detector-${NPD_VERSION}-linux_amd64.tar.gz -O ${TMP_DIR}/node-problem-detector-${NPD_VERSION}.tar.gz ;\
mkdir -p /opt/node-problem-detector/ ;\
tar zxf ${TMP_DIR}/node-problem-detector-${NPD_VERSION}.tar.gz -C /opt/node-problem-detector ;\
#Cleanup the directories
apt-get autoremove --purge ca-certificates ;\
apt-get clean ;\
rm -rf /var/lib/apt/lists/* /root/.cache ;\
rm -rf ${TMP_DIR}