Skip to content

Commit

Permalink
Merge pull request #709 from javipolo/ilab_home_override
Browse files Browse the repository at this point in the history
RHELAI-744 - Use environment variable to override HOME in ilab wrapper
  • Loading branch information
rhatdan authored Aug 1, 2024
2 parents 7409fdc + 107f8a9 commit a152539
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions training/ilab-wrapper/ilab
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ IMAGE_NAME="__REPLACE_IMAGE_NAME__"
export ENTRYPOINT="/opt/python3.11/venv/bin/ilab"
export PARAMS=("$@")

if [[ -n "$ILAB_HOME" ]]; then
HOME="$ILAB_HOME"
fi

for dir in "$HOME/.cache" "$HOME/.config" "$HOME/.local"; do
mkdir -p "$dir"
done
Expand Down
4 changes: 4 additions & 0 deletions training/nvidia-bootc/duplicated/ilab-wrapper/ilab
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ IMAGE_NAME="__REPLACE_IMAGE_NAME__"
export ENTRYPOINT="/opt/python3.11/venv/bin/ilab"
export PARAMS=("$@")

if [[ -n "$ILAB_HOME" ]]; then
HOME="$ILAB_HOME"
fi

for dir in "$HOME/.cache" "$HOME/.config" "$HOME/.local"; do
mkdir -p "$dir"
done
Expand Down

0 comments on commit a152539

Please sign in to comment.