mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
Migrate gsutil usage to gcloud storage (#4321)
* Migrate gsutil usage to gcloud storage * Changes for 4321 * fix the linter issue for br 4321 * removed changes for model garden --------- Co-authored-by: bhandarivijay <bhandarivijay@google.com> Co-authored-by: gurusai-voleti <gvoleti@google.com>
This commit is contained in:
co-authored by
bhandarivijay
gurusai-voleti
parent
439f6a0cae
commit
3cf46226e9
@@ -259,8 +259,7 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"! gsutil mb -l {LOCATION} -p {PROJECT_ID} {BUCKET_URI}"
|
||||
]
|
||||
"! gcloud storage buckets create --location={LOCATION} --project={PROJECT_ID} {BUCKET_URI}" ]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
@@ -1025,8 +1024,7 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"! gsutil ls -l {TRAINING_URI}"
|
||||
]
|
||||
"! gcloud storage ls --long {TRAINING_URI}" ]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
@@ -1064,8 +1062,7 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"! gsutil -q cp -r {TRAINING_URI} {DELIVERABLES_PATH}"
|
||||
]
|
||||
"! gcloud storage cp --recursive {TRAINING_URI} {DELIVERABLES_PATH}" ]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
@@ -1348,8 +1345,7 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"!gsutil cp {str(build_path)}/cifar10.mar {BUILD_URI}/model.mar"
|
||||
]
|
||||
"!gcloud storage cp {str(build_path)}/cifar10.mar {BUILD_URI}/model.mar" ]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
@@ -1523,8 +1519,7 @@
|
||||
"\n",
|
||||
"# Delete Cloud Storage objects that were created\n",
|
||||
"if delete_bucket:\n",
|
||||
" ! gsutil -q -m rm -r $BUCKET_URI"
|
||||
]
|
||||
" ! gcloud -q storage rm --recursive $BUCKET_URI" ]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
||||
Reference in New Issue
Block a user