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

Support repo_dir in run configurations #2102

Open
r4victor opened this issue Dec 16, 2024 · 0 comments
Open

Support repo_dir in run configurations #2102

r4victor opened this issue Dec 16, 2024 · 0 comments
Labels

Comments

@r4victor
Copy link
Collaborator

Currently, the repo dir is hardcoded to be /workflow. The proposal is to make it configurable with repo_dir with /workflow as a default for backward compatibility. Benefits

  • /workflow is no longer hardcoded.
  • A repo can be pre-cloned on a volume to avoid long pull for big repos.
  • Support for use cases when /workflow cannot be used (conflict with OS image) or when other path is preferred.

Moreover, working_dir can default to repo_dir. Related to: #2003

Also consider introducing a run env variable that stores the path to the repo dir (e.g. DSTACK_REPO_DIR) so that the repo dir doesn't need to be hardcoded in run configurations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant