Skip to content

Commit

Permalink
Merge pull request #237 from MichaelClifford/fix-236
Browse files Browse the repository at this point in the history
set XDG envs to tmp for model importer op
  • Loading branch information
tumido authored Dec 16, 2024
2 parents a7de1b0 + d1c60f1 commit f82864d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions importer-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f82864d

Please sign in to comment.