GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/flexible/cloudstorage at master · spellbring/java-docs-samples

Expand file tree

/

cloudstorage

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

cloudstorage

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main
src/main
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Cloud Storage sample for Google Managed VMs

Open in Cloud Shell

This sample demonstrates how to use Cloud Storage on Google Managed VMs.

Setup

Before you can run or deploy the sample, you will need to do the following:

  1. Enable the Cloud Storage API in the Google Developers Console.
  2. Create a Cloud Storage Bucket. You can do this with the Google Cloud SDK using the following command:
$ gsutil mb gs://[your-bucket-name]
  1. Set the default ACL on your bucket to public read in order to serve files directly from Cloud Storage. You can do this with the Google Cloud SDK using the following command:
$ gsutil defacl set public-read gs://[your-bucket-name]
  1. Update the bucket name in src/main/appengine/app.yaml. This makes the bucket name an environment variable in deployment. You still need to set the environment variable when running locally, as shown below.

Running locally

$ export BUCKET_NAME=[your-bucket-name]
$ mvn clean jetty:run

Deploying

$ mvn clean package appengine:deploy
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.