From 9b858af9609b1f4548950dc71af8b3781a6686ea Mon Sep 17 00:00:00 2001 From: Florent Benoit Date: Fri, 18 Jun 2021 11:39:09 +0200 Subject: [PATCH 1/2] feat(backport): Backport change to allow to specify v2 links in devfiles --- dependencies/che-devfile-registry/build/scripts/index.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dependencies/che-devfile-registry/build/scripts/index.sh b/dependencies/che-devfile-registry/build/scripts/index.sh index 72dd4323c1..97e4ebb6c0 100755 --- a/dependencies/che-devfile-registry/build/scripts/index.sh +++ b/dependencies/che-devfile-registry/build/scripts/index.sh @@ -15,6 +15,10 @@ for meta in "${metas[@]}"; do META_DIR=$(dirname "${meta}") # Workaround to include self-links, since it's not possible to # get filename in yq easily - echo -e "links:\n self: /${META_DIR}/devfile.yaml" >> "${meta}" + # Extra links may already be there, so just update with self link + + # Ignore double quotes warning for yq expression + # shellcheck disable=SC2016,SC2094 + cat <<< "$(yq --arg metadir "${META_DIR}" '.links |= . + {self: "/\($metadir)/devfile.yaml" }' "${meta}")" > "${meta}" done yq -s 'map(.)' "${metas[@]}" From 750c9094699ad9c623399bc5cab3e211ff2540ca Mon Sep 17 00:00:00 2001 From: Florent Benoit Date: Fri, 18 Jun 2021 11:39:48 +0200 Subject: [PATCH 2/2] feat(v2): Introduce quarkus for DevWorkspaces --- .../devfiles/03_java11-maven-quarkus/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dependencies/che-devfile-registry/devfiles/03_java11-maven-quarkus/meta.yaml b/dependencies/che-devfile-registry/devfiles/03_java11-maven-quarkus/meta.yaml index de1c90e48b..e4c1b5fe8c 100644 --- a/dependencies/che-devfile-registry/devfiles/03_java11-maven-quarkus/meta.yaml +++ b/dependencies/che-devfile-registry/devfiles/03_java11-maven-quarkus/meta.yaml @@ -3,3 +3,5 @@ displayName: Java Quarkus description: Java stack with OpenJDK 11, Maven 3.6.3, Gradle 6.1 and Quarkus Tools tags: ["Java", "OpenJDK", "Maven", "Gradle", "Quarkus", "UBI8"] icon: /images/type-quarkus.svg +links: + v2: https://github.com/crw-samples/quarkus-quickstarts/tree/devfilev2