From 5b83e9e3fbe20ced80d411448e436c215631e302 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 12:45:10 +0000 Subject: [PATCH 1/4] Initial plan From 40d0d5797d064bc2c1b0d24e2c6ab267402da31b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 12:46:49 +0000 Subject: [PATCH 2/4] feat: add Eclipse Che devfile (devfile.yaml) Co-authored-by: GoetzEli <157024555+GoetzEli@users.noreply.github.com> --- devfile.yaml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 devfile.yaml diff --git a/devfile.yaml b/devfile.yaml new file mode 100644 index 0000000..358912d --- /dev/null +++ b/devfile.yaml @@ -0,0 +1,59 @@ +schemaVersion: 2.2.0 +metadata: + name: example-spring-rest-project + description: Eclipse Che devfile for ExampleSpringRestProject (Spring Boot REST, Java 8, Maven) + version: 0.0.1 + +components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1512Mi + memoryRequest: 256Mi + cpuLimit: "2" + cpuRequest: "0.5" + endpoints: + - name: spring-boot + targetPort: 8080 + exposure: public + protocol: http + - name: debug + targetPort: 5005 + exposure: internal + protocol: tcp + env: + - name: JAVA_HOME + value: /usr/lib/jvm/java-8-openjdk + - name: MAVEN_OPTS + value: "-Xmx512m" + mountSources: true + +commands: + - id: build + exec: + label: "Build" + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: "mvn clean package -DskipTests" + + - id: test + exec: + label: "Test" + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: "mvn test" + + - id: run + exec: + label: "Run" + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: "mvn spring-boot:run" + hotReloadCapable: true + + - id: debug + exec: + label: "Debug" + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: "mvn spring-boot:run -Dspring-boot.run.jvmArguments=\"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005\"" From 0393618cbb4420f1f0539098d7ebcc972c741e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20G=C3=B6tz?= <157024555+GoetzEli@users.noreply.github.com> Date: Tue, 10 Mar 2026 17:06:52 +0100 Subject: [PATCH 3/4] Update developer image version to ubi9-latest --- devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 358912d..831d960 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -7,7 +7,7 @@ metadata: components: - name: tools container: - image: quay.io/devfile/universal-developer-image:ubi8-latest + image: quay.io/devfile/universal-developer-image:ubi9-latest memoryLimit: 1512Mi memoryRequest: 256Mi cpuLimit: "2" From 0a1a0aaa0db63ba74ac004c18d2548959e178b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20G=C3=B6tz?= <157024555+GoetzEli@users.noreply.github.com> Date: Fri, 13 Mar 2026 15:17:21 +0100 Subject: [PATCH 4/4] Add SERVER_ADDRESS environment variable to devfile --- devfile.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devfile.yaml b/devfile.yaml index 831d960..7c7976b 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -26,6 +26,8 @@ components: value: /usr/lib/jvm/java-8-openjdk - name: MAVEN_OPTS value: "-Xmx512m" + - name: SERVER_ADDRESS + value: "0.0.0.0" mountSources: true commands: