Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release/4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeberhard committed Apr 4, 2023
2 parents 97ecc72 + f02eb30 commit 5476ac3
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 33 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# -------------------------
FROM ghcr.io/oracle/oraclelinux:9-slim AS jre-build

ENV JAVA_URL_X64="https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_linux-x64_bin.tar.gz"
ENV JAVA_URL_AARCH64="https://download.java.net/java/GA/jdk19.0.2/fdb695a9d9064ad6b064dc6df578380c/7/GPL/openjdk-19.0.2_linux-aarch64_bin.tar.gz"
ENV JAVA_URL_X64="https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_linux-x64_bin.tar.gz"
ENV JAVA_URL_AARCH64="https://download.java.net/java/GA/jdk20/bdc68b4b9cbc4ebcb30745c85038d91d/36/GPL/openjdk-20_linux-aarch64_bin.tar.gz"

RUN set -eux; \
microdnf -y install gzip tar; \
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile.oke
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pipeline {
)
string(name: 'MONITORING_EXPORTER_WEBAPP_VERSION',
description: '',
defaultValue: '2.1.2'
defaultValue: '2.1.3'
)
string(name: 'PROMETHEUS_CHART_VERSION',
description: '',
Expand Down
24 changes: 2 additions & 22 deletions buildAndPushImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,8 @@ echo "Building image '$name' ..."

# BUILD AND PUSH THE IMAGE (replace all environment variables)
BUILD_START=$(date '+%s')
${WLSIMG_BUILDER:-docker} build $PROXY_SETTINGS --pull --platform linux/amd64 --tag $name-amd64 -f $SCRIPTPATH/Dockerfile $SCRIPTPATH || {
echo "There was an error building the amd64 image."
exit 1
}
${WLSIMG_BUILDER:-docker} push $PROXY_SETTINGS $name-amd64 || {
echo "There was an error pushing the amd64 image."
exit 1
}
${WLSIMG_BUILDER:-docker} build $PROXY_SETTINGS --pull --platform linux/arm64 --tag $name-arm64v8 -f $SCRIPTPATH/Dockerfile $SCRIPTPATH || {
echo "There was an error building the arm64v8 image."
exit 1
}
${WLSIMG_BUILDER:-docker} push $PROXY_SETTINGS $name-arm64v8 || {
echo "There was an error pushing the arm64v8 image."
exit 1
}
${WLSIMG_BUILDER:-docker} manifest create $PROXY_SETTINGS $name --amend $name-amd64 --amend $name-arm64v8 || {
echo "There was an error building the manifest."
exit 1
}
${WLSIMG_BUILDER:-docker} manifest push $PROXY_SETTINGS $name || {
echo "There was an error pushing the manifest."
${WLSIMG_BUILDER:-docker} buildx build $PROXY_SETTINGS --pull --push --platform linux/amd64,linux/arm64 --tag $IMAGE_NAME -f $SCRIPTPATH/Dockerfile $SCRIPTPATH || {
echo "There was an error building and pushing the image."
exit 1
}
BUILD_END=$(date '+%s')
Expand Down
4 changes: 2 additions & 2 deletions documentation/domains/Domain.json
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@
"type": "object",
"properties": {
"image": {
"default": "ghcr.io/oracle/weblogic-monitoring-exporter:2.1.2",
"description": "The WebLogic Monitoring Exporter sidecar container image name. Defaults to ghcr.io/oracle/weblogic-monitoring-exporter:2.1.2",
"default": "ghcr.io/oracle/weblogic-monitoring-exporter:2.1.3",
"description": "The WebLogic Monitoring Exporter sidecar container image name. Defaults to ghcr.io/oracle/weblogic-monitoring-exporter:2.1.3",
"type": "string"
},
"imagePullPolicy": {
Expand Down
2 changes: 1 addition & 1 deletion documentation/domains/Domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ The current status of the operation of the WebLogic domain. Updated automaticall
| Name | Type | Description |
| --- | --- | --- |
| `configuration` | Map | The configuration for the WebLogic Monitoring Exporter. If WebLogic Server instances are already running and have the monitoring exporter sidecar container, then changes to this field will be propagated to the exporter without requiring the restart of the WebLogic Server instances. |
| `image` | string | The WebLogic Monitoring Exporter sidecar container image name. Defaults to ghcr.io/oracle/weblogic-monitoring-exporter:2.1.2 |
| `image` | string | The WebLogic Monitoring Exporter sidecar container image name. Defaults to ghcr.io/oracle/weblogic-monitoring-exporter:2.1.3 |
| `imagePullPolicy` | string | The image pull policy for the WebLogic Monitoring Exporter sidecar container image. Legal values are Always, Never, and IfNotPresent. Defaults to Always if image ends in :latest; IfNotPresent, otherwise. |
| `port` | integer | The port exposed by the WebLogic Monitoring Exporter running in the sidecar container. Defaults to 8080. The port value must not conflict with a port used by any WebLogic Server instance, including the ports of built-in channels or network access points (NAPs). |
| `resources` | [Resource Requirements](k8s1.13.5.md#resource-requirements) | Memory and CPU minimum requirements and limits for the Monitoring exporter sidecar. See `kubectl explain pods.spec.containers.resources`. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public interface TestConstants {

//monitoring constants
public static final String MONITORING_EXPORTER_WEBAPP_VERSION =
getNonEmptySystemProperty("wko.it.monitoring.exporter.webapp.version", "2.1.2");
getNonEmptySystemProperty("wko.it.monitoring.exporter.webapp.version", "2.1.3");
public static final String MONITORING_EXPORTER_BRANCH =
getNonEmptySystemProperty("wko.it.monitoring.exporter.branch", "main");
public static final String PROMETHEUS_CHART_VERSION =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ .serviceAccount | quote }}
{{- if (ne ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
securityContext:
seccompProfile:
type: RuntimeDefault
{{- end }}
{{- with .nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -262,9 +264,11 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ .serviceAccount | quote }}
{{- if (ne ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
securityContext:
seccompProfile:
type: RuntimeDefault
{{- end }}
{{- with .nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
Expand Down
6 changes: 3 additions & 3 deletions kubernetes/crd/domain-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
weblogic.sha256: fb02cf4d6a86bc94f3091999e95f502e66c540631d48b7c505b190fe8f134847
weblogic.sha256: f9d602e9832c79cc4b9ae676c4681e3c6ccd0301a76f8f46a5d2e6cea7c9bf4d
name: domains.weblogic.oracle
spec:
group: weblogic.oracle
Expand Down Expand Up @@ -47,9 +47,9 @@ spec:
appropriate. See https://github.com/oracle/weblogic-monitoring-exporter.
properties:
image:
default: ghcr.io/oracle/weblogic-monitoring-exporter:2.1.2
default: ghcr.io/oracle/weblogic-monitoring-exporter:2.1.3
description: The WebLogic Monitoring Exporter sidecar container
image name. Defaults to ghcr.io/oracle/weblogic-monitoring-exporter:2.1.2
image name. Defaults to ghcr.io/oracle/weblogic-monitoring-exporter:2.1.3
type: string
imagePullPolicy:
description: The image pull policy for the WebLogic Monitoring
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/** Kubernetes constants. */
public interface KubernetesConstants {
String DEFAULT_IMAGE = "container-registry.oracle.com/middleware/weblogic:12.2.1.4";
String DEFAULT_EXPORTER_IMAGE = "ghcr.io/oracle/weblogic-monitoring-exporter:2.1.2";
String DEFAULT_EXPORTER_IMAGE = "ghcr.io/oracle/weblogic-monitoring-exporter:2.1.3";
String DEFAULT_FLUENTD_IMAGE = "fluent/fluentd-kubernetes-daemonset:v1.14.5-debian-elasticsearch7-1.1";
String EXPORTER_CONTAINER_NAME = "monitoring-exporter";
String LATEST_IMAGE_SUFFIX = ":latest";
Expand Down

0 comments on commit 5476ac3

Please sign in to comment.