-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from rh-ecosystem-edge/update-config-files
Update config files
- Loading branch information
Showing
8 changed files
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,11 +75,11 @@ RUN dnf -y install git git-lfs xz && \ | |
rm -rf /var/cache/yum | ||
RUN --mount=type=secret,id=${AUTH_SECRET}/PRIVATE_GITLAB_TOKEN echo "export PRIVATE_GITLAB_TOKEN="$(cat /run/secrets/${AUTH_SECRET}/PRIVATE_GITLAB_TOKEN) >> /tmp/envfile | ||
RUN source /tmp/envfile && \ | ||
git clone https://gitlab-ci-token:${PRIVATE_GITLAB_TOKEN}@gitlab.com/ebelarte/artifact-storage.git && \ | ||
git clone https://gitlab-ci-token:${PRIVATE_GITLAB_TOKEN}@${UPLOAD_ARTIFACT_REPO} && \ | ||
cd artifact-storage && \ | ||
git lfs install && \ | ||
git lfs track "*.tar.xz" && \ | ||
git remote set-url origin "https://gitlab-ci-token:${PRIVATE_GITLAB_TOKEN}@gitlab.com/ebelarte/artifact-storage.git" && \ | ||
git remote set-url origin "https://gitlab-ci-token:${PRIVATE_GITLAB_TOKEN}@{UPLOAD_ARTIFACT_REPO}" && \ | ||
git config --global user.email "[email protected]" && \ | ||
git config --global user.name "CI build LFS bot" && \ | ||
tar -cvJf ${DRIVER_VENDOR}-${DRIVER_VERSION}-${KERNEL_VERSION}.tar.xz /opt/drivers && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
DRIVER_REPO=https://github.com/NVIDIA/open-gpu-kernel-modules.git | ||
DRIVER_VERSION=565.77 | ||
DRIVER_VENDOR=nvidia-opengpu | ||
ADDITIONAL_BUILD_DEPS=gcc-c++ | ||
DTK_IMAGE=quay.io/redhat-user-workloads/partners-kmod-accel-tenant/pa-driver-toolkit:ee183d162f9f41f83be39c4b362165e0eec8051f | ||
DRIVER_IMAGE=registry.redhat.io/ubi9/ubi@sha256:b632d0cc6263372a90e9097dcac0a369e456b144a66026b9eac029a22f0f6e07 | ||
ADDITIONAL_BUILD_DEPS=gcc-c++ | ||
SIGNER_SDK_IMAGE=quay.io/redhat-user-workloads/partners-kmod-accel-tenant/klerk:75ad7b90c81b5056b69ff5407a3a2e218d4bbdbc | ||
DRIVER_IMAGE=registry.redhat.io/ubi9/ubi@sha256:b632d0cc6263372a90e9097dcac0a369e456b144a66026b9eac029a22f0f6e07 | ||
# AWS settings | ||
AWS_DEFAULT_REGION=us-east-1 | ||
AUTH_SECRET=external-auth-secret | ||
AWS_KMS_KEY_LABEL=my-test-key | ||
# Vendor settings | ||
DRIVER_VER_JSON=https://raw.githubusercontent.com/rh-ecosystem-edge/build-and-sign/refs/heads/main/data/driver-list.json | ||
DRIVER_REPO=https://github.com/NVIDIA/open-gpu-kernel-modules.git | ||
DRIVER_VERSION=565.77 | ||
DRIVER_VENDOR=nvidia-opengpu | ||
UPLOAD_ARTIFACT_REPO=gitlab.com/ebelarte/artifact-storage.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
import urllib.request | ||
|
||
def read_key_value_file(filename="argfile.conf"): | ||
data = {} | ||
with open(filename, "r") as file: | ||
for line in file: | ||
line = line.strip() | ||
if line and "=" in line: | ||
key, value = line.split("=", 1) | ||
data[key.strip()] = value.strip() | ||
return data | ||
|
||
def download_file(url, save_path): | ||
try: | ||
urllib.request.urlretrieve(url, save_path) | ||
return save_path | ||
except Exception as e: | ||
return f"Error downloading file: {e}" |