From 274a840c895eb5cb6e310b7eb93621a10f594b64 Mon Sep 17 00:00:00 2001 From: Igal Tsoiref Date: Thu, 4 Jul 2024 18:44:19 +0300 Subject: [PATCH] Adding rhc connect for telemetry Signed-off-by: Igal Tsoiref --- training/nvidia-bootc/Containerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/training/nvidia-bootc/Containerfile b/training/nvidia-bootc/Containerfile index c5009fd6..3d4c9016 100644 --- a/training/nvidia-bootc/Containerfile +++ b/training/nvidia-bootc/Containerfile @@ -138,13 +138,16 @@ RUN mv /etc/selinux /etc/selinux.tmp \ dnf module enable -y nvidia-driver:${DRIVER_BRANCH} && \ dnf install -y nvidia-fabric-manager-${DRIVER_VERSION} libnvidia-nscq-${DRIVER_BRANCH}-${DRIVER_VERSION} ; \ fi \ + # Install rhc connect for insights telemetry gathering + && . /etc/os-release && if [ "${ID}" == "rhel" ]; then \ + dnf install -y rhc rhc-worker-playbook; \ + fi \ && dnf clean all \ && ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants \ && mv /etc/selinux.tmp /etc/selinux \ && ln -s /usr/lib/systemd/system/nvidia-toolkit-firstboot.service /usr/lib/systemd/system/basic.target.wants/nvidia-toolkit-firstboot.service \ && echo "blacklist nouveau" > /etc/modprobe.d/blacklist_nouveau.conf - ARG SSHPUBKEY # The --build-arg "SSHPUBKEY=$(cat ~/.ssh/id_rsa.pub)" option inserts your