-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OCI] Support OCI Object Storage (#4501)
* OCI Object Storage Support * example yaml update * example update * add more example yaml * Support RClone-RPM pkg * Add smoke test * ver * smoke test * Resolve dependancy conflict between oci-cli and runpod * Use latest RClone version (v1.68.2) * minor optimize * Address review comments * typo * test * sync code with repo * Address review comments & more testing. * address one more comment
- Loading branch information
Showing
11 changed files
with
773 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: cpu-task1 | ||
|
||
resources: | ||
cloud: oci | ||
region: us-sanjose-1 | ||
cpus: 2 | ||
disk_size: 256 | ||
disk_tier: medium | ||
use_spot: False | ||
|
||
file_mounts: | ||
# Mount an existing oci bucket | ||
/datasets-storage: | ||
source: oci://skybucket | ||
mode: MOUNT # Either MOUNT or COPY. Optional. | ||
|
||
# Working directory (optional) containing the project codebase. | ||
# Its contents are synced to ~/sky_workdir/ on the cluster. | ||
workdir: . | ||
|
||
num_nodes: 1 | ||
|
||
# Typical use: pip install -r requirements.txt | ||
# Invoked under the workdir (i.e., can use its files). | ||
setup: | | ||
echo "*** Running setup for the task. ***" | ||
# Typical use: make use of resources, such as running training. | ||
# Invoked under the workdir (i.e., can use its files). | ||
run: | | ||
echo "*** Running the task on OCI ***" | ||
timestamp=$(date +%s) | ||
ls -lthr /datasets-storage | ||
echo "hi" >> /datasets-storage/foo.txt | ||
ls -lthr /datasets-storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: cpu-task1 | ||
|
||
resources: | ||
cloud: oci | ||
region: us-sanjose-1 | ||
cpus: 2 | ||
disk_size: 256 | ||
disk_tier: medium | ||
use_spot: False | ||
|
||
file_mounts: | ||
/datasets-storage: | ||
name: skybucket # Name of storage, optional when source is bucket URI | ||
source: ['./examples/oci'] # Source path, can be local or bucket URL. Optional, do not specify to create an empty bucket. | ||
store: oci # E.g 'oci', 's3', 'gcs'...; default: None. Optional. | ||
persistent: True # Defaults to True; can be set to false. Optional. | ||
mode: MOUNT # Either MOUNT or COPY. Optional. | ||
|
||
/datasets-storage2: | ||
name: skybucket2 # Name of storage, optional when source is bucket URI | ||
source: './examples/oci' # Source path, can be local or bucket URL. Optional, do not specify to create an empty bucket. | ||
store: oci # E.g 'oci', 's3', 'gcs'...; default: None. Optional. | ||
persistent: True # Defaults to True; can be set to false. Optional. | ||
mode: MOUNT # Either MOUNT or COPY. Optional. | ||
|
||
# Working directory (optional) containing the project codebase. | ||
# Its contents are synced to ~/sky_workdir/ on the cluster. | ||
workdir: . | ||
|
||
num_nodes: 1 | ||
|
||
# Typical use: pip install -r requirements.txt | ||
# Invoked under the workdir (i.e., can use its files). | ||
setup: | | ||
echo "*** Running setup for the task. ***" | ||
# Typical use: make use of resources, such as running training. | ||
# Invoked under the workdir (i.e., can use its files). | ||
run: | | ||
echo "*** Running the task on OCI ***" | ||
ls -lthr /datasets-storage | ||
echo "hi" >> /datasets-storage/foo.txt | ||
ls -lthr /datasets-storage | ||
ls -lthr /datasets-storage2 | ||
echo "hi" >> /datasets-storage2/foo2.txt | ||
ls -lthr /datasets-storage2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
resources: | ||
cloud: oci | ||
|
||
file_mounts: | ||
~/tmpfile: ~/tmpfile | ||
~/a/b/c/tmpfile: ~/tmpfile | ||
/tmp/workdir: ~/tmp-workdir | ||
|
||
/mydir: | ||
name: skybucket | ||
source: ['~/tmp-workdir'] | ||
store: oci | ||
mode: MOUNT | ||
|
||
setup: | | ||
echo "*** Setup ***" | ||
run: | | ||
echo "*** Run ***" | ||
ls -lthr ~/tmpfile | ||
ls -lthr ~/a/b/c | ||
echo hi >> /tmp/workdir/new_file | ||
ls -lthr /tmp/workdir | ||
ls -lthr /mydir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.