From a6883f34a774dbebeb02d55ade79a211caf47069 Mon Sep 17 00:00:00 2001 From: Igor Vinokur Date: Tue, 6 Jun 2023 08:44:00 +0000 Subject: [PATCH] Update devfile to version 2, add extensions.json --- .vscode/extensions.json | 7 +++++++ devfile.yaml | 36 +++++++++++++++++++----------------- 2 files changed, 26 insertions(+), 17 deletions(-) create mode 100644 .vscode/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..0c296be0f3 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "redhat.java", + "vscjava.vscode-maven", + "redhat.fabric8-analytics" + ] +} diff --git a/devfile.yaml b/devfile.yaml index a03f6884f2..c4b5b938ee 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,21 +1,23 @@ -apiVersion: 1.0.0 +schemaVersion: 2.1.0 metadata: name: che-server-in-che components: - - type: dockerimage - image: quay.io/eclipse/che-java11-maven:nightly - alias: maven - mountSources: true - memoryLimit: 2Gi - volumes: - - name: m2 - containerPath: /home/user/.m2 - - type: chePlugin - id: redhat/java11/latest + - container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 8Gi + mountSources: true + volumeMounts: + - name: m2 + path: /home/user/.m2 + name: tools + - name: m2 + volume: {} commands: - - name: build without tests - actions: - - type: exec - component: maven - command: mvn clean install -DskipTests - workdir: ${CHE_PROJECTS_ROOT}/che + - exec: + commandLine: mvn clean install -DskipTests + component: maven + group: + isDefault: true + kind: build + workingDir: ${PROJECT_SOURCE} + id: mvn-build