Class JettyHttpProxy


  • public class JettyHttpProxy
    extends Object
    A Jetty web server handling HTTP requests on a given port and forwarding them via gRPC to the Java8 App Engine runtime implementation. The deployed application is assumed to be located in a location provided via a flag, or infered to "/base/data/home/apps/" + APP_ID + "/" + APP_VERSION where APP_ID and APP_VERSION come from env variables (GAE_APPLICATION and GAE_VERSION), with some default values. The logic relies on the presence of "WEB-INF/appengine-generated/app.yaml" so the deployed app should have been staged by a GAE SDK before it can be served.

    When used as a Docker Titanium image, you can create the image via a Dockerfile like:

     FROM gcr.io/gae-gcp/java8-runtime-http-proxy
     # for now s~ is needed for API calls.
     ENV GAE_APPLICATION s~myapp
     ENV GAE_VERSION myversion
     ADD . /appdata/s~myapp/myversion