skypilot-org / skypilot

SkyPilot: Run AI and batch jobs on any infra (Kubernetes or 12+ clouds). Get unified execution, cost savings, and high GPU availability via a simple interface.
https://skypilot.readthedocs.io
Apache License 2.0
6.82k stars 512 forks source link

show logs for storage mount #4387

Open zpoint opened 4 days ago

zpoint commented 4 days ago

Feature for #4105

9d88ade43b16b2073e6d11ec829c800
(sky) zepingguo@WIN11-JHL:~/skypilot$ cat ~/hello_sky/work_dir_1.yaml 
name: test_workdir_bucket_name_1

workdir: .

resources:
  cloud: azure

file_mounts:
  # this will use the user config
  /checkpoint:
    name: zpoint-filemounts-bucket
    source: ~/tmp/dir1
    mode: MOUNT
    store: azure

  /dir1: ~/tmp/dir1
  /dir2: ~/tmp/dir2
  /dir3/dir3.py: ~/tmp/dir1/dir1.py
run: |
  for i in {1..5}; do
    echo "Hello, SkyPilot World! $(date)"
    touch /checkpoint/$i.txt
  done
(sky) zepingguo@WIN11-JHL:~/skypilot$ 
sky jobs launch ~/hello_sky/work_dir_1.yaml

image

Tested (run the relevant ones):