Skip to content

Commit

Permalink
Add ELYRA_GITHUB_REPO env var (elyra-ai#3278)
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
  • Loading branch information
caponetto committed Jan 15, 2025
1 parent 13f0ae9 commit fb94bd9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions elyra/pipeline/kfp/processor_kfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,23 +1063,26 @@ def _compose_container_command_args(
# and should not be opened as PR against upstream Elyra
elyra_github_org = os.getenv("ELYRA_GITHUB_ORG", "opendatahub-io")
elyra_github_branch = os.getenv("ELYRA_GITHUB_BRANCH", "main" if "dev" in __version__ else f"v{__version__}")
elyra_github_repo = os.getenv("ELYRA_GITHUB_REPO", "elyra")
elyra_bootstrap_script_url = os.getenv(
"ELYRA_BOOTSTRAP_SCRIPT_URL",
f"https://raw.githubusercontent.com/{elyra_github_org}/elyra/{elyra_github_branch}/elyra/kfp/bootstrapper.py", # noqa E501
f"https://raw.githubusercontent.com/{elyra_github_org}/"
f"{elyra_github_repo}/{elyra_github_branch}/elyra/kfp/bootstrapper.py",
)

elyra_requirements_url = os.getenv(
"ELYRA_REQUIREMENTS_URL",
f"https://raw.githubusercontent.com/{elyra_github_org}/"
f"elyra/{elyra_github_branch}/etc/generic/requirements-elyra.txt",
f"{elyra_github_repo}/{elyra_github_branch}/etc/generic/requirements-elyra.txt",
)

if is_crio_runtime:
container_work_dir = CRIO_VOL_WORKDIR_PATH
container_python_path = CRIO_VOL_PYTHON_PATH
python_pip_config_url = os.getenv(
"ELYRA_PIP_CONFIG_URL",
f"https://raw.githubusercontent.com/{elyra_github_org}/elyra/{elyra_github_branch}/etc/kfp/pip.conf",
f"https://raw.githubusercontent.com/{elyra_github_org}/"
f"{elyra_github_repo}/{elyra_github_branch}/etc/kfp/pip.conf",
)
python_user_lib_path_target = f"--target={CRIO_VOL_PYTHON_PATH}"
else:
Expand Down

0 comments on commit fb94bd9

Please sign in to comment.