Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set XDG envs to tmp for model importer op #237

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading