Skip to content

Commit

Permalink
deps: bump base image versions
Browse files Browse the repository at this point in the history
  • Loading branch information
manusa committed Aug 3, 2022
1 parent 779688d commit 79f8232
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion jkube-java-11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema_version: 1
name: "quay.io/jkube/jkube-java-11"
description: "Platform for building and running plain Java 11 applications (fat-jar and flat classpath)"
version: "latest"
from: "registry.access.redhat.com/ubi8/ubi-minimal:8.5"
from: "registry.access.redhat.com/ubi8/ubi-minimal:8.6"

labels:
- name: "io.k8s.display-name"
Expand Down
2 changes: 1 addition & 1 deletion jkube-java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema_version: 1
name: "quay.io/jkube/jkube-java"
description: "Platform for building and running plain Java applications (fat-jar and flat classpath)"
version: "latest"
from: "registry.access.redhat.com/ubi8/ubi-minimal:8.5"
from: "registry.access.redhat.com/ubi8/ubi-minimal:8.6"

labels:
- name: "io.k8s.display-name"
Expand Down
2 changes: 1 addition & 1 deletion jkube-jetty9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema_version: 1
name: "quay.io/jkube/jkube-jetty9"
description: "Base image for Jetty 9 webapp deployments"
version: "latest"
from: "jetty:9.4.46-jdk17-slim"
from: "jetty:9.4.48-jdk17-alpine-eclipse-temurin"

labels:
- name: "io.k8s.display-name"
Expand Down
2 changes: 1 addition & 1 deletion jkube-karaf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema_version: 1
name: "quay.io/jkube/jkube-karaf"
description: "Base image for Apache Karaf deployments"
version: "latest"
from: "registry.access.redhat.com/ubi8/openjdk-17:1.11"
from: "registry.access.redhat.com/ubi8/openjdk-17:1.14"

labels:
- name: "io.k8s.display-name"
Expand Down
2 changes: 1 addition & 1 deletion jkube-tomcat9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema_version: 1
name: "quay.io/jkube/jkube-tomcat9"
description: "Base image for Apache Tomcat 9 webapp deployments"
version: "latest"
from: "tomcat:9.0.62-jdk17-temurin"
from: "tomcat:9.0.65-jdk17-temurin"

labels:
- name: "io.k8s.display-name"
Expand Down
2 changes: 1 addition & 1 deletion scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ function assertMatches() {
}

function reportError() {
>&2 echo "$1"
>&2 printf "$1"
exit 1
}
3 changes: 2 additions & 1 deletion scripts/test-jkube-java-11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ IMAGE="quay.io/jkube/jkube-java-11:$TAG_OR_LATEST"

assertContains "$(dockerRun 'id')" "uid=1000 gid=0(root) groups=0(root)" || reportError "Invalid run user, should be 1000"

assertMatches "$(dockerRun 'java -version')" 'openjdk version "11.0.[0-9]+' || reportError "Invalid Java version"
java_version="$(dockerRun 'java -version')"
assertMatches "$java_version" 'openjdk version "11.0.[0-9]+' || reportError "Invalid Java version:\n\n$java_version"

# run-java dependent scripts
jvm_tools="$(dockerRun 'ls -la /opt/jboss/container/java/jvm/')"
Expand Down
3 changes: 2 additions & 1 deletion scripts/test-jkube-java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ IMAGE="quay.io/jkube/jkube-java:$TAG_OR_LATEST"

assertContains "$(dockerRun 'id')" "uid=1000 gid=0(root) groups=0(root)" || reportError "Invalid run user, should be 1000"

assertMatches "$(dockerRun 'java -version')" 'openjdk version "17.0.[0-9]+' || reportError "Invalid Java version"
java_version="$(dockerRun 'java -version')"
assertMatches "$java_version" 'openjdk version "17.0.[0-9]+' || reportError "Invalid Java version:\n\n$java_version"

# run-java dependent scripts
jvm_tools="$(dockerRun 'ls -la /opt/jboss/container/java/jvm/')"
Expand Down
9 changes: 5 additions & 4 deletions scripts/test-jkube-jetty9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ source "$BASEDIR/common.sh"

IMAGE="quay.io/jkube/jkube-jetty9:$TAG_OR_LATEST"

assertContains "$(dockerRun 'id')" "uid=1000 gid=0(root) groups=0(root)" || reportError "Invalid run user, should be 1000"
assertContains "$(dockerRun 'id')" "uid=1000 gid=0(root)" || reportError "Invalid run user, should be 1000"

assertContains "$(dockerRun 'java -version')" 'openjdk version "17.0.2"' || reportError "Invalid Java version"
java_version="$(dockerRun 'java -version')"
assertMatches "$java_version" 'openjdk version "17.0.[0-9]+' || reportError "Invalid Java version:\n\n$java_version"

