Skip to content

Commit d6097aa

Browse files
chore: Migrate gsutil usage to gcloud storage (#584)
1 parent d9da8db commit d6097aa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

optional-kubernetes-engine/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ create-cluster:
1212

1313
.PHONY: create-bucket
1414
create-bucket:
15-
gsutil mb gs://$(GCLOUD_PROJECT)
16-
gsutil defacl set public-read gs://$(GCLOUD_PROJECT)
15+
gcloud storage buckets create gs://$(GCLOUD_PROJECT)
16+
gcloud storage buckets update gs://$(GCLOUD_PROJECT) --predefined-default-object-acl=public-read
1717

1818
.PHONY: build
1919
build:

optional-kubernetes-engine/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Alternatively, you can use make:
3636

3737
The bookshelf application uses [Google Cloud Storage](https://cloud.google.com/storage) to store image files. Create a bucket for your project:
3838

39-
gsutil mb gs://<your-project-id>
40-
gsutil defacl set public-read gs://<your-project-id>
39+
gcloud storage buckets create gs://<your-project-id>
40+
gcloud storage buckets update gs://<your-project-id> --predefined-default-object-acl=public-read
4141

4242
Alternatively, you can use make:
4343

optional-kubernetes-engine/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@
7878
# Typically, you'll name your bucket the same as your project. To create a
7979
# bucket:
8080
#
81-
# $ gsutil mb gs://<your-bucket-name>
81+
# $ gcloud storage buckets create gs://<your-bucket-name>
8282
#
8383
# You also need to make sure that the default ACL is set to public-read,
8484
# otherwise users will not be able to see their upload images:
8585
#
86-
# $ gsutil defacl set public-read gs://<your-bucket-name>
86+
# $ gcloud storage buckets update --predefined-default-object-acl=public-read gs://<your-bucket-name>
8787
#
8888
# You can adjust the max content length and allow extensions settings to allow
8989
# larger or more varied file types if desired.

0 commit comments

Comments
 (0)