File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
optional-kubernetes-engine Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ create-cluster:
1212
1313.PHONY : create-bucket
1414create-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
1919build :
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ Alternatively, you can use make:
3636
3737The 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
4242Alternatively, you can use make:
4343
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments