diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..a740fb6f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "redhat.java" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..0b5c91d4 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,12 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "java", + "name": "Debug (Attach) - Remote", + "request": "attach", + "hostName": "localhost", + "port": 5005 + } + ] +} diff --git a/devfile.yaml b/devfile.yaml index 07862cce..a742b545 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -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: @@ -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