Skip to content

Commit

Permalink
minor updates to remove hardcoded version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Li authored and tariq1890 committed Mar 26, 2024
1 parent 711a3a8 commit f6dd4b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
16 changes: 7 additions & 9 deletions azurelinux/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
ARG CBL_MARINER_VERSION=2.0
FROM mcr.microsoft.com/cbl-mariner/base/core:${CBL_MARINER_VERSION}
ARG AZURE_LINUX_VERSION=''
FROM mcr.microsoft.com/cbl-mariner/base/core:${AZURE_LINUX_VERSION}

ARG CBL_MARINER_VERSION
ARG DRIVER_BRANCH=525
ARG AZURE_LINUX_VERSION
ARG DRIVER_BRANCH=''
ENV DRIVER_BRANCH=$DRIVER_BRANCH
ARG DRIVER_VERSION=525.85.12
ARG DRIVER_VERSION=''
ENV DRIVER_VERSION=$DRIVER_VERSION

ARG KERNEL_VERSION=5.15.145.2-1.cm2
ENV KERNEL_VERSION=$KERNEL_VERSION
ARG KERNEL_VERSION=''

USER root

Expand All @@ -17,7 +15,7 @@ COPY nvidia-driver /usr/local/bin
RUN tdnf -y install util-linux ca-certificates

RUN curl -fsSL -o /etc/yum.repos.d/mariner-nvidia.repo \
https://raw.githubusercontent.com/microsoft/CBL-Mariner/${CBL_MARINER_VERSION}/toolkit/docs/nvidia/mariner-nvidia.repo
https://raw.githubusercontent.com/microsoft/CBL-Mariner/${AZURE_LINUX_VERSION}/toolkit/docs/nvidia/mariner-nvidia.repo

# Create a location to store the pre-downloaded RPMs for installation during container runtime
RUN mkdir -p /opt/nvidia
Expand Down
9 changes: 4 additions & 5 deletions azurelinux/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CBL-Mariner (EXPERIMENTAL)
# Azure Linux (EXPERIMENTAL)

This directory contains the docker manifests used to run the precompiled gpu driver on Azure Linux/CBL-Mariner Linux,
the fedora based Linux distribution provided by Microsoft
Expand All @@ -7,14 +7,13 @@ The container image uses the driver rpm packages hosted here: https://packages.m

The following driver versions are supported:

- 515.65.01
- 525.85.12
- 535.129.03

## Running the container

1. Set the necessary environment variables
1. export DRIVER_VERSION=525.85.12
2. KERNEL_VERSION=5.15.118.1-1.cm2
1. export DRIVER_VERSION=535.129.03
2. KERNEL_VERSION=5.15.148.2-2.cm2

2. Run the docker build with the following command:
```
Expand Down

0 comments on commit f6dd4b2

Please sign in to comment.