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

Suggestions for devfile compatibility with Che/CRW #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"redhat.java"
]
}
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Attach) - Remote",
"request": "attach",
"hostName": "localhost",
"port": 5005
}
]
}
20 changes: 12 additions & 8 deletions devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ metadata:
language: "java"
provider: Red Hat
supportUrl: https://github.com/devfile-samples/devfile-support#support-information
starterProjects:
- name: springbootproject
git:
remotes:
origin: "https://github.com/odo-devfiles/springboot-ex.git"
components:
- name: outerloop-build
image:
Expand All @@ -30,11 +25,20 @@ components:
- name: tools
container:
image: quay.io/eclipse/che-java11-maven:7.36.0
memoryLimit: 768Mi
mountSources: true
memoryLimit: 1Gi
cpuLimit: 500m
env:
- name: DEBUG_PORT
value: '5005'
endpoints:
- name: '8080-tcp'
- name: 8080-tcp
exposure: public
protocol: http
targetPort: 8080
- name: debug
exposure: none
protocol: tcp
targetPort: 5005
volumeMounts:
- name: m2
path: /home/user/.m2
Expand Down