$ cd ~/tmp
$ curl -Lo wildfly-s2i https://github.com/jmesnil/wildfly-s2i/releases/download/22.x/wildfly-s2i \
&& chmod u+x wildfly-s2i
This file contains hidden or 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
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: wildfly-s2i-build-task | |
spec: | |
description: >- | |
WildFly s2i build task. This tasks operates an S2I build then generates a DockerFile to produce a runtime image | |
containing the provision WildFly server and deployments (if any). | |
This task creates a dockerFile result and a dockerBuildContext result to be consumed by following task in the pipeline | |
in order to build the runtime image. |
This file contains hidden or 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
# helm upgrade my-app -f ./helm.yaml ./charts/wildfly | |
build: | |
uri: https://github.com/jfdenise/2-phases-s2i | |
contextDir: application | |
s2i: | |
builderImage: jaxrs-builder:latest | |
builderKind: ImageStreamTag |
This file contains hidden or 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
#!/bin/bash | |
########################################## | |
# Import EAP S2I JDK11 images in OpenShift | |
########################################## | |
# | |
# This script is used import unreleased S2I images in OpenShift image registry. | |
# It accepts 3 parameters: | |
# | |
# 1. the unreleased EAP S2I Builder image (e.g. registry-proxy.engineering.redhat.com/...) |
This file contains hidden or 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
name: Custom channel to use a specific fix for Undertow | |
requires: | |
# Stick to a specific version of WildFly | |
- groupId: org.wildfly | |
artifactId: wildfly-ee-galleon-pack | |
version: 27.0.0.Beta1-SNAPSHOT | |
streams: | |
# This version of Undertow will override the one specificied in the org.wildfly:wildfly-ee-galleon-pack channel | |
- groupId: io.undertow | |
artifactId: undertow-core |
This file contains hidden or 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
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) | |
Maven home: /Users/jmesnil/Applications/apache-maven | |
Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home/jre | |
Default locale: en_FR, platform encoding: UTF-8 | |
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac" | |
[DEBUG] Created new class realm maven.api | |
[DEBUG] Importing foreign packages into class realm maven.api | |
[DEBUG] Imported: javax.annotation.* < plexus.core | |
[DEBUG] Imported: javax.annotation.security.* < plexus.core | |
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core |
This file contains hidden or 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
$ make install | |
customresourcedefinition.apiextensions.k8s.io/wildflyservers.wildfly.org created | |
$ make deploy | |
serviceaccount/wildfly-operator created | |
service/wildfly-operator created | |
rolebinding.rbac.authorization.k8s.io/wildfly-operator-view created | |
deployment.apps/wildfly-operator created |
This file contains hidden or 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
build: | |
uri: https://github.com/kabir/quickstart.git | |
ref: WFLY-14800-reactive-features | |
contextDir: microprofile-reactive-messaging-kafka | |
s2i: | |
version: latest | |
builderImage: quay.io/kabirk/reactive-features | |
galleonLayers: | |
- cloud-server | |
- h2-default-datasource |
This file contains hidden or 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
oc get deployment/reactive-messaging-qs -o yaml | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "3" | |
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"reactive-messaging-qs:latest","namespace":"kkhan1-dev"},"fieldPath":"spec.template.spec.containers[?(@.name==\"reactive-messaging-qs\")].image"}]' | |
openshift.io/generated-by: OpenShiftNewApp | |
creationTimestamp: "2021-08-23T14:08:04Z" | |
generation: 4 |
This file contains hidden or 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
#!/bin/bash | |
################################################ | |
# Build an Application Image using WildFly S2I # | |
################################################ | |
echo " _ ___ __ __________ ________ ____"; | |
echo "| | / (_) /___/ / ____/ /_ __ / ___/__ \ / _/"; | |
echo "| | /| / / / / __ / /_ / / / / / \__ \__/ / / / "; | |
echo "| |/ |/ / / / /_/ / __/ / / /_/ / ___/ / __/_/ / "; |