Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions appengine-java-logging/pom.xml

This file was deleted.

13 changes: 4 additions & 9 deletions appengine-managed-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,11 @@
</properties>

<dependencies>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-java-logging</artifactId>
<version>1.9.27-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>${appengine.api.version}</version>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
Expand All @@ -65,21 +59,22 @@
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>

<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>gke-jetty</artifactId>
<version>1.9.27-SNAPSHOT</version>
<type>pom</type>
</dependency>

<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
143 changes: 143 additions & 0 deletions gae-managed-runtime-jetty9/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-java-vm-runtime</artifactId>
<version>1.9.27-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<name>Google App Engine Image for GAEv1 Java Compatibility</name>
<artifactId>gae-managed-runtime-jetty9</artifactId>
<packaging>pom</packaging>

<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>jetty-base</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.google.appengine</groupId>
<artifactId>managed-runtime-jetty9</artifactId>
<version>${project.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
<includes>**</includes>
<outputDirectory>${project.build.directory}/docker/</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
<execution>
<id>gae-jars</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/docker/lib/gae</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<excludeTransitive>false</excludeTransitive>
<excludeGroupIds>org.eclipse.jetty,org.ow2.asm,javax.annotation,javax.servlet,javax.transaction</excludeGroupIds>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.3.2</version>
<executions>
<execution>
<id>build-gae</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<forceTags>true</forceTags>
<imageName>appengine-mvn-opensource:${project.version}</imageName>
<imageTags>
<imageTag>latest</imageTag>
</imageTags>
<dockerDirectory>${project.basedir}/target/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/lib/gae</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>clean-docker</id>
<phase>clean</phase>
<goals>
<goal>removeImage</goal>
</goals>
<configuration>
<imageName>appengine-mvn-opensource</imageName>
<imageTags>
<imageTag>${project.version}</imageTag>
<imageTag>latest</imageTag>
</imageTags>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>generate-docker</id>
<phase>generate-sources</phase>
<configuration>
<target>
<copy todir="${project.build.directory}/docker">
<fileset dir="${project.basedir}/src/main/docker"/>
</copy>
<replace file="${project.build.directory}/docker/Dockerfile" token="@@jetty.version@@" value="${jetty.version}"/>
<replace file="${project.build.directory}/docker/Dockerfile" token="@@project.version@@" value="${project.version}"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@

FROM gke-jetty:@@jetty.version@@

ADD . $JETTY_BASE
RUN rm -fr $JETTY_BASE \
&& mkdir $JETTY_BASE

ADD managed-runtime-jetty9-@@project.version@@ jetty_run.sh $JETTY_BASE/

WORKDIR $JETTY_BASE
RUN sed -i 's/^\([a-zA-Z\.]*=\).*/#\1(see gae.ini)/' start.d/server.ini \
&& rm -f start.d/setuid.ini start.d/deploy.ini \
&& java -jar $JETTY_HOME/start.jar --add-to-startd=gae,gae-deploy \
&& java -jar $JETTY_HOME/start.jar --dry-run \
| sed 's/^.*java /& ${ALPN_BOOT} ${DBG_AGENT} ${PROF_AGENT} -Xms${HEAP_SIZE} -Xmx${HEAP_SIZE} ${JAVA_OPTS} /' > jetty_cmd.sh \
&& chmod +x /var/lib/jetty/jetty_run.sh
&& chown -R jetty:jetty $JETTY_BASE \
&& chmod +x $JETTY_BASE/jetty_run.sh

WORKDIR /app

Expand Down
Loading