Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 1.89 KB

README.md

File metadata and controls

73 lines (49 loc) · 1.89 KB

Fluent-http on App Engine Managed VMs

This is a demonstration project for App Engine Managed VMs. It leverages App Engine Docker's support to run a web app with Java 8. It uses [fluent-http] web stack.

This application uses this base image.

To use managed VMS

  1. Download the Google Cloud SDK and create a billing-enabled project.

  2. Enable billing on your project by visiting https://cloud.google.com/console/project/apps~<app_id>, where <app_id> is the ID of your project. Click on Settings in the left menu and then enable billing.

  3. Set the default project to your project's ID using the config command:

gcloud config set project <project ID>
  1. The first time you use the Cloud SDK, you may be asked to run:
gcloud auth login
  1. Install the app engine gcloud component by invoking the following:
gcloud components update app
  1. Install Docker:
  1. Configure boot2docker:

Boot2docker runs with 2048Mb of memory by default. It has to be increased to 4096 at least:

boot2docker stop
VBoxManage modifyvm "boot2docker-vm" --memory "4096"
boot2docker up
  1. Download the base App Engine docker images for all runtimes:
gcloud preview app setup-managed-vms
  1. Run the application locally:
gcloud preview app run .
  1. Deploy the application:
gcloud preview app deploy .

If something goes wrong

gcloud preview app modules cancel-deployment [MODULE] --version [VERSION]
gcloud preview app modules cancel-deployment default --version 1