<#1311 debugger: change download dir to cwd instea...
# flyte-github
a
#1311 debugger: change download dir to cwd instead of home Pull request opened by fiedlerNr9 Some container environments, like in openshift, do not allow writing to the home directory. This PR changes the debugger download dir from home to the current working directory. This way the user has control over where to download the vscode packages to by adjusting the work dir with pod templates or in
flyte.Image
definition itself. Tested without changing working directory: import flyte env = flyte.TaskEnvironment( "test", image=flyte.Image.from_debian_base() .with_apt_packages("git") .with_pip_packages( "git+https://github.com/flyteorg/flyte-sdk.git@jan/debugger-download-dir" ) ) @env.task async def main() -> str: msg = "Hello World" import os cwd = os.getcwd() print("Current Working Directory:", cwd) print(msg) return msg if name == "__main__": flyte.init_from_config("demo.yaml") run = flyte.run(main) print(run.url) --> [flyte] INFO DOWNLOAD_DIR: /home/flyte/.code-server Tested with changing working directory: env = flyte.TaskEnvironment( "test", image=flyte.Image.from_debian_base() .with_apt_packages("git") .with_pip_packages( "git+https://github.com/flyteorg/flyte-sdk.git@jan/debugger-download-dir" ) .with_workdir("/tmp"), ) --> [flyte] INFO DOWNLOAD_DIR: /tmp/.code-server flyteorg/flyte-sdk