diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1d3d79c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "docker" + directory: "/deployments/container" + schedule: + interval: "daily" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/deployments/container/Dockerfile.ubi8 b/deployments/container/Dockerfile.ubi8 index 1ee690f..15b1241 100644 --- a/deployments/container/Dockerfile.ubi8 +++ b/deployments/container/Dockerfile.ubi8 @@ -12,9 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -ARG BASE_DIST -ARG CUDA_VERSION -FROM nvidia/cuda:${CUDA_VERSION}-devel-${BASE_DIST} AS builder +FROM nvidia/cuda:11.7.1-devel-ubi8 AS builder ARG CUDA_VERSION RUN dnf install -y \ @@ -33,7 +31,7 @@ RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/${C make build && \ cp $(find /build/bin -iname "${SAMPLE_NAME}") /build/${SAMPLE_NAME} -FROM nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} +FROM nvidia/cuda:11.7.1-base-ubi8 ARG SAMPLE_NAME LABEL io.k8s.display-name="NVIDIA CUDA ${SAMPLE_NAME} sample" LABEL name="NVIDIA CUDA ${SAMPLE_NAME} sample" diff --git a/deployments/container/Dockerfile.ubuntu b/deployments/container/Dockerfile.ubuntu index 538fa30..a00e748 100644 --- a/deployments/container/Dockerfile.ubuntu +++ b/deployments/container/Dockerfile.ubuntu @@ -12,11 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -ARG BASE_DIST -ARG CUDA_VERSION -FROM nvidia/cuda:${CUDA_VERSION}-devel-${BASE_DIST} AS builder +FROM nvidia/cuda:11.7.1-devel-ubuntu20.04 AS builder -ARG CUDA_VERSION ARG SAMPLE_NAME ENV SAMPLE_NAME ${SAMPLE_NAME} @@ -44,7 +41,7 @@ RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/${C make build && \ cp $(find /build/bin -iname "${SAMPLE_NAME}") /build/${SAMPLE_NAME} -FROM nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} +FROM nvidia/cuda:11.7.1-base-ubuntu20.04 ARG SAMPLE_NAME LABEL io.k8s.display-name="NVIDIA CUDA ${SAMPLE_NAME} sample" LABEL name="NVIDIA CUDA ${SAMPLE_NAME} sample" diff --git a/deployments/container/Makefile b/deployments/container/Makefile index 9cb80cc..cc842f7 100644 --- a/deployments/container/Makefile +++ b/deployments/container/Makefile @@ -93,8 +93,6 @@ $(BUILD_TARGETS): build-%: $(DOCKER_BUILD_OPTIONS) \ $(DOCKER_BUILD_PLATFORM_OPTIONS) \ --tag $(IMAGE) \ - --build-arg BASE_DIST="$(DIST)" \ - --build-arg CUDA_VERSION="$(CUDA_VERSION)" \ --build-arg CUDA_SAMPLES_VERSION="$(CUDA_SAMPLES_VERSION)" \ --build-arg SAMPLE_NAME=$(SAMPLE) \ --build-arg CVE_UPDATES="$(CVE_UPDATES)" \ diff --git a/versions.mk b/versions.mk index 762ccc9..0b0a228 100644 --- a/versions.mk +++ b/versions.mk @@ -13,8 +13,7 @@ # limitations under the License. # Specify the CUDA base image version -CUDA_VERSION ?= 11.7.1 -VERSION ?= cuda${CUDA_VERSION:cuda%=%} +VERSION ?= cuda$(shell grep -Eo "FROM.*cuda:[0-9\.]+" deployments/container/Dockerfile.ubuntu | sort -u | sed 's/.*://g') # Specify the tag for the https://github.com/NVIDIA/cuda-samples repository. # This need not match the CUDA_VERSION above.