GithubHelp home page GithubHelp logo

vvvvbox / appengine-java-vm-runtime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/appengine-java-vm-runtime

0.0 1.0 0.0 2.78 MB

License: Apache License 2.0

Java 98.65% Dockerfile 0.64% Shell 0.47% AMPL 0.22% HTML 0.01%

appengine-java-vm-runtime's Introduction

deprecated

We've moved!

Note that the maintenance of OpenJDK and the Jetty Docker images has moved to new GitHub repositories:

appengine-java-vm-runtime

Complete code source of the Google App Engine flexible environment Docker image. It has 2 Java libraries, one generic for default servlets, filters and App Engine management, and one which is Jetty 9.x specific for Session management, App Engine APIs hook, and user login.

The dependent Java libraries are build, and used by the appengine-jetty-managed-runtime/src/main/docker/Dockerfile that build the Jetty9 Java8 GAE Compatibility image. To use the image, you need to build it with either a local docker installation or environment variables pointing to a remote docker instance:

      mvn clean install

This will create the following docker images:

  • gke-debian-openjdk:8-jre
  • gke-jetty:9.3.x
  • appengine-mvn-opensource:1.9.x

The last of these images may be used as the basis for a Java Web Application Archive: put a Dockerfile at the top directory (for example, with a Maven build, create the Dockerfile in ./src/main/webapp directory) and from this Docker image, just add your Web Application content into the /app of the container:

FROM appengine-mvn-opensource:latest
ADD . /app

The Dockerfile may also be used to update the jetty configuration, for example the following will enable the gzip module:

WORKDIR $JETTY_BASE
RUN java -jar $JETTY_HOME/start.jar --approve-all-licenses --add-to-startd=gzip

If a custom image changes the Jetty configuration, then the Dockerfile must regenerate the jetty_cmd.sh script:

RUN java -jar $JETTY_HOME/start.jar --dry-run | \
    sed 's/^.*java /exec & ${ALPN_BOOT} ${DBG_AGENT} ${PROF_AGENT} \
    -Xms${HEAP_SIZE} -Xmx${HEAP_SIZE} ${JAVA_OPTS} /' > jetty_cmd.sh

Then, you can run this App Engine flexible environment container via the Cloud SDK https://cloud.google.com/appengine/docs/flexible/java/hello-world

Enjoy...

appengine-java-vm-runtime's People

Contributors

aozarov avatar chanseokoh avatar gregw avatar hegemonic avatar janbartel avatar jboynes avatar ludoch avatar meltsufin avatar sharifelgamal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.