Skip to content

Commit

Permalink
Update dependencies and java versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuss committed Apr 29, 2020
1 parent ed6c8b0 commit d5c1a02
Show file tree
Hide file tree
Showing 38 changed files with 169 additions and 89 deletions.
2 changes: 1 addition & 1 deletion fish-pepper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ blocks:
# run-java.sh for starting up Java processes
- type: "git"
url: "https://github.com/fabric8io-images/run-java-sh.git"
tag: v1.3.6
tag: v1.3.7
# agent bond for export Jolokia and jmx_exporter data
- type: "git"
url: "https://github.com/fabric8io/agent-bond.git"
Expand Down
22 changes: 11 additions & 11 deletions images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fish-pepper:
- version
- type
name: "fabric8/java"
build: "1.7.0"
build: "1.8.0"

# Used for escaping in 'agent-bond-opts' where the same delimiters are used
abSepOpen: "{{"
Expand All @@ -17,33 +17,33 @@ config:
agent: "agent-bond"
baseDir: "/deployments"
alpine:
from: "alpine:3.10"
version: "3.10"
from: "alpine:3.11"
version: "3.11"
description: "Alpine"
javaPackage:
7: 7.221.2.6.18-r0
8: 8.222.10-r0
11: 11.0.4_p4-r1
8: 8.242.08-r0
11: 11.0.5_p10-r0
centos:
from: "centos:7.7.1908"
createUser: true
user: "jboss"
version: "7"
description: "CentOS"
javaPackage:
7: 1.7.0.251-2.6.21.0.el7_7
8: 1.8.0.242.b08-0.el7_7
11: 11.0.6.10-1.el7_7
7: 1.7.0.251-2.6.21.1.el7
8: 1.8.0.242.b08-1.el7
11: 11.0.6.10-3.el7
ubi:
from: "registry.access.redhat.com/ubi8/ubi-minimal:8.1-398"
from: "registry.access.redhat.com/ubi8/ubi-minimal:8.2-267"
createUser: false
createUBIUser: true
ubiUser: 1001
version: "8.1"
description: "UBI"
javaPackage:
8: 1.8.0.242.b08-0.el8_1
11: 11.0.6.10-0.el8_1
8: 1.8.0.252.b09-2.el8_1
11: 11.0.7.10-1.el8_1
jboss:
deprecated: true
from: "jboss/base-jdk"
Expand Down
4 changes: 2 additions & 2 deletions images/alpine/openjdk11/jdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.11

USER root

