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

Apply new commands for the devfile v2 happy-path tests #822

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9e74790
Revert devfile v2
vitaliy-guliy Jul 29, 2021
46a4734
fix: revert the devfile to the previous state
vitaliy-guliy Jul 29, 2021
7320130
shore: add .vscode/extensions.json with recommendations
vitaliy-guliy Jul 30, 2021
f8490da
fix(content): Add comments
benoitf Aug 10, 2021
01b3996
fix devfile v2 tasks workingDir
sparkoo Sep 7, 2021
2fe2590
Increase tool memory to 3Gi
sleshchenko Sep 10, 2021
26102b6
Add debug command
musienko-maxim Sep 22, 2021
39c82f8
Revert "Increase tool memory to 3Gi"
musienko-maxim Sep 22, 2021
1629952
fix schema
musienko-maxim Sep 22, 2021
455893e
Revert "Increase tool memory to 3Gi"
musienko-maxim Sep 22, 2021
c26a576
Merge branch 'devfilev2' of github.com:che-samples/java-spring-petcli…
musienko-maxim Sep 22, 2021
8d0f5b8
revert to previous state
musienko-maxim Sep 22, 2021
6dc35e6
add command
musienko-maxim Sep 22, 2021
b716714
apply debug command
musienko-maxim Sep 22, 2021
8797b53
Add Debug VSCode Launch
sleshchenko Sep 23, 2021
1c57652
add debug command and fix pathes
musienko-maxim Sep 24, 2021
952c121
remove unnecessary commands
musienko-maxim Sep 24, 2021
2a1549b
repalce maven comman on package
musienko-maxim Sep 24, 2021
e214f3d
change port
musienko-maxim Sep 24, 2021
257529e
change port
musienko-maxim Sep 24, 2021
277442b
add space
musienko-maxim Sep 24, 2021
b074eb7
return clean unstall command
musienko-maxim Sep 24, 2021
f9bbfd9
return gitignore file
musienko-maxim Sep 24, 2021
5b63116
fix ports
musienko-maxim Sep 24, 2021
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
}
]
}
52 changes: 52 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
schemaVersion: 2.1.0
metadata:
name: spring-petclinic
attributes:
che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER
components:
- name: tools
container:
image: quay.io/eclipse/che-java11-maven:next
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
memoryLimit: 3Gi
- name: m2
volume:
size: 1G
commands:
- id: build
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/java-spring-petclinic
commandLine: mvn clean install
group:
kind: build
isDefault: true
- id: run
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/java-spring-petclinic
commandLine: >-
java -jar target/*.jar
group:
kind: run
isDefault: true
- id: run-debug
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/java-spring-petclinic
commandLine: >-
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 target/*.jar
group:
kind: run
isDefault: true