Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new stack for camel #497

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
/stacks/dotnet80/ @msivasubramaniaan @devfile/che-team
/stacks/dotnetcore31/ @kadel @devfile/che-team

# Camel stacks
/stacks/camel/ @brunoNetId @devfile/che-team
brunoNetId marked this conversation as resolved.
Show resolved Hide resolved

# Golang stacks
/stacks/go/ @devfile/devfile-services-team @devfile/che-team

Expand Down
78 changes: 78 additions & 0 deletions stacks/camel/1.0.0/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
schemaVersion: 2.2.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use a newer version; at least 2.2.2
The latest version is 2.3.0, @michael-valdron do you know if we can use 2.3.0 schema version for stacks?

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
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

7 changes: 7 additions & 0 deletions stacks/camel/stack.yaml
Original file line number Diff line number Diff line change
@@ -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