Expand All @@ -13,7 +13,7 @@ ENV JAVA_APP_DIR=/deployments \
# according to http://www.2uo.de/myths-about-urandom/
RUN apk add --update \
curl \
openjdk11=11.0.4_p4-r1 \
openjdk11=11.0.5_p10-r0 \
&& rm /var/cache/apk/* \
&& echo "securerandom.source=file:/dev/urandom" >> /usr/lib/jvm/default-jvm/jre/lib/security/java.security

Expand Down
2 changes: 1 addition & 1 deletion images/alpine/openjdk11/jdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ mvn clean install

### Versions:

* Base-Image: **Alpine 3.10**
* Base-Image: **Alpine 3.11**
* Java: **OpenJDK 11 11** (Java Development Kit (JDK))
* Agent-Bond: **1.2.0** (Jolokia 1.6.2, jmx_exporter 0.3.1)
11 changes: 8 additions & 3 deletions images/alpine/openjdk11/jdk/run-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# https://www.youtube.com/watch?v=w1rZOY5gbvk
# https://vimeo.com/album/4133413/video/181900266
# Also note that heap is only a small portion of the memory used by a JVM. There are lot
# of other memory areas (metadata, thread, code cache, ...) which addes to the overall
# of other memory areas (metadata, thread, code cache, ...) which adds to the overall
# size. When your container gets killed because of an OOM, then you should tune
# the absolute values.
# JAVA_INIT_MEM_RATIO: Ratio use to calculate a default intial heap memory, in percent.
Expand Down Expand Up @@ -254,14 +254,19 @@ run_java_options() {

debug_options() {
if [ -n "${JAVA_ENABLE_DEBUG:-}" ] || [ -n "${JAVA_DEBUG_ENABLE:-}" ] || [ -n "${JAVA_DEBUG:-}" ]; then
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local suspend_mode="n"
if [ -n "${JAVA_DEBUG_SUSPEND:-}" ]; then
if ! echo "${JAVA_DEBUG_SUSPEND}" | grep -q -e '^\(false\|n\|no\|0\)$'; then
suspend_mode="y"
fi
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${debug_port}"

local address_prefix=""
if [ "${JAVA_MAJOR_VERSION:-0}" -ge "9" ]; then
address_prefix="*:"
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${address_prefix}${debug_port}"
fi
}

Expand Down
4 changes: 2 additions & 2 deletions images/alpine/openjdk11/jre/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.11

USER root

Expand All @@ -13,7 +13,7 @@ ENV JAVA_APP_DIR=/deployments \
# according to http://www.2uo.de/myths-about-urandom/
RUN apk add --update \
curl \
openjdk11-jre=11.0.4_p4-r1 \
openjdk11-jre=11.0.5_p10-r0 \
&& rm /var/cache/apk/* \
&& echo "securerandom.source=file:/dev/urandom" >> /usr/lib/jvm/default-jvm/jre/lib/security/java.security

Expand Down
2 changes: 1 addition & 1 deletion images/alpine/openjdk11/jre/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ mvn clean install

### Versions:

* Base-Image: **Alpine 3.10**
* Base-Image: **Alpine 3.11**
* Java: **OpenJDK 11 11** (Java Runtime Environment (JRE))
* Agent-Bond: **1.2.0** (Jolokia 1.6.2, jmx_exporter 0.3.1)
11 changes: 8 additions & 3 deletions images/alpine/openjdk11/jre/run-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# https://www.youtube.com/watch?v=w1rZOY5gbvk
# https://vimeo.com/album/4133413/video/181900266
# Also note that heap is only a small portion of the memory used by a JVM. There are lot
# of other memory areas (metadata, thread, code cache, ...) which addes to the overall
# of other memory areas (metadata, thread, code cache, ...) which adds to the overall
# size. When your container gets killed because of an OOM, then you should tune
# the absolute values.
# JAVA_INIT_MEM_RATIO: Ratio use to calculate a default intial heap memory, in percent.
Expand Down Expand Up @@ -254,14 +254,19 @@ run_java_options() {

debug_options() {
if [ -n "${JAVA_ENABLE_DEBUG:-}" ] || [ -n "${JAVA_DEBUG_ENABLE:-}" ] || [ -n "${JAVA_DEBUG:-}" ]; then
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local suspend_mode="n"
if [ -n "${JAVA_DEBUG_SUSPEND:-}" ]; then
if ! echo "${JAVA_DEBUG_SUSPEND}" | grep -q -e '^\(false\|n\|no\|0\)$'; then
suspend_mode="y"
fi
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${debug_port}"

local address_prefix=""
if [ "${JAVA_MAJOR_VERSION:-0}" -ge "9" ]; then
address_prefix="*:"
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${address_prefix}${debug_port}"
fi
}

Expand Down
2 changes: 1 addition & 1 deletion images/alpine/openjdk7/jdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.11

USER root

Expand Down
2 changes: 1 addition & 1 deletion images/alpine/openjdk7/jdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ mvn clean install

### Versions:

* Base-Image: **Alpine 3.10**
* Base-Image: **Alpine 3.11**
* Java: **OpenJDK 7 1.7.0** (Java Development Kit (JDK))
* Agent-Bond: **1.2.0** (Jolokia 1.6.2, jmx_exporter 0.3.1)
11 changes: 8 additions & 3 deletions images/alpine/openjdk7/jdk/run-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# https://www.youtube.com/watch?v=w1rZOY5gbvk
# https://vimeo.com/album/4133413/video/181900266
# Also note that heap is only a small portion of the memory used by a JVM. There are lot
# of other memory areas (metadata, thread, code cache, ...) which addes to the overall
# of other memory areas (metadata, thread, code cache, ...) which adds to the overall
# size. When your container gets killed because of an OOM, then you should tune
# the absolute values.
# JAVA_INIT_MEM_RATIO: Ratio use to calculate a default intial heap memory, in percent.
Expand Down Expand Up @@ -254,14 +254,19 @@ run_java_options() {

debug_options() {
if [ -n "${JAVA_ENABLE_DEBUG:-}" ] || [ -n "${JAVA_DEBUG_ENABLE:-}" ] || [ -n "${JAVA_DEBUG:-}" ]; then
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local suspend_mode="n"
if [ -n "${JAVA_DEBUG_SUSPEND:-}" ]; then
if ! echo "${JAVA_DEBUG_SUSPEND}" | grep -q -e '^\(false\|n\|no\|0\)$'; then
suspend_mode="y"
fi
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${debug_port}"

local address_prefix=""
if [ "${JAVA_MAJOR_VERSION:-0}" -ge "9" ]; then
address_prefix="*:"
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${address_prefix}${debug_port}"
fi
}

Expand Down
2 changes: 1 addition & 1 deletion images/alpine/openjdk7/jre/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.11

USER root

Expand Down
2 changes: 1 addition & 1 deletion images/alpine/openjdk7/jre/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ mvn clean install

### Versions:

* Base-Image: **Alpine 3.10**
* Base-Image: **Alpine 3.11**
* Java: **OpenJDK 7 1.7.0** (Java Runtime Environment (JRE))
* Agent-Bond: **1.2.0** (Jolokia 1.6.2, jmx_exporter 0.3.1)
11 changes: 8 additions & 3 deletions images/alpine/openjdk7/jre/run-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# https://www.youtube.com/watch?v=w1rZOY5gbvk
# https://vimeo.com/album/4133413/video/181900266
# Also note that heap is only a small portion of the memory used by a JVM. There are lot
# of other memory areas (metadata, thread, code cache, ...) which addes to the overall
# of other memory areas (metadata, thread, code cache, ...) which adds to the overall
# size. When your container gets killed because of an OOM, then you should tune
# the absolute values.
# JAVA_INIT_MEM_RATIO: Ratio use to calculate a default intial heap memory, in percent.
Expand Down Expand Up @@ -254,14 +254,19 @@ run_java_options() {

debug_options() {
if [ -n "${JAVA_ENABLE_DEBUG:-}" ] || [ -n "${JAVA_DEBUG_ENABLE:-}" ] || [ -n "${JAVA_DEBUG:-}" ]; then
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local suspend_mode="n"
if [ -n "${JAVA_DEBUG_SUSPEND:-}" ]; then
if ! echo "${JAVA_DEBUG_SUSPEND}" | grep -q -e '^\(false\|n\|no\|0\)$'; then
suspend_mode="y"
fi
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${debug_port}"

local address_prefix=""
if [ "${JAVA_MAJOR_VERSION:-0}" -ge "9" ]; then
address_prefix="*:"
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${address_prefix}${debug_port}"
fi
}

Expand Down
4 changes: 2 additions & 2 deletions images/alpine/openjdk8/jdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.11

USER root

Expand All @@ -13,7 +13,7 @@ ENV JAVA_APP_DIR=/deployments \
# according to http://www.2uo.de/myths-about-urandom/
RUN apk add --update \
curl \
openjdk8=8.222.10-r0 \
openjdk8=8.242.08-r0 \
&& rm /var/cache/apk/* \
&& echo "securerandom.source=file:/dev/urandom" >> /usr/lib/jvm/default-jvm/jre/lib/security/java.security

Expand Down
2 changes: 1 addition & 1 deletion images/alpine/openjdk8/jdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ mvn clean install

### Versions:

* Base-Image: **Alpine 3.10**
* Base-Image: **Alpine 3.11**
* Java: **OpenJDK 8 1.8.0** (Java Development Kit (JDK))
* Agent-Bond: **1.2.0** (Jolokia 1.6.2, jmx_exporter 0.3.1)
11 changes: 8 additions & 3 deletions images/alpine/openjdk8/jdk/run-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# https://www.youtube.com/watch?v=w1rZOY5gbvk
# https://vimeo.com/album/4133413/video/181900266
# Also note that heap is only a small portion of the memory used by a JVM. There are lot
# of other memory areas (metadata, thread, code cache, ...) which addes to the overall
# of other memory areas (metadata, thread, code cache, ...) which adds to the overall
# size. When your container gets killed because of an OOM, then you should tune
# the absolute values.
# JAVA_INIT_MEM_RATIO: Ratio use to calculate a default intial heap memory, in percent.
Expand Down Expand Up @@ -254,14 +254,19 @@ run_java_options() {

debug_options() {
if [ -n "${JAVA_ENABLE_DEBUG:-}" ] || [ -n "${JAVA_DEBUG_ENABLE:-}" ] || [ -n "${JAVA_DEBUG:-}" ]; then
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local suspend_mode="n"
if [ -n "${JAVA_DEBUG_SUSPEND:-}" ]; then
if ! echo "${JAVA_DEBUG_SUSPEND}" | grep -q -e '^\(false\|n\|no\|0\)$'; then
suspend_mode="y"
fi
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${debug_port}"

local address_prefix=""
if [ "${JAVA_MAJOR_VERSION:-0}" -ge "9" ]; then
address_prefix="*:"
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${address_prefix}${debug_port}"
fi
}

Expand Down
4 changes: 2 additions & 2 deletions images/alpine/openjdk8/jre/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.11

USER root

Expand All @@ -13,7 +13,7 @@ ENV JAVA_APP_DIR=/deployments \
# according to http://www.2uo.de/myths-about-urandom/
RUN apk add --update \
curl \
openjdk8-jre=8.222.10-r0 \
openjdk8-jre=8.242.08-r0 \
&& rm /var/cache/apk/* \
&& echo "securerandom.source=file:/dev/urandom" >> /usr/lib/jvm/default-jvm/jre/lib/security/java.security

Expand Down
2 changes: 1 addition & 1 deletion images/alpine/openjdk8/jre/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ mvn clean install

### Versions:

* Base-Image: **Alpine 3.10**
* Base-Image: **Alpine 3.11**
* Java: **OpenJDK 8 1.8.0** (Java Runtime Environment (JRE))
* Agent-Bond: **1.2.0** (Jolokia 1.6.2, jmx_exporter 0.3.1)
11 changes: 8 additions & 3 deletions images/alpine/openjdk8/jre/run-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# https://www.youtube.com/watch?v=w1rZOY5gbvk
# https://vimeo.com/album/4133413/video/181900266
# Also note that heap is only a small portion of the memory used by a JVM. There are lot
# of other memory areas (metadata, thread, code cache, ...) which addes to the overall
# of other memory areas (metadata, thread, code cache, ...) which adds to the overall
# size. When your container gets killed because of an OOM, then you should tune
# the absolute values.
# JAVA_INIT_MEM_RATIO: Ratio use to calculate a default intial heap memory, in percent.
Expand Down Expand Up @@ -254,14 +254,19 @@ run_java_options() {

debug_options() {
if [ -n "${JAVA_ENABLE_DEBUG:-}" ] || [ -n "${JAVA_DEBUG_ENABLE:-}" ] || [ -n "${JAVA_DEBUG:-}" ]; then
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local debug_port="${JAVA_DEBUG_PORT:-5005}"
local suspend_mode="n"
if [ -n "${JAVA_DEBUG_SUSPEND:-}" ]; then
if ! echo "${JAVA_DEBUG_SUSPEND}" | grep -q -e '^\(false\|n\|no\|0\)$'; then
suspend_mode="y"
fi
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${debug_port}"

local address_prefix=""
if [ "${JAVA_MAJOR_VERSION:-0}" -ge "9" ]; then
address_prefix="*:"
fi
echo "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspend_mode},address=${address_prefix}${debug_port}"
fi
}

Expand Down
4 changes: 2 additions & 2 deletions images/centos/openjdk11/jdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ ENV JAVA_APP_DIR=/deployments \
# /dev/urandom is used as random source, which is prefectly safe
# according to http://www.2uo.de/myths-about-urandom/
RUN yum install -y \
java-11-openjdk-11.0.6.10-1.el7_7 \
java-11-openjdk-devel-11.0.6.10-1.el7_7 \
java-11-openjdk-11.0.6.10-3.el7 \
java-11-openjdk-devel-11.0.6.10-3.el7 \
&& echo "securerandom.source=file:/dev/urandom" >> /usr/lib/jvm/jre/lib/security/java.security \
&& yum clean all

Expand Down
Loading

0 comments on commit d5c1a02

Please sign in to comment.