# S2I scripts
s2i="$(dockerRun 'ls -la /usr/local/s2i/')"
Expand All @@ -22,9 +23,9 @@ assertContains "$assembleScript" 'copy_dir maven$' || reportError "Invalid s2i a

# Env
env_variables="$(dockerRun 'env')"
assertContains "$env_variables" "JAVA_HOME=/usr/local/openjdk-17$" \
assertContains "$env_variables" "JAVA_HOME=/opt/java/openjdk$" \
|| reportError "JAVA_HOME invalid"
assertContains "$env_variables" "JAVA_VERSION=17.0.2$" \
assertContains "$env_variables" "JAVA_VERSION=jdk-17.0.4+8$" \
|| reportError "JAVA_VERSION invalid"
assertContains "$env_variables" "JETTY_HOME=/usr/local/jetty$" \
|| reportError "JETTY_HOME invalid"
Expand Down
3 changes: 2 additions & 1 deletion scripts/test-jkube-karaf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ IMAGE="quay.io/jkube/jkube-karaf:$TAG_OR_LATEST"

assertContains "$(dockerRun 'id')" "uid=1000 gid=0(root) groups=0(root)" || reportError "Invalid run user, should be 1000"

assertContains "$(dockerRun 'java -version')" 'openjdk version "17.0.2"' || reportError "Invalid Java version"
java_version="$(dockerRun 'java -version')"
assertMatches "$java_version" 'openjdk version "17.0.[0-9]+' || reportError "Invalid Java version:\n\n$java_version"

# S2I scripts
s2i="$(dockerRun 'ls -la /usr/local/s2i/')"
Expand Down
5 changes: 3 additions & 2 deletions scripts/test-jkube-tomcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ IMAGE="quay.io/jkube/jkube-tomcat:$TAG_OR_LATEST"

assertContains "$(dockerRun 'id')" "uid=1000 gid=0(root) groups=0(root)" || reportError "Invalid run user, should be 1000"

assertContains "$(dockerRun 'java -version')" 'openjdk version "17.0.2"' || reportError "Invalid Java version"
java_version="$(dockerRun 'java -version')"
assertMatches "$java_version" 'openjdk version "17.0.[0-9]+' || reportError "Invalid Java version:\n\n$java_version"

# S2I scripts
s2i="$(dockerRun 'ls -la /usr/local/s2i/')"
Expand All @@ -31,7 +32,7 @@ assertContains "$tomcatDir" "^webapps-javaee$" || reportError "webapps-javaee no
env_variables="$(dockerRun 'env')"
assertContains "$env_variables" "JAVA_HOME=/opt/java/openjdk$" \
|| reportError "JAVA_HOME invalid"
assertContains "$env_variables" "JAVA_VERSION=jdk-17.0.2+8$" \
assertContains "$env_variables" "JAVA_VERSION=jdk-17.0.4+8$" \
|| reportError "JAVA_VERSION invalid"
assertContains "$env_variables" "CATALINA_HOME=/usr/local/tomcat$" \
|| reportError "CATALINA_HOME invalid"
Expand Down
7 changes: 4 additions & 3 deletions scripts/test-jkube-tomcat9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ IMAGE="quay.io/jkube/jkube-tomcat9:$TAG_OR_LATEST"

assertContains "$(dockerRun 'id')" "uid=1000 gid=0(root) groups=0(root)" || reportError "Invalid run user, should be 1000"

assertContains "$(dockerRun 'java -version')" 'openjdk version "17.0.2"' || reportError "Invalid Java version"
java_version="$(dockerRun 'java -version')"
assertMatches "$java_version" 'openjdk version "17.0.[0-9]+' || reportError "Invalid Java version:\n\n$java_version"

# S2I scripts
s2i="$(dockerRun 'ls -la /usr/local/s2i/')"
Expand All @@ -24,11 +25,11 @@ assertContains "$assembleScript" 'copy_dir maven$' || reportError "Invalid s2i a
env_variables="$(dockerRun 'env')"
assertContains "$env_variables" "JAVA_HOME=/opt/java/openjdk$" \
|| reportError "JAVA_HOME invalid"
assertContains "$env_variables" "JAVA_VERSION=jdk-17.0.2+8$" \
assertContains "$env_variables" "JAVA_VERSION=jdk-17.0.4+8$" \
|| reportError "JAVA_VERSION invalid"
assertContains "$env_variables" "CATALINA_HOME=/usr/local/tomcat$" \
|| reportError "CATALINA_HOME invalid"
assertContains "$env_variables" "TOMCAT_VERSION=9.0.62$" \
assertContains "$env_variables" "TOMCAT_VERSION=9.0.65$" \
|| reportError "TOMCAT_VERSION invalid"
assertContains "$env_variables" "DEPLOYMENTS_DIR=/deployments$" \
|| reportError "DEPLOYMENTS_DIR invalid"

0 comments on commit 79f8232

Please sign in to comment.