Skip to content

Commit 9fa8f28

Browse files
committed
Adding rhc connect for telemetry
Signed-off-by: Igal Tsoiref <itsoiref@redhat.com>
1 parent 7f92be1 commit 9fa8f28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

training/nvidia-bootc/Containerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,16 @@ RUN mv /etc/selinux /etc/selinux.tmp \
138138
dnf module enable -y nvidia-driver:${DRIVER_BRANCH} && \
139139
dnf install -y nvidia-fabric-manager-${DRIVER_VERSION} libnvidia-nscq-${DRIVER_BRANCH}-${DRIVER_VERSION} ; \
140140
fi \
141+
# Install rhc connect for insights telemetry gathering
142+
&& . /etc/os-release && if [ "${ID}" == "rhel" ]; then \
143+
dnf install -y rhc rhc-worker-playbook; \
144+
fi \
141145
&& dnf clean all \
142146
&& ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants \
143147
&& mv /etc/selinux.tmp /etc/selinux \
144148
&& ln -s /usr/lib/systemd/system/nvidia-toolkit-firstboot.service /usr/lib/systemd/system/basic.target.wants/nvidia-toolkit-firstboot.service \
145149
&& echo "blacklist nouveau" > /etc/modprobe.d/blacklist_nouveau.conf
146150

147-
148151
ARG SSHPUBKEY
149152

150153
# The --build-arg "SSHPUBKEY=$(cat ~/.ssh/id_rsa.pub)" option inserts your

0 commit comments

Comments
 (0)