-
Notifications
You must be signed in to change notification settings - Fork 549
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
Use environment variable to define file mount #2093
Comments
Thanks for filing this report @QLutz and welcome to SkyPilot! One solution to this could be to use
Alternatively, you can also use the SkyPilot python API if you find that easier to integrate into your workflow. We would love to hear a bit more about your use case for this to see if we can add this as a feature. Can you share a little more about your workload and how you are using SkyPilot? |
Thanks for your answer @romilbhardwaj My current workflow consists in setting some parameters for my deployment at launch, e.g.: sky launch -c my_deployment --env ENV1=val1 --env ENV2=val2 --gpus=T4:2 my_task.yaml with all parameters having default values (that I may or may not want to override) in resources:
accelerators: T4:1
disk_size: 250
run: |
ENV1=${ENV1:-default_val1} \
ENV2=${ENV2:-default_val2} \
ENV3=${ENV3:-default_val3} \
sh ./scripts/run.sh I find this to be very convenient as it allows for seamless customization of my deployment. Mounts however, cannot be set as easily in the CLI. |
Thanks @QLutz! This certainly makes sense. We do want to get to it; before we have bandwidth any contribution from you guys is definitely very welcome. |
@QLutz We just merged this support. Here's an example of how you can use env vars: https://github.com/skypilot-org/skypilot/blob/master/examples/using_file_mounts_with_env_vars.yaml |
Thanks a lot ! |
Hi and thanks for this great project !
I am in a situation where I would like to mount some directory in a bucket which changes based on the value of an environment variable. I am unsure how to do this with SkyPilot as defining a file mount would typically require that I specify the corresponding URL in my task YAML file beforehand.
Put simply I'd like to do
And be able to set
URL_IN_MY_ENVVAR
at runtime.Am I missing something or would it be a feature that may be of interest?
The text was updated successfully, but these errors were encountered: