From d1c60f1b67a5aef113a4562498374b0e77afa8cb Mon Sep 17 00:00:00 2001 From: Michael Clifford Date: Fri, 13 Dec 2024 15:24:41 -0500 Subject: [PATCH] set XDG envs to tmp for model importer op Signed-off-by: Michael Clifford --- importer-pipeline.yaml | 6 ++++++ pipeline.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/importer-pipeline.yaml b/importer-pipeline.yaml index ac91473..c227842 100644 --- a/importer-pipeline.yaml +++ b/importer-pipeline.yaml @@ -32,6 +32,12 @@ deploymentSpec: env: - name: REGISTRY_AUTH_FILE value: /mnt/containers/.dockerconfigjson + - name: XDG_CACHE_HOME + value: /tmp + - name: XDG_CONFIG_HOME + value: /tmp + - name: XDG_DATA_HOME + value: /tmp image: registry.stage.redhat.io/rhelai1/instructlab-nvidia-rhel9:1.3.1 pipelineInfo: description: Helper pipeline to the InstructLab pipeline which allows users to seed/import diff --git a/pipeline.py b/pipeline.py index 7a4b8f6..59b9a1f 100644 --- a/pipeline.py +++ b/pipeline.py @@ -468,6 +468,9 @@ def pipeline( use_secret_as_volume( importer_task, "7033380-ilab-pull-secret", mount_path="/mnt/containers" ) + importer_task.set_env_variable("XDG_CACHE_HOME", "/tmp") + importer_task.set_env_variable("XDG_CONFIG_HOME", "/tmp") + importer_task.set_env_variable("XDG_DATA_HOME", "/tmp") return pipeline