close

Filter

loading table of contents...

Deployment Manual / Version 2110

Table Of Contents
2.1.2.2.2 The java-application-base configuration
<configuration>
  <container>
    <entrypoint>INHERIT</entrypoint> 1
    <args>
      <arg>application</arg> 2
    </args>
    <user>coremedia:coremedia</user> 3
    <environment> 4
      <JAVA_HEAP>256m</JAVA_HEAP>
      <JAVA_PARALLEL_GC>true</JAVA_PARALLEL_GC>
      <SPRING_BOOT_EXPLODED_APP>true</SPRING_BOOT_EXPLODED_APP> 5
      <SPRING_BOOT_EXPLODED_MAINCLASS>@jib-main-class-file</SPRING_BOOT_EXPLODED_MAINCLASS> 6
      <SPRING_BOOT_EXPLODED_CLASSPATH>@jib-classpath-file</SPRING_BOOT_EXPLODED_CLASSPATH> 7
    </environment>
    <ports>
      <port>8080</port>
      <port>8081</port>
      <port>8199</port> 8
    </ports>
  </container>
</configuration>

1

With this directive, we tell jib to inherit the entrypoint information from the base image. In this case it is /coremedia/entrypoint.sh.

2

The argument to the entrypoint script. The application script encapsulates the startup logic. Visit the DockerHub page of the coremedia/java-application-base image for more details.

3

The user to start the application. With this base image, we need to use the coremedia user to start the application.

4

The environment variables the application entrypoint chain script can be configured.

5

With this environment variable we tell the script to extract or expect an extracted spring boot app in the image. Jib always extracts the application, because of the Spring-Boot layered jar approach.

6

The application starter class we defined in the properties section above.

7

The classloader classpath. This mimics the classloading, the Spring-Boot Jib extension automatically sets.

8

With the java-application-base image, we can activate the jmx-prometheus-agent. With the distroless approach either using the prometheus actuator is the preferred way.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.