From 2b96389537b8ccb0205e8f3a61181f968195dd19 Mon Sep 17 00:00:00 2001 From: brunoNetId Date: Mon, 25 Nov 2024 20:16:34 +0000 Subject: [PATCH 1/4] new stack for camel Signed-off-by: brunoNetId --- stacks/camel/1.0.0/devfile.yaml | 81 +++++++++++++++++++++++++++++++++ stacks/camel/stack.yaml | 7 +++ 2 files changed, 88 insertions(+) create mode 100644 stacks/camel/1.0.0/devfile.yaml create mode 100644 stacks/camel/stack.yaml diff --git a/stacks/camel/1.0.0/devfile.yaml b/stacks/camel/1.0.0/devfile.yaml new file mode 100644 index 00000000..ab2fafca --- /dev/null +++ b/stacks/camel/1.0.0/devfile.yaml @@ -0,0 +1,81 @@ +schemaVersion: 2.2.0 +metadata: + name: camel + displayName: Apache Camel Basics + description: Gain familiarity with Apache Camel by getting hands-on following documented guidelines. + icon: https://raw.githubusercontent.com/apache/camel/refs/heads/main/docs/img/logo-d.svg + tags: + - Java + - Quarkus + - Spring + - Camel + projectType: Camel + language: Camel + version: 1.0.0 + website: https://camel.apache.org/ +starterProjects: + - name: devsandbox-camel + git: + checkoutFrom: + revision: main + remotes: + origin: 'https://github.com/RedHat-Middleware-Workshops/devsandbox-camel.git' +components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-304d6d4 + memoryLimit: 3Gi + env: + - name: JAVA_HOME_TEST + value: /home/tooling/.sdkman/candidates/java/17.0.3-tem + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-tcp + protocol: http + targetPort: 8080 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: webapp + container: + image: quay.io/redhatintegration/tutorial-web-app:2.28.4-workshop-ubi8-nodejs12 + env: + - name: NODE_ENV + value: production + - name: THREESCALE_WILDCARD_DOMAIN + value: local.localdomain + - name: OPENSHIFT_VERSION + value: '4' + - name: WALKTHROUGH_LOCATIONS + value: >- + https://github.com/RedHat-Middleware-Workshops/devsandbox-camel?walkthroughsFolder=/docs/labs + endpoints: + - name: tutorial + exposure: public + targetPort: 5001 + protocol: https + secure: true + memoryLimit: 512Mi + mountSources: true + volumeMounts: + - name: tutorial-storage + path: /opt/user-walkthroughs + - name: m2 + volume: + size: 1G + - name: tutorial-storage + volume: + size: 256Mi +events: + postStart: + - set-camel-cli +commands: + - id: set-camel-cli + exec: + commandLine: 'source ~/.bashrc && jbang trust add https://github.com/apache/camel/ && jbang app install -Dcamel.jbang.version=4.8.0 camel@apache/camel && jbang camel@apache/camel plugin add kubernetes' + component: tools + diff --git a/stacks/camel/stack.yaml b/stacks/camel/stack.yaml new file mode 100644 index 00000000..5b8f8ec2 --- /dev/null +++ b/stacks/camel/stack.yaml @@ -0,0 +1,7 @@ +name: camel +description: Gain familiarity with Apache Camel by getting hands-on following documented guidelines. +displayName: Apache Camel Basics +icon: https://raw.githubusercontent.com/apache/camel/refs/heads/main/docs/img/logo-d.svg +versions: + - version: 1.0.0 + default: true # should have one and only one default version From 0288bc86122901bad949249cbade1e60f238999d Mon Sep 17 00:00:00 2001 From: brunoNetId Date: Tue, 26 Nov 2024 18:11:41 +0000 Subject: [PATCH 2/4] removed unnecessary env variable Signed-off-by: brunoNetId --- stacks/camel/1.0.0/devfile.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/stacks/camel/1.0.0/devfile.yaml b/stacks/camel/1.0.0/devfile.yaml index ab2fafca..086f51de 100644 --- a/stacks/camel/1.0.0/devfile.yaml +++ b/stacks/camel/1.0.0/devfile.yaml @@ -25,9 +25,6 @@ components: container: image: quay.io/devfile/universal-developer-image:ubi8-304d6d4 memoryLimit: 3Gi - env: - - name: JAVA_HOME_TEST - value: /home/tooling/.sdkman/candidates/java/17.0.3-tem endpoints: - exposure: none name: debug From 56538617c8a057e072becb6d368181fc13390f4c Mon Sep 17 00:00:00 2001 From: brunoNetId Date: Wed, 27 Nov 2024 17:30:28 +0000 Subject: [PATCH 3/4] added new Camel stack codeowner Signed-off-by: brunoNetId --- .github/CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4f2d07e4..5d4d7586 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -17,6 +17,9 @@ /stacks/dotnet80/ @msivasubramaniaan @devfile/che-team /stacks/dotnetcore31/ @kadel @devfile/che-team +# Camel stacks +/stacks/camel/ @brunoNetId @devfile/che-team + # Golang stacks /stacks/go/ @devfile/devfile-services-team @devfile/che-team From 8206342256b7c356aa914bc768f83ef2d55d899a Mon Sep 17 00:00:00 2001 From: brunoNetId Date: Wed, 27 Nov 2024 18:27:38 +0000 Subject: [PATCH 4/4] owner rectification while in trial period Signed-off-by: brunoNetId --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5d4d7586..a18a4123 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -18,7 +18,7 @@ /stacks/dotnetcore31/ @kadel @devfile/che-team # Camel stacks -/stacks/camel/ @brunoNetId @devfile/che-team +/stacks/camel/ @devfile/devfile-services-team @devfile/che-team # Golang stacks /stacks/go/ @devfile/devfile-services-team @devfile/che-team