-
Notifications
You must be signed in to change notification settings - Fork 515
chore: Migrate gsutil usage to gcloud storage #1257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,7 +46,7 @@ function print_usage() { | |
| echo "deploying the hello-world app. You may add all your configuration here, so you don't need" | ||
| echo "to change them in every version of this application." | ||
| echo "" | ||
| echo "gce - mvn package; gsutil cp; gcloud compute instances create ...; - deploys to Compute Engine" | ||
| echo "gce - mvn package; gcloud storage cp; gcloud compute instances create ...; - deploys to Compute Engine" | ||
| echo "down - tears down a single instance group" | ||
| echo "gce-many - deploys a managed instance group" | ||
| echo "down-many- tears down a managed instance group" | ||
|
|
@@ -81,7 +81,7 @@ gce) | |
| # [START getting_started_gce_single] | ||
| mvn clean package | ||
|
|
||
| gsutil cp -r target/${WAR} config/base gs://${BUCKET}/gce/ | ||
| gcloud storage cp --recursive target/${WAR} config/base gs://${BUCKET}/gce/ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This command uploads build artifacts to a GCS bucket, but the startup script ( I recommend one of the following fixes:
|
||
|
|
||
| gcloud compute firewall-rules create allow-http-hello-world \ | ||
| --allow tcp:80 \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This help message reflects the
gcloud storage cpstep. As noted in my other comment, this step appears to be redundant because the startup script does not use the uploaded artifacts. This help text should be updated to reflect the actual deployment process, which might mean removing thegcloud storage cpmention if that step is removed.