-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Upgrade to latest Quarkus, Strimizi, Apicurio Registry Operators an…
…d others (#1) Main changes included: * ⚡ Updated to Quarkus 1.13.7.Final * ⬆️ Upgrade to Strimzi 0.24.0 (Apache Kafka 2.7) * ⬆️ Upgrade to Apicurio Registry 2.0.1.Final * ♻️ Refactored Kafka config to use latest version of Apicurio Serdes * ⬆️ Update JKube (kubernetes|openshift)-maven-plugin to 1.3.0 * 📝 How to deploy in Minikube or CodeReady Containers * 📝 Fix minor typos in readme * 📝 Changed Maven commands to use mvnw cli Co-authored-by: manusa <[email protected]>
- Loading branch information
Showing
24 changed files
with
459 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
apiVersion: apicur.io/v1alpha1 | ||
apiVersion: registry.apicur.io/v1 | ||
kind: ApicurioRegistry | ||
metadata: | ||
name: service-registry | ||
spec: | ||
configuration: | ||
logLevel: INFO | ||
persistence: "streams" | ||
streams: | ||
applicationId: "service-registry" | ||
persistence: "kafkasql" | ||
kafkasql: | ||
bootstrapServers: "my-kafka-kafka-bootstrap:9093" | ||
security: | ||
scram: | ||
mechanism: SCRAM-SHA-512 | ||
user: service-registry-scram | ||
passwordSecretName: service-registry-scram | ||
truststoreSecretName: my-kafka-cluster-ca-cert | ||
# tls: | ||
# keystoreSecretName: service-registry-tls | ||
# truststoreSecretName: my-kafka-cluster-ca-cert | ||
ui: | ||
readOnly: false | ||
logLevel: INFO | ||
deployment: | ||
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaTopic | ||
metadata: | ||
labels: | ||
strimzi.io/cluster: my-kafka | ||
name: kafkasql-journal | ||
spec: | ||
partitions: 1 | ||
replicas: 1 | ||
config: | ||
cleanup.policy: compact |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#### | ||
# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode | ||
# | ||
# Before building the container image run: | ||
# | ||
# ./mvnw package | ||
# | ||
# Then, build the image with: | ||
# | ||
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/kafka-clients-quarkus-sample . | ||
# | ||
# Then run the container using: | ||
# | ||
# docker run -i --rm -p 8080:8080 quarkus/kafka-clients-quarkus-sample-jvm | ||
# | ||
# If you want to include the debug port into your docker image | ||
# you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5005 | ||
# | ||
# Then run the container using : | ||
# | ||
# docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/kafka-clients-quarkus-sample-jvm | ||
# | ||
### | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3 | ||
|
||
ARG JAVA_PACKAGE=java-11-openjdk-headless | ||
ARG RUN_JAVA_VERSION=1.3.8 | ||
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' | ||
# Install java and the run-java script | ||
# Also set up permissions for user `1001` | ||
RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \ | ||
&& microdnf update \ | ||
&& microdnf clean all \ | ||
&& mkdir /deployments \ | ||
&& chown 1001 /deployments \ | ||
&& chmod "g+rwX" /deployments \ | ||
&& chown 1001:root /deployments \ | ||
&& curl https://repo1.maven.org/maven2/io/fabric8/run-java-sh/${RUN_JAVA_VERSION}/run-java-sh-${RUN_JAVA_VERSION}-sh.sh -o /deployments/run-java.sh \ | ||
&& chown 1001 /deployments/run-java.sh \ | ||
&& chmod 540 /deployments/run-java.sh \ | ||
&& echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/conf/security/java.security | ||
|
||
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size. | ||
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager" | ||
# We make four distinct layers so if there are application changes the library layers can be re-used | ||
COPY --chown=1001 target/quarkus-app/lib/ /deployments/lib/ | ||
COPY --chown=1001 target/quarkus-app/*.jar /deployments/ | ||
COPY --chown=1001 target/quarkus-app/app/ /deployments/app/ | ||
COPY --chown=1001 target/quarkus-app/quarkus/ /deployments/quarkus/ | ||
|
||
EXPOSE 8080 | ||
USER 1001 | ||
|
||
ENTRYPOINT [ "/deployments/run-java.sh" ] |
Oops, something went wrong.