Skip to content

Instantly share code, notes, and snippets.

@diuis
Created September 7, 2018 14:31
Show Gist options
  • Save diuis/71544d6e8d1af203ef88b361609f136a to your computer and use it in GitHub Desktop.
Save diuis/71544d6e8d1af203ef88b361609f136a to your computer and use it in GitHub Desktop.
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<configuration>
<to>
<image>gcr.io/xxx-catalogue/xxx-catalog-be:${project.version}</image>
<auth>
<username>_json_key</username>
<password>${env.GCR_JSONKEY}</password>
</auth>
</to>
<container>
<jvmFlags>
<jvmFlag>-Dgeronimo.metrics.jaxrs.activated=true</jvmFlag>
</jvmFlags>
<mainClass>xxx.catalogue.be.meecrowave.Application</mainClass>
<args>
<arg>some</arg>
<arg>args</arg>
</args>
<ports>
<port>9998</port>
</ports>
</container>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment