Compare commits
21
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4a8e54d5a | ||
|
|
f4140cf68a | ||
|
|
712a1d5e1e | ||
|
|
104dc26401 | ||
|
|
88cd66eed9 | ||
|
|
57a5abd39f | ||
|
|
0cf13fd6b9 | ||
|
|
3833e5da8f | ||
|
|
6c23bedeb6 | ||
|
|
3110974360 | ||
|
|
efdfe420f8 | ||
|
|
d0063bcd52 | ||
|
|
3628dd49f4 | ||
|
|
a7a9d8ca7d | ||
|
|
30ec25f019 | ||
|
|
fb0267bb13 | ||
|
|
e80b70a0cb | ||
|
|
7a1ccfead3 | ||
|
|
315bf2c9e1 | ||
|
|
27abe6e394 | ||
|
|
bf5701b959 |
@@ -0,0 +1,55 @@
|
|||||||
|
|
||||||
|
FROM docker.inteligr8.com/inteligr8/base:${base.image.version}
|
||||||
|
|
||||||
|
# Configure standard JAVA parameters
|
||||||
|
ENV JAVA_MEMORY_INIT=128m
|
||||||
|
ENV JAVA_MEMORY_MAX=512m
|
||||||
|
ENV JAVA_OPTS=
|
||||||
|
ENV ENABLE_HOTSWAP=true
|
||||||
|
ENV ENABLE_JDWP=true
|
||||||
|
ENV DISABLE_HOTSWAP_PLUGINS=
|
||||||
|
|
||||||
|
# these are effectively immutable; provided to be used by extending images
|
||||||
|
# the entrypoint will re-set these in case they are changed
|
||||||
|
ENV JAVA_HOME=/usr/local/lib/jvm/java-openjdk-jbr
|
||||||
|
ENV JRE_HOME=/usr/local/lib/jvm/java-openjdk-jbr
|
||||||
|
|
||||||
|
# Install essentials for Java
|
||||||
|
RUN apt update && \
|
||||||
|
apt -y install libfreetype6 fontconfig fonts-dejavu ca-certificates-java
|
||||||
|
|
||||||
|
# Download & Install JBR Java
|
||||||
|
RUN mkdir -p /usr/local/lib/jvm && \
|
||||||
|
cd /usr/local/lib/jvm && \
|
||||||
|
curl -L https://cache-redirector.jetbrains.com/intellij-jbr/${jbr.filename} -o java-openjdk-jbr.tar.gz && \
|
||||||
|
tar xzvf java-openjdk-jbr.tar.gz && \
|
||||||
|
mv ${jbr.basename} java-openjdk-jbr && \
|
||||||
|
mkdir -p java-openjdk-jbr/lib/hotswap && \
|
||||||
|
rm java-openjdk-jbr.tar.gz && \
|
||||||
|
cd ../../bin && \
|
||||||
|
ln -s ../lib/jvm/java-openjdk-jbr/bin/java . && \
|
||||||
|
ln -s ../lib/jvm/java-openjdk-jbr/bin/keytool .
|
||||||
|
|
||||||
|
# Configure `cacerts`
|
||||||
|
RUN update-ca-certificates && \
|
||||||
|
cd /usr/local/lib/jvm/java-openjdk-jbr/lib/security && \
|
||||||
|
rm cacerts && \
|
||||||
|
ln -s /etc/ssl/certs/java/cacerts .
|
||||||
|
|
||||||
|
# Download Hotswap Agent
|
||||||
|
RUN curl -L https://github.com/HotswapProjects/HotswapAgent/releases/download/RELEASE-${hotswap.version}/hotswap-agent-${hotswap.version}.jar -o /usr/local/lib/jvm/java-openjdk-jbr/lib/hotswap/hotswap-agent.jar
|
||||||
|
|
||||||
|
# Add directories for dynamic injection points
|
||||||
|
RUN mkdir -p /var/lib/jvm && cd /var/lib/jvm && \
|
||||||
|
mkdir dev lib && cd dev && \
|
||||||
|
mkdir classes classes-extra1 classes-extra2 classes-extra3 classes-extra4 classes-extra5 classes-extra6 classes-extra7 && \
|
||||||
|
mkdir lib lib-extra1 lib-extra2 lib-extra3 lib-extra4 lib-extra5 lib-extra6 lib-extra7
|
||||||
|
|
||||||
|
# Add our Docker container initialization scripts
|
||||||
|
ADD --chmod=755 maven/setenv.sh ${CONTAINERD_ENTRYPOINT_PATH}/10-setenv-${artifactId}.sh
|
||||||
|
|
||||||
|
# Add our default hotswap configuration; may be overwritten in dev/classes* volumes
|
||||||
|
ADD --chmod=644 maven/hotswap-agent.properties /var/lib/jvm/lib
|
||||||
|
|
||||||
|
# Listening for Java debugger traffic
|
||||||
|
EXPOSE 8000
|
||||||
-50
@@ -1,50 +0,0 @@
|
|||||||
|
|
||||||
FROM ubuntu:${ubuntu.version}
|
|
||||||
|
|
||||||
# Configure standard JAVA parameters
|
|
||||||
ENV JAVA_MEMORY_INIT=128m
|
|
||||||
ENV JAVA_MEMORY_MAX=512m
|
|
||||||
ENV JAVA_HOME=/usr/local/lib/jvm/java-openjdk-dcevm
|
|
||||||
ENV JRE_HOME=/usr/local/lib/jvm/java-openjdk-dcevm
|
|
||||||
ENV JAVA_OPTS=
|
|
||||||
ENV ENABLE_HOTSWAP=true
|
|
||||||
ENV ENABLE_JDWP=true
|
|
||||||
ENV DISABLE_HOTSWAP_PLUGINS=
|
|
||||||
|
|
||||||
# Install curl
|
|
||||||
RUN apt update && \
|
|
||||||
apt -y install curl
|
|
||||||
|
|
||||||
# Download & Install DCEVM Java
|
|
||||||
RUN mkdir -p /usr/local/lib/jvm && \
|
|
||||||
curl -L https://github.com/TravaOpenJDK/trava-jdk-${dcevm.majorVersion}-dcevm/releases/download/dcevm-${dcevm.version}/${dcevm.filename} -o /usr/local/lib/jvm/java-openjdk-dcevm.tar.gz && \
|
|
||||||
cd /usr/local/lib/jvm && \
|
|
||||||
tar xzvf java-openjdk-dcevm.tar.gz && \
|
|
||||||
mv dcevm-${dcevm.version} java-openjdk-dcevm && \
|
|
||||||
rm java-openjdk-dcevm.tar.gz
|
|
||||||
|
|
||||||
# Download Hotswap Agent
|
|
||||||
RUN curl -L https://github.com/HotswapProjects/HotswapAgent/releases/download/RELEASE-${hotswap.version}/hotswap-agent-${hotswap.version}.jar -o /usr/local/lib/jvm/hotswap-agent.jar
|
|
||||||
|
|
||||||
# Add directories for dynamic injection points
|
|
||||||
RUN mkdir -p /var/lib/jvm && cd /var/lib/jvm && \
|
|
||||||
mkdir dev lib && cd dev && \
|
|
||||||
mkdir classes classes-extra1 classes-extra2 classes-extra3 classes-extra4 classes-extra5 classes-extra6 classes-extra7 && \
|
|
||||||
mkdir lib lib-extra1 lib-extra2 lib-extra3 lib-extra4 lib-extra5 lib-extra6 lib-extra7
|
|
||||||
|
|
||||||
# Add our Docker container initialization scripts
|
|
||||||
ADD maven/target/setenv.sh /usr/local/bin/${dcevm.prefix}-setenv.sh
|
|
||||||
ADD maven/target/docker-entrypoint.sh /usr/local/bin
|
|
||||||
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh
|
|
||||||
|
|
||||||
# Add our default hotswap configuration; may be overwritten in dev/classes* volumes
|
|
||||||
ADD maven/target/hotswap-agent.properties /var/lib/jvm/lib
|
|
||||||
|
|
||||||
# Listening for Java debugger traffic
|
|
||||||
EXPOSE 8000
|
|
||||||
|
|
||||||
# Running as ROOT user for now
|
|
||||||
#USER java
|
|
||||||
|
|
||||||
# Execute the Docker container initialization script
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/docker-entrypoint.sh" ]
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
# Java Application Container Image with Hot-Reloading
|
# Java Application Container Image with Hot-Reloading
|
||||||
|
|
||||||
This project creates a Docker image that has uses both the [Trava DCEVM](http://dcevm.github.io/) and [Hotswap Agent](http://hotswapagent.org/) and the Java JDWP debugger. The combination of these utilities allows for the hot-reloading of Java resources and classes to enable rapid application development and debugging capabilties. As a Docker image, containers can be started to facilitate development without requiring complicated installations on developer workstations.
|
This project creates a Docker image that has uses both the [Jetbrains JDK](https://github.com/JetBrains/JetBrainsRuntime) and [Hotswap Agent](http://hotswapagent.org/) and the Java JDWP debugger. The combination of these utilities allows for the hot-reloading of Java resources and classes to enable rapid application development and debugging capabilties. As a Docker image, containers can be started to facilitate development without requiring complicated installations on developer workstations.
|
||||||
|
|
||||||
It is expected that containers are configured in Maven using the Fabric8 or Spotify Docker plugins. These configurations should expose the 8000 (debugger) port and any other port that the application may open. Most importantly, it should mount/bind the source code to the following possible paths.
|
It is expected that containers are configured in Maven using the Fabric8 or Spotify Docker plugins. These configurations should expose the 8000 (debugger) port and any other port that the application may open. Most importantly, it should mount/bind the source code to the following possible paths.
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
. /usr/local/bin/${dcevm.prefix}-setenv.sh
|
|
||||||
|
|
||||||
JAVA_CP="/var/lib/jvm/lib:/var/lib/jvm/lib/*"
|
|
||||||
JAVA_CP="${JAVA_CP}:/var/lib/jvm/dev/classes:/var/lib/jvm/dev/classes-extra1:/var/lib/jvm/dev/classes-extra2:/var/lib/jvm/dev/classes-extra3:/var/lib/jvm/dev/classes-extra4:/var/lib/jvm/dev/classes-extra5:/var/lib/jvm/dev/classes-extra6:/var/lib/jvm/dev/classes-extra7"
|
|
||||||
JAVA_CP="${JAVA_CP}:/var/lib/jvm/dev/lib/*:/var/lib/jvm/dev/lib-extra1/*:/var/lib/jvm/dev/lib-extra2/*:/var/lib/jvm/dev/lib-extra3/*:/var/lib/jvm/dev/lib-extra4/*:/var/lib/jvm/dev/lib-extra5/*:/var/lib/jvm/dev/lib-extra6/*:/var/lib/jvm/dev/lib-extra7/*"
|
|
||||||
EXEC_JAVA_OPTS="${JAVA_OPTS} -classpath ${JAVA_CP}"
|
|
||||||
|
|
||||||
exec ${JAVA_HOME}/bin/java ${EXEC_JAVA_OPTS} ${JAVA_CLASS}
|
|
||||||
@@ -1,115 +1,160 @@
|
|||||||
<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">
|
<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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.inteligr8</groupId>
|
<groupId>com.inteligr8</groupId>
|
||||||
<artifactId>java-dcevm-hotswap</artifactId>
|
<artifactId>jdk-hotswap</artifactId>
|
||||||
<version>11.0.15-1.4.1</version>
|
<version>${hotswap.version}-jbr-${jbr.version}</version>
|
||||||
<name>Java DCEVM for Rapid Application Development</name>
|
<name>Java Hotswap Kit for Rapid Application Development</name>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- The release version of Ubuntu to use as the base -->
|
<!-- See: https://git.inteligr8.com/inteligr8/base-image -->
|
||||||
<!-- See: https://hub.docker.com/_/ubuntu -->
|
<!-- See: https://repos.inteligr8.com/nexus/service/rest/repository/browse/inteligr8-docker-public/v2/inteligr8/base/tags/ -->
|
||||||
<!-- This has very little impact and may be replaced -->
|
<base.image.version>1.0-deb12</base.image.version>
|
||||||
<ubuntu.version>20.04</ubuntu.version>
|
|
||||||
<dcevm.prefix>${project.artifactId}</dcevm.prefix>
|
|
||||||
|
|
||||||
<!-- The version of Java DCEVM to use for executing Apache Tomcat -->
|
<!-- The version of the Hotswap Agent to use -->
|
||||||
<!-- See: https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases -->
|
<!-- See: https://github.com/HotswapProjects/HotswapAgent/releases -->
|
||||||
<dcevm.version>11.0.15+1</dcevm.version>
|
<hotswap.version>2.0.3</hotswap.version>
|
||||||
<dcevm.majorVersion>11</dcevm.majorVersion>
|
|
||||||
<dcevm.os-arch>linux-x64</dcevm.os-arch>
|
|
||||||
<!-- v11.0.10
|
|
||||||
<dcevm.filename>java${dcevm.majorVersion}-openjdk-dcevm-${dcevm.os-arch}.tar.gz</dcevm.filename>
|
|
||||||
-->
|
|
||||||
<dcevm.filename>Openjdk${dcevm.majorVersion}u-dcevm-${dcevm.os-arch}.tar.gz</dcevm.filename>
|
|
||||||
|
|
||||||
<!-- The version of the Hotswap Agent to use -->
|
<!-- The version of the JetBrains JDK -->
|
||||||
<!-- See: https://github.com/HotswapProjects/HotswapAgent/releases -->
|
<!-- See: https://github.com/JetBrains/JetBrainsRuntime/releases -->
|
||||||
<hotswap.version>1.4.1</hotswap.version>
|
<jbr.version>21.0.11</jbr.version>
|
||||||
|
<jbr.buildNumber>1163.116</jbr.buildNumber>
|
||||||
|
<jbr.basename>jbr_jcef-${jbr.version}-linux-x64-b${jbr.buildNumber}</jbr.basename>
|
||||||
|
<jbr.filename>${jbr.basename}.tar.gz</jbr.filename>
|
||||||
|
|
||||||
<!-- The Docker image meta-data for pushing the build -->
|
<!-- The Docker image meta-data for pushing the build -->
|
||||||
<image.name>inteligr8/${project.artifactId}</image.name>
|
<image.name>inteligr8/${project.artifactId}</image.name>
|
||||||
<image.tag>${project.version}</image.tag>
|
<image.tag>${project.version}</image.tag>
|
||||||
<image.registry>docker.inteligr8.com</image.registry>
|
<image.registry>docker.inteligr8.com</image.registry>
|
||||||
</properties>
|
|
||||||
|
|
||||||
<build>
|
<!-- using version properties so they can be overridden by child projects or Maven executions -->
|
||||||
<resources>
|
<maven-resources-plugin.version>3.5.0</maven-resources-plugin.version>
|
||||||
<resource>
|
<maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version>
|
||||||
<directory>.</directory>
|
<kubernetes-maven-plugin.version>1.19.0</kubernetes-maven-plugin.version>
|
||||||
<includes>
|
<regex-maven-plugin.version>1.0.7</regex-maven-plugin.version>
|
||||||
<include>*.sh</include>
|
</properties>
|
||||||
<include>*.properties</include>
|
|
||||||
</includes>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
<targetPath>${project.build.directory}</targetPath>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
|
||||||
<version>3.3.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>copy-resources</id>
|
|
||||||
<phase>process-resources</phase>
|
|
||||||
<goals><goal>resources</goal></goals>
|
|
||||||
<configuration>
|
|
||||||
<encoding>utf-8</encoding>
|
|
||||||
<propertiesEncoding>utf-8</propertiesEncoding>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<!-- This plugin build and pushes the Docker image -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.jkube</groupId>
|
|
||||||
<artifactId>kubernetes-maven-plugin</artifactId>
|
|
||||||
<version>1.14.0</version>
|
|
||||||
<configuration>
|
|
||||||
<images>
|
|
||||||
<image>
|
|
||||||
<name>${image.name}:${image.tag}</name>
|
|
||||||
<registry>${image.registry}</registry>
|
|
||||||
</image>
|
|
||||||
</images>
|
|
||||||
<contextDir>${project.build.directory}</contextDir>
|
|
||||||
<verbose>true</verbose>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<!-- This execution builds the Docker image -->
|
|
||||||
<execution>
|
|
||||||
<id>docker-build</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals><goal>build</goal></goals>
|
|
||||||
</execution>
|
|
||||||
<!-- This execution pushes the built Docker image to the configured Docker Registry -->
|
|
||||||
<execution>
|
|
||||||
<id>docker-push</id>
|
|
||||||
<phase>deploy</phase>
|
|
||||||
<goals><goal>push</goal></goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<!-- This plugin prevents the project from deploying to the Maven Repository, as it is pointless -->
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
<version>3.1.1</version>
|
|
||||||
<configuration>
|
|
||||||
<skip>true</skip>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
<profiles>
|
<build>
|
||||||
<profile>
|
<resources>
|
||||||
<id>no-docker</id>
|
<resource>
|
||||||
<properties>
|
<directory>src/main/containerd</directory>
|
||||||
<jkube.build.strategy>jib</jkube.build.strategy>
|
<filtering>true</filtering>
|
||||||
</properties>
|
<targetPath>${project.build.directory}/resources</targetPath>
|
||||||
</profile>
|
</resource>
|
||||||
</profiles>
|
</resources>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<version>${maven-resources-plugin.version}</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<version>${maven-deploy-plugin.version}</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.jkube</groupId>
|
||||||
|
<artifactId>kubernetes-maven-plugin</artifactId>
|
||||||
|
<version>${kubernetes-maven-plugin.version}</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.inteligr8</groupId>
|
||||||
|
<artifactId>regex-maven-plugin</artifactId>
|
||||||
|
<version>${regex-maven-plugin.version}</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.inteligr8</groupId>
|
||||||
|
<artifactId>regex-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>determine-jbr-major-version</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>replace-property</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<property>jbr.version</property>
|
||||||
|
<newProperty>jbr.majorVersion</newProperty>
|
||||||
|
<regexes>
|
||||||
|
<regex>
|
||||||
|
<pattern>([^.]+).*</pattern>
|
||||||
|
<replacement>$1</replacement>
|
||||||
|
</regex>
|
||||||
|
</regexes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-resources</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals><goal>resources</goal></goals>
|
||||||
|
<configuration>
|
||||||
|
<encoding>utf-8</encoding>
|
||||||
|
<propertiesEncoding>utf-8</propertiesEncoding>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- This plugin build and pushes the Docker image -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.jkube</groupId>
|
||||||
|
<artifactId>kubernetes-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<images>
|
||||||
|
<image>
|
||||||
|
<name>${image.name}:${image.tag}</name>
|
||||||
|
<registry>${image.registry}</registry>
|
||||||
|
<build>
|
||||||
|
<contextDir>${project.build.directory}/resources</contextDir>
|
||||||
|
<dockerFile>${project.basedir}/Containerfile</dockerFile>
|
||||||
|
<tags>
|
||||||
|
<tag>${hotswap.version}-jbr${jbr.majorVersion}</tag>
|
||||||
|
</tags>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<!-- This execution builds the Docker image -->
|
||||||
|
<execution>
|
||||||
|
<id>docker-build</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals><goal>build</goal></goals>
|
||||||
|
</execution>
|
||||||
|
<!-- This execution pushes the built Docker image to the configured Docker Registry -->
|
||||||
|
<execution>
|
||||||
|
<id>docker-push</id>
|
||||||
|
<phase>deploy</phase>
|
||||||
|
<goals><goal>push</goal></goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<!-- This plugin prevents the project from deploying to the Maven Repository, as it is pointless -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>no-docker</id>
|
||||||
|
<properties>
|
||||||
|
<jkube.build.strategy>jib</jkube.build.strategy>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# immutable
|
||||||
|
JAVA_HOME=/usr/local/lib/jvm/java-openjdk-jbr
|
||||||
|
JRE_HOME=/usr/local/lib/jvm/java-openjdk-jbr
|
||||||
JAVA_OPTS="${JAVA_OPTS} -Xms${JAVA_MEMORY_INIT} -Xmx${JAVA_MEMORY_MAX}"
|
JAVA_OPTS="${JAVA_OPTS} -Xms${JAVA_MEMORY_INIT} -Xmx${JAVA_MEMORY_MAX}"
|
||||||
|
|
||||||
if [ "${ENABLE_HOTSWAP}" = "true" ]; then
|
if [ "${ENABLE_HOTSWAP}" = "true" ]; then
|
||||||
JAVA_OPTS="${JAVA_OPTS} -XX:HotswapAgent=external -javaagent:/usr/local/lib/jvm/hotswap-agent.jar"
|
JAVA_OPTS="${JAVA_OPTS} -XX:+AllowEnhancedClassRedefinition -XX:HotswapAgent=fatjar"
|
||||||
JAVA_OPTS="${JAVA_OPTS} -Dhotswap.disablePlugins=${DISABLE_HOTSWAP_PLUGINS}"
|
JAVA_OPTS="${JAVA_OPTS} -Dhotswap.disablePlugins=${DISABLE_HOTSWAP_PLUGINS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Reference in New Issue
Block a user