2022-07-18 12:33:18 +00:00
|
|
|
ARG BASEIMAGE=quay.io/centos/centos:stream8
|
2022-02-14 13:08:24 +00:00
|
|
|
FROM ${BASEIMAGE}
|
|
|
|
|
2021-09-24 12:23:00 +00:00
|
|
|
RUN yum install -y \
|
|
|
|
yum-utils \
|
|
|
|
ruby-devel \
|
|
|
|
gcc \
|
|
|
|
make \
|
|
|
|
rpm-build \
|
|
|
|
rubygems \
|
|
|
|
createrepo
|
|
|
|
|
|
|
|
RUN gem install --no-document fpm
|
|
|
|
|
|
|
|
# We create and install a dummy docker package since these dependencies are out of
|
|
|
|
# scope for the tests performed here.
|
|
|
|
RUN fpm -s empty \
|
|
|
|
-t rpm \
|
|
|
|
--description "A dummy package for docker-ce_18.06.3.ce-3.el7" \
|
|
|
|
-n docker-ce --version 18.06.3.ce-3.el7 \
|
|
|
|
-p /tmp/docker.rpm \
|
|
|
|
&& \
|
|
|
|
yum localinstall -y /tmp/docker.rpm \
|
|
|
|
&& \
|
|
|
|
rm -f /tmp/docker.rpm
|
|
|
|
|
|
|
|
|
2024-01-30 15:03:30 +00:00
|
|
|
RUN curl -s -L https://nvidia.github.io/libnvidia-container/stable/rpm/libnvidia-container.repo \
|
2022-08-23 19:17:00 +00:00
|
|
|
| tee /etc/yum.repos.d/nvidia-container-toolkit.repo
|
2021-09-24 12:23:00 +00:00
|
|
|
|
|
|
|
COPY entrypoint.sh /
|
2021-11-16 14:00:58 +00:00
|
|
|
COPY install_repo.sh /
|
2021-09-24 12:23:00 +00:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|