Skip to content

Commit

Permalink
chore(deps): upgrade quarkus deps (#336)
Browse files Browse the repository at this point in the history
* chore(deps): upgrade quarkus deps

Signed-off-by: Ruben Romero Montes <[email protected]>

* chore(deps): create dedicated task with more memory

Signed-off-by: Ruben Romero Montes <[email protected]>

---------

Signed-off-by: Ruben Romero Montes <[email protected]>
  • Loading branch information
ruromero authored Apr 24, 2024
1 parent 43fe292 commit b4b730f
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 34 deletions.
23 changes: 7 additions & 16 deletions .tekton/exhort-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,23 +219,14 @@ spec:
runAfter:
- prefetch-dependencies
- copy-settings
taskSpec:
steps:
- image: registry.redhat.io/ubi9/openjdk-21:1.18
name: builder
workingDir: $(workspaces.source.path)/source
script: mvn -B --settings settings.xml verify -Dquarkus.redis.hosts=redis://localhost/
computeResources:
limits:
memory: 8Gi
requests:
memory: 6Gi
sidecars:
- image: docker.io/redis/redis-stack:7.2.0-v7
name: redis-stack
taskRef:
name: openjdk-redis-6gb
params:
- name: SCRIPT
value: mvn -B --settings settings.xml verify -Dquarkus.redis.hosts=redis://localhost/
workspaces:
- name: source
workspace: workspace
- name: source
workspace: workspace
- name: build-container
params:
- name: IMAGE
Expand Down
23 changes: 7 additions & 16 deletions .tekton/exhort-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,23 +213,14 @@ spec:
runAfter:
- prefetch-dependencies
- copy-settings
taskSpec:
steps:
- image: registry.redhat.io/ubi9/openjdk-21:1.18
name: builder
workingDir: $(workspaces.source.path)/source
script: mvn -B --settings settings.xml verify -Dquarkus.redis.hosts=redis://localhost/
computeResources:
limits:
memory: 8Gi
requests:
memory: 6Gi
sidecars:
- image: docker.io/redis/redis-stack:7.2.0-v7
name: redis-stack
taskRef:
name: openjdk-redis-6gb
params:
- name: SCRIPT
value: mvn -B --settings settings.xml verify -Dquarkus.redis.hosts=redis://localhost/
workspaces:
- name: source
workspace: workspace
- name: source
workspace: workspace
- name: build-container
params:
- name: IMAGE
Expand Down
44 changes: 44 additions & 0 deletions .tekton/openjdk-redis-6gb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: openjdk-redis-6gb
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: image-build
tekton.dev/platforms: "linux/amd64"
spec:
description: >-
OpenJDK 21 task with a Redis sidecar. The task requests 4Gi of memory with a limit of 6Gi
params:
- name: JDK_IMAGE
description: Reference of the image buildah will produce.
default: registry.redhat.io/ubi9/openjdk-21:1.18
- name: REDIS_IMAGE
description: The location of the buildah builder image.
default: docker.io/redis/redis-stack:7.2.0-v7
- name: SCRIPT
description: The script to execute in the jdk image
default: |
mvn -B verify
workspaces:
- name: source
steps:
- name: run-tests
image: $(params.JDK_IMAGE)
workingDir: $(workspaces.source.path)/source
script: |
$(params.SCRIPT)
computeResources:
requests:
memory: 4Gi
limits:
memory: 6Gi
workspaces:
- name: source
workspace: workspace
sidecars:
- image: $(params.REDIS_IMAGE)
name: redis-stack
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- Plugins -->
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>3.8.2</quarkus.platform.version>
<quarkus.platform.version>3.9.3</quarkus.platform.version>
<resources-plugin.version>3.3.1</resources-plugin.version>
<build-helper-maven-plugin.version>3.4.0</build-helper-maven-plugin.version>
<compiler-plugin.version>3.11.0</compiler-plugin.version>
Expand All @@ -49,7 +49,7 @@

<!-- Dependencies -->
<exhort-api.version>1.0.5</exhort-api.version>
<sentry.version>7.6.0</sentry.version>
<sentry.version>7.8.0</sentry.version>
<cyclonedx.version>8.0.3</cyclonedx.version>
<spdx.version>1.1.9.1</spdx.version>
<htmlunit.version>2.70.0</htmlunit.version>
Expand Down

0 comments on commit b4b730f

Please sign in to comment.