mirror of
https://github.com/google/nomulus.git
synced 2025-06-24 05:11:10 +02:00
This CL adds two ways to build an docker image with gradle: 1) Adds a :proxy:deployJar task that builds an uber jar that contains all runtime dependencies. The jar can then be add to a docker image by calling docker with the added Dockerfile. The base image for this image can be both distroless java or openjdk:alpine. 2) Uses the Gradle distribution plugin to build a distribution tar file that contains all dependencies (as separate jar files) and a run script that sets up the classpath before calling the main class. Then the docker application plugin can build a docker image (with the dockerBuildImage task) using the application tar file. This only works with openjdk:alpline base image as the distroless java image does not contain a shell and therefore the script created by the distribution plugin cannot be launched. We may later decide to use one of the method and remove the other. Also adds an outcast test pattern that caused the tests to be flaky. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=222145192 |
||
---|---|---|
.. | ||
build.gradle | ||
Dockerfile |