From 0d9aaa9748d65d8386323c02abe42ca96d1cd8a4 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 19 Oct 2021 15:20:15 +0300 Subject: [PATCH 01/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 devfile.yaml diff --git a/devfile.yaml b/devfile.yaml new file mode 100644 index 0000000..078e597 --- /dev/null +++ b/devfile.yaml @@ -0,0 +1,56 @@ +schemaVersion: 2.1.0 +metadata: + name: java-guestbook +# 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: list projects directory + exec: + component: m2 + workingDir: ${PROJECTS_ROOT}/java-guestbook + commandLine: ls -la + group: + kind: tools + 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 From 945303048db2cf655a653e7bb8e56708fdc6ad2b Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 19 Oct 2021 15:24:05 +0300 Subject: [PATCH 02/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 078e597..88facd0 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -32,7 +32,7 @@ commands: workingDir: ${PROJECTS_ROOT}/java-guestbook commandLine: ls -la group: - kind: tools + kind: run isDefault: true # - id: run From b6e1da2f8d6413800b452bad16c5b100eb14d401 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 19 Oct 2021 15:25:47 +0300 Subject: [PATCH 03/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 88facd0..29cfa0e 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -26,7 +26,7 @@ components: size: 1G commands: - - id: list projects directory + - id: list-projects-directory exec: component: m2 workingDir: ${PROJECTS_ROOT}/java-guestbook From 90fe10a22178584c43ffec586b8f5e55c9978ce2 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 19 Oct 2021 16:43:09 +0300 Subject: [PATCH 04/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/devfile.yaml b/devfile.yaml index 29cfa0e..6e004a6 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -4,6 +4,30 @@ metadata: # attributes: # che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-b452131 + endpoints: + - name: java-guestbook-backend + exposure: public + protocol: http + targetPort: 8080 + + - name: java-guestbook + exposure: public + protocol: tcp + targetPort: 8443 + + - name: debug + exposure: none + protocol: tcp + targetPort: 5005 + + volumeMounts: + - name: m2 + path: /home/user/.m2 + + # - name: tools # container: # image: quay.io/eclipse/che-java11-maven:next From c706649490644f0730ef4665cd57d9aa559487ed Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 20 Oct 2021 11:18:04 +0300 Subject: [PATCH 05/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/devfile.yaml b/devfile.yaml index 6e004a6..fd55016 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -7,6 +7,9 @@ components: - name: tools container: image: quay.io/devfile/universal-developer-image:ubi8-b452131 + memoryLimit: 512Mi + # memoryLimit: 3Gi + endpoints: - name: java-guestbook-backend exposure: public @@ -22,6 +25,19 @@ components: exposure: none protocol: tcp targetPort: 5005 + + env: + - name: MAVEN_CONFIG + value: "" + + - name: JAVA_OPTS + value: "-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 + -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 + -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom + -Duser.home=/home/user" + + - name: MAVEN_OPTS + value: $(JAVA_OPTS) volumeMounts: - name: m2 From fc0e2062a1a62b9ea9b8a3622a598293edec2bb4 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 20 Oct 2021 11:26:40 +0300 Subject: [PATCH 06/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index fd55016..a81fc1e 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -4,7 +4,7 @@ metadata: # attributes: # che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER components: - - name: tools + - name: maven container: image: quay.io/devfile/universal-developer-image:ubi8-b452131 memoryLimit: 512Mi @@ -75,6 +75,16 @@ commands: kind: run isDefault: true + - id: maven-build-backend + exec: + component: maven + workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" + commandLine: >- + mvn clean install + group: + kind: run + isDefault: true + # - id: run # exec: # component: tools From 42874724402044179a95de5677d893f55a22b298 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 20 Oct 2021 12:18:05 +0300 Subject: [PATCH 07/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devfile.yaml b/devfile.yaml index a81fc1e..661ad9d 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -85,6 +85,16 @@ commands: kind: run isDefault: true + - id: maven-build-frontend + exec: + component: maven + workingDir: "${PROJECTS_ROOT}/java-guestbook/frontend" + commandLine: >- + mvn clean install + group: + kind: run + isDefault: true + # - id: run # exec: # component: tools From f07a931ab8a224af7c48a2b2243386667164ba4c Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 20 Oct 2021 12:24:40 +0300 Subject: [PATCH 08/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 661ad9d..09b06e3 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -66,33 +66,24 @@ components: size: 1G commands: - - id: list-projects-directory - exec: - component: m2 - workingDir: ${PROJECTS_ROOT}/java-guestbook - commandLine: ls -la - group: - kind: run - isDefault: true - - id: maven-build-backend exec: + label: "Maven :: build backend" component: maven workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" - commandLine: >- - mvn clean install + commandLine: "mvn clean install" group: - kind: run + kind: build isDefault: true - id: maven-build-frontend exec: + label: "Maven :: build frontend" component: maven workingDir: "${PROJECTS_ROOT}/java-guestbook/frontend" - commandLine: >- - mvn clean install + commandLine: "mvn clean install" group: - kind: run + kind: build isDefault: true # - id: run From 1a7cef2d9f92c008dd4b1f660740d0634d4acb96 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 20 Oct 2021 12:36:07 +0300 Subject: [PATCH 09/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 09b06e3..9278c33 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -68,20 +68,23 @@ components: commands: - id: maven-build-backend exec: - label: "Maven :: build backend" + label: "maven :: build backend" component: maven workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" - commandLine: "mvn clean install" + commandLine: | + whereis mvn + mvn clean install group: kind: build isDefault: true - id: maven-build-frontend exec: - label: "Maven :: build frontend" + label: "maven :: build frontend" component: maven workingDir: "${PROJECTS_ROOT}/java-guestbook/frontend" - commandLine: "mvn clean install" + commandLine: | + mvn clean install group: kind: build isDefault: true From 8b9e6a4ac1bff015b12e2645c2e8ac3100ada670 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 20 Oct 2021 12:40:57 +0300 Subject: [PATCH 10/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 9278c33..e8609ed 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -6,7 +6,8 @@ metadata: components: - name: maven container: - image: quay.io/devfile/universal-developer-image:ubi8-b452131 + # image: quay.io/devfile/universal-developer-image:ubi8-b452131 + image: quay.io/eclipse/che-java11-maven:next memoryLimit: 512Mi # memoryLimit: 3Gi From 5f42e52ce7d2e688a5c50cc522e5b1bfc3d02f98 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 20 Oct 2021 13:37:46 +0300 Subject: [PATCH 11/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index e8609ed..1cb0cb5 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -72,9 +72,7 @@ commands: label: "maven :: build backend" component: maven workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" - commandLine: | - whereis mvn - mvn clean install + commandLine: "mvn clean install" group: kind: build isDefault: true @@ -84,8 +82,7 @@ commands: label: "maven :: build frontend" component: maven workingDir: "${PROJECTS_ROOT}/java-guestbook/frontend" - commandLine: | - mvn clean install + commandLine: "mvn clean install" group: kind: build isDefault: true From 583d5c2dfb125b0c12b83895d7445d9dcea96f59 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Thu, 21 Oct 2021 18:38:34 +0300 Subject: [PATCH 12/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- .gitignore | 1 - .theia/launch.json | 19 +++++++++ .vscode/extensions.json | 9 ++++ devfile.yaml | 91 ++++++++++++++++++++++++----------------- 4 files changed, 82 insertions(+), 38 deletions(-) create mode 100644 .theia/launch.json create mode 100644 .vscode/extensions.json diff --git a/.gitignore b/.gitignore index b3745cc..39bb1ca 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ .idea/compiler.xml .idea/encodings.xml .idea/vcs.xml -.vscode **/*.iml target *.iml diff --git a/.theia/launch.json b/.theia/launch.json new file mode 100644 index 0000000..33ec8fe --- /dev/null +++ b/.theia/launch.json @@ -0,0 +1,19 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "java", + "name": "Debug (Attach) - Backend", + "request": "attach", + "hostName": "localhost", + "port": 5006 + }, + { + "type": "java", + "name": "Debug (Attach) - Frontend", + "request": "attach", + "hostName": "localhost", + "port": 5005 + } + ] +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..348ea19 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "redhat.java8", + "vscjava.vscode-java-debug", + "vscjava.vscode-java-test" + ] +} diff --git a/devfile.yaml b/devfile.yaml index 1cb0cb5..7cd6da7 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -44,32 +44,45 @@ components: - name: m2 path: /home/user/.m2 + - name: mongo + container: + image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 + memoryLimit: 300Mi + env: + - name: MONGODB_USER + value: user + + - name: MONGODB_PASSWORD + value: password - # - 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: MONGODB_DATABASE + value: guestbook + + - name: MONGODB_ADMIN_PASSWORD + value: password + + endpoints: + - name: java-guestbook-mongodb + exposure: none + protocol: tcp + targetPort: 27017 + + volumeMounts: + - name: mongodb_data + path: /var/lib/mongodb/data - name: m2 volume: size: 1G + - name: mongodb_data + volume: + size: 250M + commands: - id: maven-build-backend exec: - label: "maven :: build backend" + label: "build backend" component: maven workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" commandLine: "mvn clean install" @@ -79,7 +92,7 @@ commands: - id: maven-build-frontend exec: - label: "maven :: build frontend" + label: "build frontend" component: maven workingDir: "${PROJECTS_ROOT}/java-guestbook/frontend" commandLine: "mvn clean install" @@ -87,22 +100,26 @@ commands: 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 + - id: run-backend + exec: + label: "run backend" + component: maven + workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" + commandLine: | + java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006,quiet=y \ + -jar target/backend-1.0.jar + group: + kind: run + isDefault: true + + - id: run-frontend + exec: + label: "run frontend" + component: maven + workingDir: "${PROJECTS_ROOT}/java-guestbook/frontend" + commandLine: | + java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y \ + -jar target/frontend-1.0.jar + group: + kind: run + isDefault: true From 4c09f04d806d3ca990a21ba6cab7e69935919f6b Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Thu, 21 Oct 2021 18:43:56 +0300 Subject: [PATCH 13/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 7cd6da7..b169cda 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -68,14 +68,14 @@ components: targetPort: 27017 volumeMounts: - - name: mongodb_data + - name: mongodb-data path: /var/lib/mongodb/data - name: m2 volume: size: 1G - - name: mongodb_data + - name: mongodb-data volume: size: 250M From e19a60c4c88e80f7189530d7d92dc276b8f6b68d Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Thu, 21 Oct 2021 18:48:51 +0300 Subject: [PATCH 14/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index b169cda..eb383c5 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -68,16 +68,16 @@ components: targetPort: 27017 volumeMounts: - - name: mongodb-data + - name: mongodbdata path: /var/lib/mongodb/data - name: m2 volume: size: 1G - - name: mongodb-data + - name: mongodbdata volume: - size: 250M + size: 1G commands: - id: maven-build-backend From b6110982c4233e5e9e38dbb72d0ab3fc7986408b Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Mon, 25 Oct 2021 14:39:49 +0300 Subject: [PATCH 15/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index eb383c5..53c4d7f 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -63,7 +63,8 @@ components: endpoints: - name: java-guestbook-mongodb - exposure: none + # exposure: none + exposure: public protocol: tcp targetPort: 27017 From 5ff4a91d2bf911c6e780eca8175765c6acdfb600 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 26 Oct 2021 11:54:52 +0300 Subject: [PATCH 16/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 53c4d7f..1923ffa 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -6,8 +6,10 @@ metadata: components: - name: maven container: + # image: quay.io/devfile/base-developer-image:ubi8-7bd4fe3 # image: quay.io/devfile/universal-developer-image:ubi8-b452131 - image: quay.io/eclipse/che-java11-maven:next + image: quay.io/devfile/universal-developer-image:ubi8-112f94a + # image: quay.io/eclipse/che-java11-maven:next memoryLimit: 512Mi # memoryLimit: 3Gi From ef2701e67adf0ddbf09ef96ee8e00920fbf002b8 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 26 Oct 2021 12:08:54 +0300 Subject: [PATCH 17/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- backend/test.sh | 29 +++++++++++++++++++++++++++++ devfile.yaml | 12 +++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100755 backend/test.sh diff --git a/backend/test.sh b/backend/test.sh new file mode 100755 index 0000000..9b14615 --- /dev/null +++ b/backend/test.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# +# Copyright (c) 2019-2021 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# + +set -e +set -u + +echo "#####################################################" +echo +echo ">> I'm here" + +echo "#####################################################" +echo + +DIR=$(cd "$(dirname "$0")"; pwd) +echo "> this dir ${DIR}" +echo + +ls -la "${DIR}" + +echo "#####################################################" + +mvn clean install diff --git a/devfile.yaml b/devfile.yaml index 1923ffa..8a6e57c 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -93,7 +93,17 @@ commands: kind: build isDefault: true - - id: maven-build-frontend + - id: maven-test-backend + exec: + label: "test backend" + component: maven + workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" + commandLine: "./test.sh" + group: + kind: test + isDefault: true + + - id: maven-build-frontend exec: label: "build frontend" component: maven From b0ec83036ffa54fd5e582edeac6a6a81141683d2 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 26 Oct 2021 12:12:35 +0300 Subject: [PATCH 18/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 8a6e57c..8631b04 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -103,7 +103,7 @@ commands: kind: test isDefault: true - - id: maven-build-frontend + - id: maven-build-frontend exec: label: "build frontend" component: maven From 6515d583aef6ee4ad9337e8f1aa743e6ca2b243a Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 26 Oct 2021 12:17:09 +0300 Subject: [PATCH 19/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- backend/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/test.sh b/backend/test.sh index 9b14615..1fb6124 100755 --- a/backend/test.sh +++ b/backend/test.sh @@ -26,4 +26,8 @@ ls -la "${DIR}" echo "#####################################################" +set +e +whereis mvn +set -e + mvn clean install From 58ef0fad2f7f52dfbeebd2a21b8babd5d73cc85b Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 26 Oct 2021 12:55:01 +0300 Subject: [PATCH 20/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- backend/test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/test.sh b/backend/test.sh index 1fb6124..4068da6 100755 --- a/backend/test.sh +++ b/backend/test.sh @@ -26,7 +26,16 @@ ls -la "${DIR}" echo "#####################################################" +export + +echo "#####################################################" + +echo "> whoamI ??" +whoami +echo + set +e +echo "> whereis mvn ??" whereis mvn set -e From 82f7b52fa0259e50a5238f1af10a41180aa3c321 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 27 Oct 2021 16:25:59 +0300 Subject: [PATCH 21/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 8631b04..a525964 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -6,9 +6,8 @@ metadata: components: - name: maven container: - # image: quay.io/devfile/base-developer-image:ubi8-7bd4fe3 - # image: quay.io/devfile/universal-developer-image:ubi8-b452131 - image: quay.io/devfile/universal-developer-image:ubi8-112f94a + # image: quay.io/devfile/universal-developer-image:ubi8-112f94a + image: quay.io/vgulyy/universal-developer-image:ubi8-REV0 # image: quay.io/eclipse/che-java11-maven:next memoryLimit: 512Mi # memoryLimit: 3Gi From 6eebe305bfa026faf94ed2d538319be85cffcd59 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 27 Oct 2021 17:00:00 +0300 Subject: [PATCH 22/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index a525964..c4d8599 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -7,8 +7,8 @@ components: - name: maven container: # image: quay.io/devfile/universal-developer-image:ubi8-112f94a - image: quay.io/vgulyy/universal-developer-image:ubi8-REV0 - # image: quay.io/eclipse/che-java11-maven:next + # image: quay.io/vgulyy/universal-developer-image:ubi8-REV0 + image: quay.io/eclipse/che-java11-maven:next memoryLimit: 512Mi # memoryLimit: 3Gi From b4711d501785db752f43a9ebd3cc2272590bff09 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 27 Oct 2021 17:39:34 +0300 Subject: [PATCH 23/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index c4d8599..a525964 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -7,8 +7,8 @@ components: - name: maven container: # image: quay.io/devfile/universal-developer-image:ubi8-112f94a - # image: quay.io/vgulyy/universal-developer-image:ubi8-REV0 - image: quay.io/eclipse/che-java11-maven:next + image: quay.io/vgulyy/universal-developer-image:ubi8-REV0 + # image: quay.io/eclipse/che-java11-maven:next memoryLimit: 512Mi # memoryLimit: 3Gi From 46d3733d1dbdcd1ac25447783c36a55ba1bb1d80 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 27 Oct 2021 17:49:24 +0300 Subject: [PATCH 24/36] chore(devfile2): use universal-developer-image for dev container Signed-off-by: Vitaliy Gulyy --- .vscode/extensions.json | 2 +- devfile.yaml | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 348ea19..59e1400 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,7 +2,7 @@ // See https://go.microsoft.com/fwlink/?LinkId=827846 // for the documentation about the extensions.json format "recommendations": [ - "redhat.java8", + "redhat.java", "vscjava.vscode-java-debug", "vscjava.vscode-java-test" ] diff --git a/devfile.yaml b/devfile.yaml index a525964..ed62a95 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,16 +1,13 @@ schemaVersion: 2.1.0 metadata: name: java-guestbook -# attributes: -# che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER components: - name: maven container: # image: quay.io/devfile/universal-developer-image:ubi8-112f94a image: quay.io/vgulyy/universal-developer-image:ubi8-REV0 # image: quay.io/eclipse/che-java11-maven:next - memoryLimit: 512Mi - # memoryLimit: 3Gi + memoryLimit: 3Gi endpoints: - name: java-guestbook-backend @@ -64,8 +61,7 @@ components: endpoints: - name: java-guestbook-mongodb - # exposure: none - exposure: public + exposure: none protocol: tcp targetPort: 27017 From ad823e6db398c50187252e5c21426820de88089e Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 27 Oct 2021 22:32:44 +0300 Subject: [PATCH 25/36] chore(devfile2): adapt sample to be working in devworkspaces Signed-off-by: Vitaliy Gulyy --- backend/test.sh | 42 ------------------------------------------ devfile.yaml | 14 +------------- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100755 backend/test.sh diff --git a/backend/test.sh b/backend/test.sh deleted file mode 100755 index 4068da6..0000000 --- a/backend/test.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2019-2021 Red Hat, Inc. -# This program and the accompanying materials are made -# available under the terms of the Eclipse Public License 2.0 -# which is available at https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -# - -set -e -set -u - -echo "#####################################################" -echo -echo ">> I'm here" - -echo "#####################################################" -echo - -DIR=$(cd "$(dirname "$0")"; pwd) -echo "> this dir ${DIR}" -echo - -ls -la "${DIR}" - -echo "#####################################################" - -export - -echo "#####################################################" - -echo "> whoamI ??" -whoami -echo - -set +e -echo "> whereis mvn ??" -whereis mvn -set -e - -mvn clean install diff --git a/devfile.yaml b/devfile.yaml index ed62a95..0220d7b 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -4,9 +4,7 @@ metadata: components: - name: maven container: - # image: quay.io/devfile/universal-developer-image:ubi8-112f94a - image: quay.io/vgulyy/universal-developer-image:ubi8-REV0 - # image: quay.io/eclipse/che-java11-maven:next + image: quay.io/eclipse/che-java11-maven:next memoryLimit: 3Gi endpoints: @@ -88,16 +86,6 @@ commands: kind: build isDefault: true - - id: maven-test-backend - exec: - label: "test backend" - component: maven - workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" - commandLine: "./test.sh" - group: - kind: test - isDefault: true - - id: maven-build-frontend exec: label: "build frontend" From 411f8ad22683a6dfa7078d70ea37d6a2751d356e Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 2 Nov 2021 17:52:48 +0200 Subject: [PATCH 26/36] chore(devfile2): code cleanup Signed-off-by: Vitaliy Gulyy --- .vscode/extensions.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 59e1400..6e372dc 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,8 +2,6 @@ // See https://go.microsoft.com/fwlink/?LinkId=827846 // for the documentation about the extensions.json format "recommendations": [ - "redhat.java", - "vscjava.vscode-java-debug", - "vscjava.vscode-java-test" + "redhat.java" ] } From a9b7d0b766b297280e7e4320ef8eaa9e64ff5349 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 2 Nov 2021 17:57:20 +0200 Subject: [PATCH 27/36] chore(devfile2): code cleanup Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 0220d7b..a3db816 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,6 +1,8 @@ schemaVersion: 2.1.0 metadata: name: java-guestbook +attributes: + che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER components: - name: maven container: @@ -23,18 +25,18 @@ components: protocol: tcp targetPort: 5005 - env: - - name: MAVEN_CONFIG - value: "" - - - name: JAVA_OPTS - value: "-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 - -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 - -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom - -Duser.home=/home/user" - - - name: MAVEN_OPTS - value: $(JAVA_OPTS) + # env: + # - name: MAVEN_CONFIG + # value: "" + + # - name: JAVA_OPTS + # value: "-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 + # -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 + # -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom + # -Duser.home=/home/user" + + # - name: MAVEN_OPTS + # value: $(JAVA_OPTS) volumeMounts: - name: m2 From d4121d1512901a8eebcb1eb1a834b884a23148e9 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 2 Nov 2021 18:11:57 +0200 Subject: [PATCH 28/36] chore(devfile2): code cleanup Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index a3db816..0c76916 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -4,7 +4,7 @@ metadata: attributes: che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER components: - - name: maven + - name: tools container: image: quay.io/eclipse/che-java11-maven:next memoryLimit: 3Gi @@ -81,7 +81,7 @@ commands: - id: maven-build-backend exec: label: "build backend" - component: maven + component: tools workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" commandLine: "mvn clean install" group: @@ -91,7 +91,7 @@ commands: - id: maven-build-frontend exec: label: "build frontend" - component: maven + component: tools workingDir: "${PROJECTS_ROOT}/java-guestbook/frontend" commandLine: "mvn clean install" group: @@ -101,7 +101,7 @@ commands: - id: run-backend exec: label: "run backend" - component: maven + component: tools workingDir: "${PROJECTS_ROOT}/java-guestbook/backend" commandLine: | java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006,quiet=y \ @@ -113,7 +113,7 @@ commands: - id: run-frontend exec: label: "run frontend" - component: maven + component: tools workingDir: "${PROJECTS_ROOT}/java-guestbook/frontend" commandLine: | java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y \ From 6dd8fd0032b106d8d0539d4beeae774f3ea8892d Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 2 Nov 2021 18:16:07 +0200 Subject: [PATCH 29/36] chore(devfile2): code cleanup Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 54 ++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 0c76916..2a0cf1a 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -42,40 +42,40 @@ components: - name: m2 path: /home/user/.m2 - - name: mongo - container: - image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 - memoryLimit: 300Mi - env: - - name: MONGODB_USER - value: user - - - name: MONGODB_PASSWORD - value: password - - - name: MONGODB_DATABASE - value: guestbook + # - name: mongo + # container: + # image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 + # memoryLimit: 300Mi + # env: + # - name: MONGODB_USER + # value: user + + # - name: MONGODB_PASSWORD + # value: password + + # - name: MONGODB_DATABASE + # value: guestbook - - name: MONGODB_ADMIN_PASSWORD - value: password - - endpoints: - - name: java-guestbook-mongodb - exposure: none - protocol: tcp - targetPort: 27017 + # - name: MONGODB_ADMIN_PASSWORD + # value: password + + # endpoints: + # - name: java-guestbook-mongodb + # exposure: none + # protocol: tcp + # targetPort: 27017 - volumeMounts: - - name: mongodbdata - path: /var/lib/mongodb/data + # volumeMounts: + # - name: mongodbdata + # path: /var/lib/mongodb/data - name: m2 volume: size: 1G - - name: mongodbdata - volume: - size: 1G + # - name: mongodbdata + # volume: + # size: 1G commands: - id: maven-build-backend From 7db20bf700356ea27d688273c393d3735ec181de Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 2 Nov 2021 18:27:26 +0200 Subject: [PATCH 30/36] chore(devfile2): code cleanup Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 2a0cf1a..953c048 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,8 +1,8 @@ schemaVersion: 2.1.0 metadata: name: java-guestbook -attributes: - che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER +# attributes: +# che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER components: - name: tools container: From c168ca2dfce6def1c58bb31994d319362c15e1c5 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Tue, 2 Nov 2021 18:45:37 +0200 Subject: [PATCH 31/36] chore(devfile2): code cleanup Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 953c048..3f93010 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -24,7 +24,7 @@ components: exposure: none protocol: tcp targetPort: 5005 - + # env: # - name: MAVEN_CONFIG # value: "" @@ -42,40 +42,40 @@ components: - name: m2 path: /home/user/.m2 - # - name: mongo - # container: - # image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 - # memoryLimit: 300Mi - # env: - # - name: MONGODB_USER - # value: user + - name: mongo + container: + image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 + memoryLimit: 300Mi + env: + - name: MONGODB_USER + value: user - # - name: MONGODB_PASSWORD - # value: password + - name: MONGODB_PASSWORD + value: password - # - name: MONGODB_DATABASE - # value: guestbook + - name: MONGODB_DATABASE + value: guestbook - # - name: MONGODB_ADMIN_PASSWORD - # value: password - - # endpoints: - # - name: java-guestbook-mongodb - # exposure: none - # protocol: tcp - # targetPort: 27017 + - name: MONGODB_ADMIN_PASSWORD + value: password + + endpoints: + - name: java-guestbook-mongodb + exposure: none + protocol: tcp + targetPort: 27017 - # volumeMounts: - # - name: mongodbdata - # path: /var/lib/mongodb/data + volumeMounts: + - name: mongodbdata + path: /var/lib/mongodb/data - name: m2 volume: size: 1G - # - name: mongodbdata - # volume: - # size: 1G + - name: mongodbdata + volume: + size: 1G commands: - id: maven-build-backend From 444f00d2c53cd76dd0be9b2cd6b09913380a3b80 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 3 Nov 2021 13:18:06 +0200 Subject: [PATCH 32/36] chore(devfile2): use universal developer container for tools Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 65 +++++++++++++++++++++------------------------------- 1 file changed, 26 insertions(+), 39 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 3f93010..04c96c8 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -6,7 +6,7 @@ metadata: components: - name: tools container: - image: quay.io/eclipse/che-java11-maven:next + image: quay.io/devfile/universal-developer-image:ubi8-112f94a memoryLimit: 3Gi endpoints: @@ -25,57 +25,44 @@ components: protocol: tcp targetPort: 5005 - # env: - # - name: MAVEN_CONFIG - # value: "" - - # - name: JAVA_OPTS - # value: "-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 - # -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 - # -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom - # -Duser.home=/home/user" - - # - name: MAVEN_OPTS - # value: $(JAVA_OPTS) - volumeMounts: - name: m2 path: /home/user/.m2 - - name: mongo - container: - image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 - memoryLimit: 300Mi - env: - - name: MONGODB_USER - value: user + # - name: mongo + # container: + # image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 + # memoryLimit: 300Mi + # env: + # - name: MONGODB_USER + # value: user - - name: MONGODB_PASSWORD - value: password + # - name: MONGODB_PASSWORD + # value: password - - name: MONGODB_DATABASE - value: guestbook + # - name: MONGODB_DATABASE + # value: guestbook - - name: MONGODB_ADMIN_PASSWORD - value: password - - endpoints: - - name: java-guestbook-mongodb - exposure: none - protocol: tcp - targetPort: 27017 + # - name: MONGODB_ADMIN_PASSWORD + # value: password + + # endpoints: + # - name: java-guestbook-mongodb + # exposure: none + # protocol: tcp + # targetPort: 27017 - volumeMounts: - - name: mongodbdata - path: /var/lib/mongodb/data + # volumeMounts: + # - name: mongodbdata + # path: /var/lib/mongodb/data - name: m2 volume: size: 1G - - name: mongodbdata - volume: - size: 1G + # - name: mongodbdata + # volume: + # size: 1G commands: - id: maven-build-backend From 6074832df64d953a7158dcd403420556eb316f31 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 3 Nov 2021 14:36:08 +0200 Subject: [PATCH 33/36] chore(devfile2): use universal developer container for tools Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 04c96c8..9ae201f 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -6,7 +6,7 @@ metadata: components: - name: tools container: - image: quay.io/devfile/universal-developer-image:ubi8-112f94a + image: quay.io/devfile/universal-developer-image:ubi8-d433ed6 memoryLimit: 3Gi endpoints: From 354c428c2b42100946924702a8f64ac83c255441 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 3 Nov 2021 15:11:58 +0200 Subject: [PATCH 34/36] chore(devfile2): use universal developer container for tools Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 9ae201f..40ef668 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -29,40 +29,40 @@ components: - name: m2 path: /home/user/.m2 - # - name: mongo - # container: - # image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 - # memoryLimit: 300Mi - # env: - # - name: MONGODB_USER - # value: user + - name: mongo + container: + image: quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 + memoryLimit: 300Mi + env: + - name: MONGODB_USER + value: user - # - name: MONGODB_PASSWORD - # value: password + - name: MONGODB_PASSWORD + value: password - # - name: MONGODB_DATABASE - # value: guestbook + - name: MONGODB_DATABASE + value: guestbook - # - name: MONGODB_ADMIN_PASSWORD - # value: password + - name: MONGODB_ADMIN_PASSWORD + value: password - # endpoints: - # - name: java-guestbook-mongodb - # exposure: none - # protocol: tcp - # targetPort: 27017 + endpoints: + - name: java-guestbook-mongodb + exposure: none + protocol: tcp + targetPort: 27017 - # volumeMounts: - # - name: mongodbdata - # path: /var/lib/mongodb/data + volumeMounts: + - name: mongodbdata + path: /var/lib/mongodb/data - name: m2 volume: size: 1G - # - name: mongodbdata - # volume: - # size: 1G + - name: mongodbdata + volume: + size: 1G commands: - id: maven-build-backend From 8c762e8676c0a4a4f9b20be28ca41be41e85f636 Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 3 Nov 2021 15:19:14 +0200 Subject: [PATCH 35/36] chore(devfile2): use universal developer container for tools Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 40ef668..f74946a 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,8 +1,8 @@ schemaVersion: 2.1.0 metadata: name: java-guestbook -# attributes: -# che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER +attributes: + che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER components: - name: tools container: From 9a8c7f0ff0a12f0d3dc5f0bf91f388acaadf268c Mon Sep 17 00:00:00 2001 From: Vitaliy Gulyy Date: Wed, 3 Nov 2021 16:13:30 +0200 Subject: [PATCH 36/36] chore(devfile2): use universal developer container for tools Signed-off-by: Vitaliy Gulyy --- devfile.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index f74946a..5f114ba 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,8 +1,6 @@ schemaVersion: 2.1.0 metadata: name: java-guestbook -attributes: - che-theia.eclipse.org/sidecar-policy: USE_DEV_CONTAINER components: - name: tools container: