diff --git a/7.80.0/README.md b/7.80.0/README.md new file mode 100644 index 000000000..6c0c0953f --- /dev/null +++ b/7.80.0/README.md @@ -0,0 +1,137 @@ +# Eclipse Che devfile registry + +This repository holds meta.yaml files that refer to the samples with Devfiles. + +Here is an example `meta.yaml` file: + +```yaml +--- +displayName: Python +description: Python Stack with Python 3.8 +tags: ["Community", "Centos", "Python", "pip"] +icon: /images/python.svg +links: + v2: https://github.com/che-samples/python-hello-world/tree/main +``` + +Here are all the supported values: +```yaml +--- +# the name of the stack +displayName: Python +# the description of the stack +description: Python Stack with Python 3.8 +# the list of tags that will be used to search for the devfile +tags: ["Community", "Centos", "Python", "pip"] +# the path to the icon of the stack +icon: /images/python.svg +links: + # The link to the repository of the project that contains the devfile.yaml with schemaVersion 2.x.y + v2: https://github.com/che-samples/python-hello-world/tree/main +``` + +The contents of the devfile registry are published to [GitHub pages](https://eclipse-che.github.io/che-devfile-registry/main/) on every commit. Furthermore, every version is also published to GitHub pages at release time. As an example the `7.31.2` version of the devfile registry was published [here](https://eclipse-che.github.io/che-devfile-registry/7.31.2/). + +All published versions of the devfile registry explicitly use plugins from the [che-plugin-registry](https://github.com/eclipse-che/che-plugin-registry) by specifying the `registryUrl` field. + +## Build registry container image + +This repository contains a `build.sh` script at its root that can be used to build the registry: +``` +Usage: ./build.sh [OPTIONS] +Options: + --help + Print this message. + --tag, -t [TAG] + Docker image tag to be used for image; default: 'next' + --registry, -r [REGISTRY] + Docker registry to be used for image; default 'quay.io' + --organization, -o [ORGANIZATION] + Docker image organization to be used for image; default: 'eclipse' + --offline + Build offline version of registry, with all artifacts included + cached in the registry; disabled by default. + --rhel + Build using the rhel.Dockerfile (UBI images) instead of default +``` +By default, the built registry will be tagged `quay.io/eclipse/che-devfile-registry:next`, and will be built with offline mode disabled. + +This script listens to the `BUILDER` variable, and will use the tool specified there to build the image. For example: +```sh +BUILDER=buildah ./build.sh +``` + +will force the build to use `buildah`. If `BUILDER` is not specified, the script will try to use `podman` by default. If `podman` is not installed, then `buildah` will be chosen. If neither `podman` nor `buildah` are installed, the script will finally try to build with `docker`. + +Note that the Dockerfiles in this repository utilize multi-stage builds, so Docker version 17.05 or higher is required. + +### Offline and airgapped registry images + +Using the `--offline` option in `build.sh` will build the registry to contain `zip` files for all projects referenced, which is useful for running Che in clusters that may not have access to GitHub. When building the offline registry, the docker build will + +1. Clone all git projects referenced in devfiles, and +2. `git archive` them in the `/resources` path, making them available to workspaces. + +When deploying this offline registry, it is necessary to set the environment variable `CHE_DEVFILE_REGISTRY_URL` to the URL of the route/endpoint that exposes the devfile registry, as devfiles need to be rewritten to point to internally hosted zip files. + +## Deploy the registry to OpenShift + +You can deploy the registry to Openshift as follows: + +```bash + oc new-app -f deploy/openshift/che-devfile-registry.yaml \ + -p IMAGE="quay.io/eclipse/che-devfile-registry" \ + -p IMAGE_TAG="next" \ + -p PULL_POLICY="Always" +``` + +## Kubernetes + +You can deploy Che devfile registry on Kubernetes using [helm](https://docs.helm.sh/). For example if you want to deploy it in the namespace `kube-che` and you are using `minikube` you can use the following command. + +```bash +NAMESPACE="kube-che" +DOMAIN="$(minikube ip).nip.io" +helm upgrade --install che-devfile-registry \ + --debug \ + --namespace ${NAMESPACE} \ + --set global.ingressDomain=${DOMAIN} \ + ./deploy/kubernetes/che-devfile-registry/ +``` + +You can use the following command to uninstall it. + +```bash +helm delete --purge che-devfile-registry +``` + +## Run the registry + +* Run +```bash +docker run -it --rm --entrypoint httpd-foreground -p 8080:8080 quay.io/eclipse/che-devfile-registry:next +``` +* Open http://localhost:8080/devfiles/ + +# Builds + +This repo contains several [actions](https://github.com/eclipse-che/che-devfile-registry/actions), including: +* [![release latest stable](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/release.yml/badge.svg)](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/release.yml) +* [![next builds](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/next-build.yml/badge.svg)](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/next-build.yml) +* [![PR](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/pr-checks.yml/badge.svg)](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/pr-checks.yml) +* [![try in webIDE](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/try-in-web-ide.yaml/badge.svg)](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/try-in-web-ide.yaml) + +Want to contribute? Open this project in a Che [![Contribute](https://www.eclipse.org/che/contribute.svg)](https://workspaces.openshift.com#https://github.com/eclipse/che-devfile-registry) + +Maintainers can run the latest [![Contribute (nightly)](https://img.shields.io/static/v1?label=nightly%20Che&message=for%20maintainers&logo=eclipseche&color=FDB940&labelColor=525C86)](https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/#https://github.com/eclipse-che/che-devfile-registry?df=.devfile-v2.yaml) + + +Downstream builds can be found at the link below, which is _internal to Red Hat_. Stable builds can be found by replacing the 3.x with a specific version like 3.2. + +* [devfileregistry_3.x](https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/DS_CI/job/devfileregistry_3.x/) + +NOTE: The registry downstream is a fork of upstream, with different devfile content and support for restricted environments enabled by default. + +# License + +Che is open sourced under the Eclipse Public License 2.0. diff --git a/7.80.0/devfiles/.htaccess b/7.80.0/devfiles/.htaccess new file mode 100644 index 000000000..14f50fb3d --- /dev/null +++ b/7.80.0/devfiles/.htaccess @@ -0,0 +1 @@ +DirectoryIndex index.json diff --git a/7.80.0/devfiles/bash/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/bash/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..ac0f0b64a --- /dev/null +++ b/7.80.0/devfiles/bash/devworkspace-che-code-insiders.yaml @@ -0,0 +1,140 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-bash +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: bash + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: bash + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + commands: + - id: run-main-script + exec: + label: Run main.sh script + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: | + ./main.sh + group: + kind: run + isDefault: true + projects: + - name: bash + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/bash.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + commands: + - id: run-main-script + exec: + label: Run main.sh script + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: | + ./main.sh + group: + kind: run + isDefault: true + projects: + - name: bash + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/bash.zip' + contributions: + - name: editor + kubernetes: + name: che-code-bash diff --git a/7.80.0/devfiles/bash/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/bash/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..3a7ff4f42 --- /dev/null +++ b/7.80.0/devfiles/bash/devworkspace-che-code-latest.yaml @@ -0,0 +1,141 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-bash +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: bash + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: bash + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + commands: + - id: run-main-script + exec: + label: Run main.sh script + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: | + ./main.sh + group: + kind: run + isDefault: true + projects: + - name: bash + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/bash.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + commands: + - id: run-main-script + exec: + label: Run main.sh script + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: | + ./main.sh + group: + kind: run + isDefault: true + projects: + - name: bash + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/bash.zip' + contributions: + - name: editor + kubernetes: + name: che-code-bash diff --git a/7.80.0/devfiles/bash/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/bash/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..43de973f0 --- /dev/null +++ b/7.80.0/devfiles/bash/devworkspace-che-idea-next.yaml @@ -0,0 +1,159 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-bash +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: bash + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: bash + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + commands: + - id: run-main-script + exec: + label: Run main.sh script + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: | + ./main.sh + group: + kind: run + isDefault: true + projects: + - name: bash + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/bash.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + commands: + - id: run-main-script + exec: + label: Run main.sh script + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: | + ./main.sh + group: + kind: run + isDefault: true + projects: + - name: bash + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/bash.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-bash diff --git a/7.80.0/devfiles/bash/meta.yaml b/7.80.0/devfiles/bash/meta.yaml new file mode 100644 index 000000000..05e4d1120 --- /dev/null +++ b/7.80.0/devfiles/bash/meta.yaml @@ -0,0 +1,13 @@ +displayName: Bash +description: Stack with environment ready to develop bash scripts. +tags: + - Community + - Bash + - Shell +icon: /images/che.svg +links: + v2: https://github.com/che-samples/bash/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/bash/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/bash/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/bash/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/cpp/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/cpp/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..f0704326b --- /dev/null +++ b/7.80.0/devfiles/cpp/devworkspace-che-code-insiders.yaml @@ -0,0 +1,156 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-cpp +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: cpp + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: cpp + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + mountSources: true + commands: + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: g++ -g hello.cpp -o hello.out && echo "Build complete" + group: + kind: build + isDefault: true + - id: run + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./hello.out + group: + kind: run + projects: + - name: cpp-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/cpp-hello-world.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + mountSources: true + commands: + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: g++ -g hello.cpp -o hello.out && echo "Build complete" + group: + kind: build + isDefault: true + - id: run + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./hello.out + group: + kind: run + projects: + - name: cpp-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/cpp-hello-world.zip' + contributions: + - name: editor + kubernetes: + name: che-code-cpp diff --git a/7.80.0/devfiles/cpp/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/cpp/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..ad6a5338d --- /dev/null +++ b/7.80.0/devfiles/cpp/devworkspace-che-code-latest.yaml @@ -0,0 +1,157 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-cpp +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: cpp + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: cpp + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + mountSources: true + commands: + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: g++ -g hello.cpp -o hello.out && echo "Build complete" + group: + kind: build + isDefault: true + - id: run + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./hello.out + group: + kind: run + projects: + - name: cpp-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/cpp-hello-world.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + mountSources: true + commands: + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: g++ -g hello.cpp -o hello.out && echo "Build complete" + group: + kind: build + isDefault: true + - id: run + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./hello.out + group: + kind: run + projects: + - name: cpp-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/cpp-hello-world.zip' + contributions: + - name: editor + kubernetes: + name: che-code-cpp diff --git a/7.80.0/devfiles/cpp/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/cpp/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..909a64ac2 --- /dev/null +++ b/7.80.0/devfiles/cpp/devworkspace-che-idea-next.yaml @@ -0,0 +1,175 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-cpp +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: cpp + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: cpp + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + mountSources: true + commands: + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: g++ -g hello.cpp -o hello.out && echo "Build complete" + group: + kind: build + isDefault: true + - id: run + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./hello.out + group: + kind: run + projects: + - name: cpp-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/cpp-hello-world.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + mountSources: true + commands: + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: g++ -g hello.cpp -o hello.out && echo "Build complete" + group: + kind: build + isDefault: true + - id: run + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./hello.out + group: + kind: run + projects: + - name: cpp-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/cpp-hello-world.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-cpp diff --git a/7.80.0/devfiles/cpp/meta.yaml b/7.80.0/devfiles/cpp/meta.yaml new file mode 100644 index 000000000..950657a65 --- /dev/null +++ b/7.80.0/devfiles/cpp/meta.yaml @@ -0,0 +1,15 @@ +displayName: C/C++ +description: Stack with C/C++ and Clang 8 +tags: + - Community + - C/C++ + - Clang + - g++ + - GDB +icon: /images/cpp.svg +links: + v2: https://github.com/che-samples/cpp-hello-world/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/cpp/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/cpp/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/cpp/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..1ca6aa805 --- /dev/null +++ b/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-code-insiders.yaml @@ -0,0 +1,200 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-dotnet +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: dotnet + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.2.0 + metadata: + name: dotnet + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 2Gi + mountSources: true + env: + - name: CONFIGURATION + value: Debug + - name: STARTUP_PROJECT + value: app.csproj + - name: ASPNETCORE_ENVIRONMENT + value: Development + - name: ASPNETCORE_URLS + value: http://*:8080 + endpoints: + - name: https-dotnet60 + targetPort: 8080 + protocol: https + volumeMounts: + - name: nuget + path: /home/user/.nuget + - name: nuget + volume: + size: 1G + commands: + - id: build + exec: + label: Build + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet build -c $CONFIGURATION $STARTUP_PROJECT + /p:UseSharedCompilation=false + group: + kind: build + - id: run + exec: + label: Run + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT + --no-launch-profile + group: + kind: run + projects: + - name: dotnet-web-simple + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/dotnet-web-simple.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 2Gi + mountSources: true + env: + - name: CONFIGURATION + value: Debug + - name: STARTUP_PROJECT + value: app.csproj + - name: ASPNETCORE_ENVIRONMENT + value: Development + - name: ASPNETCORE_URLS + value: http://*:8080 + endpoints: + - name: https-dotnet60 + targetPort: 8080 + protocol: https + volumeMounts: + - name: nuget + path: /home/user/.nuget + - name: nuget + volume: + size: 1G + commands: + - id: build + exec: + label: Build + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet build -c $CONFIGURATION $STARTUP_PROJECT + /p:UseSharedCompilation=false + group: + kind: build + - id: run + exec: + label: Run + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT + --no-launch-profile + group: + kind: run + projects: + - name: dotnet-web-simple + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/dotnet-web-simple.zip' + contributions: + - name: editor + kubernetes: + name: che-code-dotnet diff --git a/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..9c5933ebd --- /dev/null +++ b/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-code-latest.yaml @@ -0,0 +1,201 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-dotnet +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: dotnet + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.2.0 + metadata: + name: dotnet + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 2Gi + mountSources: true + env: + - name: CONFIGURATION + value: Debug + - name: STARTUP_PROJECT + value: app.csproj + - name: ASPNETCORE_ENVIRONMENT + value: Development + - name: ASPNETCORE_URLS + value: http://*:8080 + endpoints: + - name: https-dotnet60 + targetPort: 8080 + protocol: https + volumeMounts: + - name: nuget + path: /home/user/.nuget + - name: nuget + volume: + size: 1G + commands: + - id: build + exec: + label: Build + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet build -c $CONFIGURATION $STARTUP_PROJECT + /p:UseSharedCompilation=false + group: + kind: build + - id: run + exec: + label: Run + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT + --no-launch-profile + group: + kind: run + projects: + - name: dotnet-web-simple + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/dotnet-web-simple.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 2Gi + mountSources: true + env: + - name: CONFIGURATION + value: Debug + - name: STARTUP_PROJECT + value: app.csproj + - name: ASPNETCORE_ENVIRONMENT + value: Development + - name: ASPNETCORE_URLS + value: http://*:8080 + endpoints: + - name: https-dotnet60 + targetPort: 8080 + protocol: https + volumeMounts: + - name: nuget + path: /home/user/.nuget + - name: nuget + volume: + size: 1G + commands: + - id: build + exec: + label: Build + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet build -c $CONFIGURATION $STARTUP_PROJECT + /p:UseSharedCompilation=false + group: + kind: build + - id: run + exec: + label: Run + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT + --no-launch-profile + group: + kind: run + projects: + - name: dotnet-web-simple + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/dotnet-web-simple.zip' + contributions: + - name: editor + kubernetes: + name: che-code-dotnet diff --git a/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..407995654 --- /dev/null +++ b/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-idea-next.yaml @@ -0,0 +1,219 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-dotnet +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: dotnet + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.2.0 + metadata: + name: dotnet + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 2Gi + mountSources: true + env: + - name: CONFIGURATION + value: Debug + - name: STARTUP_PROJECT + value: app.csproj + - name: ASPNETCORE_ENVIRONMENT + value: Development + - name: ASPNETCORE_URLS + value: http://*:8080 + endpoints: + - name: https-dotnet60 + targetPort: 8080 + protocol: https + volumeMounts: + - name: nuget + path: /home/user/.nuget + - name: nuget + volume: + size: 1G + commands: + - id: build + exec: + label: Build + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet build -c $CONFIGURATION $STARTUP_PROJECT + /p:UseSharedCompilation=false + group: + kind: build + - id: run + exec: + label: Run + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT + --no-launch-profile + group: + kind: run + projects: + - name: dotnet-web-simple + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/dotnet-web-simple.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 2Gi + mountSources: true + env: + - name: CONFIGURATION + value: Debug + - name: STARTUP_PROJECT + value: app.csproj + - name: ASPNETCORE_ENVIRONMENT + value: Development + - name: ASPNETCORE_URLS + value: http://*:8080 + endpoints: + - name: https-dotnet60 + targetPort: 8080 + protocol: https + volumeMounts: + - name: nuget + path: /home/user/.nuget + - name: nuget + volume: + size: 1G + commands: + - id: build + exec: + label: Build + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet build -c $CONFIGURATION $STARTUP_PROJECT + /p:UseSharedCompilation=false + group: + kind: build + - id: run + exec: + label: Run + component: tools + workingDir: ${PROJECTS_ROOT}/dotnet-web-simple + commandLine: >- + dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT + --no-launch-profile + group: + kind: run + projects: + - name: dotnet-web-simple + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/dotnet-web-simple.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-dotnet diff --git a/7.80.0/devfiles/dotnet-asp.net/meta.yaml b/7.80.0/devfiles/dotnet-asp.net/meta.yaml new file mode 100644 index 000000000..ffdd32e97 --- /dev/null +++ b/7.80.0/devfiles/dotnet-asp.net/meta.yaml @@ -0,0 +1,15 @@ +displayName: ASP.NET Core Web Application +description: Stack for developing ASP.NET Core Web Application +tags: + - Community + - Debian + - Dotnet + - C# + - ASP.NET +icon: /images/dotnetcore.svg +links: + v2: https://github.com/che-samples/dotnet-web-simple/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/dotnet-asp.net/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/dotnet-asp.net/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/dotnet-asp.net/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/external_images.txt b/7.80.0/devfiles/external_images.txt new file mode 100644 index 000000000..d20706cbd --- /dev/null +++ b/7.80.0/devfiles/external_images.txt @@ -0,0 +1,10 @@ +quay.io/che-incubator/che-code:insiders +quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 +quay.io/che-incubator/che-idea:next +quay.io/devfile/universal-developer-image:ubi8-latest +quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 +quay.io/eclipse/che--centos--mongodb-36-centos7:latest-a915db7beca87198fcd7860086989fe8a327a1a4f6508025b64ab28fcc7423b2 +quay.io/eclipse/che--centos--mongodb-36-centos7:latest-ffdf2431bbc6d9a9d2a03e95bbbe8adb49ab9eac301f268a35038c84288259c1 +quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764 +quay.io/eclipse/che--mariadb:10.7.1-5a8009369ee57c85b6f4a08406147bd9c505cde6b8250d16a27d2a5febfdead7 +registry.access.redhat.com/ubi8/ubi-minimal diff --git a/7.80.0/devfiles/go/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/go/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..c8681d201 --- /dev/null +++ b/7.80.0/devfiles/go/devworkspace-che-code-insiders.yaml @@ -0,0 +1,202 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-golang-example +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: golang-example + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: golang-example + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: GOPATH + value: /projects:/home/user/go + - name: GOCACHE + value: /tmp/.cache + endpoints: + - name: 8080-https + targetPort: 8080 + protocol: https + memoryLimit: 2Gi + mountSources: true + commands: + - id: run-outyet + exec: + label: 1.1 Run outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go get -d && go run main.go + group: + kind: run + - id: stop-outyet + exec: + label: 1.2 Stop outyet + component: tools + commandLine: kill $(pidof go) + group: + kind: run + - id: test-outyet + exec: + label: 1.3 Test outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go test + group: + kind: test + - id: run-current-file + exec: + label: Run current file + component: tools + workingDir: ${fileDirname} + commandLine: go get -d && go run ${file} + group: + kind: run + projects: + - name: golang-example + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/golang-example.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: GOPATH + value: /projects:/home/user/go + - name: GOCACHE + value: /tmp/.cache + endpoints: + - name: 8080-https + targetPort: 8080 + protocol: https + memoryLimit: 2Gi + mountSources: true + commands: + - id: run-outyet + exec: + label: 1.1 Run outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go get -d && go run main.go + group: + kind: run + - id: stop-outyet + exec: + label: 1.2 Stop outyet + component: tools + commandLine: kill $(pidof go) + group: + kind: run + - id: test-outyet + exec: + label: 1.3 Test outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go test + group: + kind: test + - id: run-current-file + exec: + label: Run current file + component: tools + workingDir: ${fileDirname} + commandLine: go get -d && go run ${file} + group: + kind: run + projects: + - name: golang-example + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/golang-example.zip' + contributions: + - name: editor + kubernetes: + name: che-code-golang-example diff --git a/7.80.0/devfiles/go/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/go/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..b007c64a0 --- /dev/null +++ b/7.80.0/devfiles/go/devworkspace-che-code-latest.yaml @@ -0,0 +1,203 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-golang-example +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: golang-example + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: golang-example + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: GOPATH + value: /projects:/home/user/go + - name: GOCACHE + value: /tmp/.cache + endpoints: + - name: 8080-https + targetPort: 8080 + protocol: https + memoryLimit: 2Gi + mountSources: true + commands: + - id: run-outyet + exec: + label: 1.1 Run outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go get -d && go run main.go + group: + kind: run + - id: stop-outyet + exec: + label: 1.2 Stop outyet + component: tools + commandLine: kill $(pidof go) + group: + kind: run + - id: test-outyet + exec: + label: 1.3 Test outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go test + group: + kind: test + - id: run-current-file + exec: + label: Run current file + component: tools + workingDir: ${fileDirname} + commandLine: go get -d && go run ${file} + group: + kind: run + projects: + - name: golang-example + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/golang-example.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: GOPATH + value: /projects:/home/user/go + - name: GOCACHE + value: /tmp/.cache + endpoints: + - name: 8080-https + targetPort: 8080 + protocol: https + memoryLimit: 2Gi + mountSources: true + commands: + - id: run-outyet + exec: + label: 1.1 Run outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go get -d && go run main.go + group: + kind: run + - id: stop-outyet + exec: + label: 1.2 Stop outyet + component: tools + commandLine: kill $(pidof go) + group: + kind: run + - id: test-outyet + exec: + label: 1.3 Test outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go test + group: + kind: test + - id: run-current-file + exec: + label: Run current file + component: tools + workingDir: ${fileDirname} + commandLine: go get -d && go run ${file} + group: + kind: run + projects: + - name: golang-example + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/golang-example.zip' + contributions: + - name: editor + kubernetes: + name: che-code-golang-example diff --git a/7.80.0/devfiles/go/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/go/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..b382f245b --- /dev/null +++ b/7.80.0/devfiles/go/devworkspace-che-idea-next.yaml @@ -0,0 +1,221 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-golang-example +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: golang-example + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: golang-example + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: GOPATH + value: /projects:/home/user/go + - name: GOCACHE + value: /tmp/.cache + endpoints: + - name: 8080-https + targetPort: 8080 + protocol: https + memoryLimit: 2Gi + mountSources: true + commands: + - id: run-outyet + exec: + label: 1.1 Run outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go get -d && go run main.go + group: + kind: run + - id: stop-outyet + exec: + label: 1.2 Stop outyet + component: tools + commandLine: kill $(pidof go) + group: + kind: run + - id: test-outyet + exec: + label: 1.3 Test outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go test + group: + kind: test + - id: run-current-file + exec: + label: Run current file + component: tools + workingDir: ${fileDirname} + commandLine: go get -d && go run ${file} + group: + kind: run + projects: + - name: golang-example + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/golang-example.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: GOPATH + value: /projects:/home/user/go + - name: GOCACHE + value: /tmp/.cache + endpoints: + - name: 8080-https + targetPort: 8080 + protocol: https + memoryLimit: 2Gi + mountSources: true + commands: + - id: run-outyet + exec: + label: 1.1 Run outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go get -d && go run main.go + group: + kind: run + - id: stop-outyet + exec: + label: 1.2 Stop outyet + component: tools + commandLine: kill $(pidof go) + group: + kind: run + - id: test-outyet + exec: + label: 1.3 Test outyet + component: tools + workingDir: ${PROJECT_SOURCE}/outyet + commandLine: go test + group: + kind: test + - id: run-current-file + exec: + label: Run current file + component: tools + workingDir: ${fileDirname} + commandLine: go get -d && go run ${file} + group: + kind: run + projects: + - name: golang-example + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/golang-example.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-golang-example diff --git a/7.80.0/devfiles/go/meta.yaml b/7.80.0/devfiles/go/meta.yaml new file mode 100644 index 000000000..c210cae4c --- /dev/null +++ b/7.80.0/devfiles/go/meta.yaml @@ -0,0 +1,13 @@ +displayName: Go +description: Stack with Go 1.14 +tags: + - Community + - Debian + - Go +icon: /images/go.svg +links: + v2: https://github.com/che-samples/golang-example/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/go/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/go/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/go/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/index.json b/7.80.0/devfiles/index.json new file mode 100644 index 000000000..be7d33b72 --- /dev/null +++ b/7.80.0/devfiles/index.json @@ -0,0 +1,358 @@ +[ + { + "displayName": "Node.js React Web Application", + "description": "Stack for developing Node.js React Web Application", + "tags": [ + "Community", + "Node.js", + "React", + "Redux", + "RealWorld" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/nodejs.svg", + "links": { + "v2": "https://github.com/che-samples/nodejs-react-redux/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-react/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-react/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-react/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Rust", + "description": "Rust Stack with Rust 1.57", + "tags": [ + "Community", + "Rust" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/rust.svg", + "links": { + "v2": "https://github.com/che-samples/helloworld-rust/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/rust/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/rust/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/rust/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "ASP.NET Core Web Application", + "description": "Stack for developing ASP.NET Core Web Application", + "tags": [ + "Community", + "Debian", + "Dotnet", + "C#", + "ASP.NET" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/dotnetcore.svg", + "links": { + "v2": "https://github.com/che-samples/dotnet-web-simple/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/dotnet-asp.net/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "C/C++", + "description": "Stack with C/C++ and Clang 8", + "tags": [ + "Community", + "C/C++", + "Clang", + "g++", + "GDB" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/cpp.svg", + "links": { + "v2": "https://github.com/che-samples/cpp-hello-world/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/cpp/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/cpp/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/cpp/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Python", + "description": "Python Stack with Python 3.8", + "tags": [ + "Community", + "Centos", + "Python", + "pip" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/python.svg", + "links": { + "v2": "https://github.com/che-samples/python-hello-world/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/python/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/python/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/python/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "PHP Symfony", + "description": "PHP Stack with Symfony Demo Application https://symfony.com/", + "tags": [ + "Community", + "PHP", + "Apache", + "MySQL", + "Symfony", + "Debian", + "Centos" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/php.svg", + "links": { + "v2": "https://github.com/che-samples/php-symfony/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/php-symfony/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/php-symfony/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/php-symfony/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Node.js Express Web Application", + "description": "Stack with Node.js 10", + "tags": [ + "Community", + "Node.js", + "Express", + "ubi8" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/nodejs.svg", + "links": { + "v2": "https://github.com/che-samples/web-nodejs-sample/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Bash", + "description": "Stack with environment ready to develop bash scripts.", + "tags": [ + "Community", + "Bash", + "Shell" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/che.svg", + "links": { + "v2": "https://github.com/che-samples/bash/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/bash/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/bash/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/bash/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Go", + "description": "Stack with Go 1.14", + "tags": [ + "Community", + "Debian", + "Go" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/go.svg", + "links": { + "v2": "https://github.com/che-samples/golang-example/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/go/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/go/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/go/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Quarkus REST API", + "description": "Quarkus stack with a default REST endpoint application sample", + "tags": [ + "Community", + "Java", + "Quarkus", + "OpenJDK", + "Maven", + "Debian" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/quarkus.svg", + "links": { + "v2": "https://github.com/che-samples/quarkus-quickstarts/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/quarkus/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/quarkus/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/quarkus/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Node.js MongoDB Web Application", + "description": "Stack with NodeJS 10 and MongoDB 3.4", + "tags": [ + "Community", + "Node.js", + "Express", + "MongoDB", + "RealWorld", + "ubi8", + "Centos" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/nodejs.svg", + "links": { + "v2": "https://github.com/che-samples/nodejs-mongodb-sample/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-mongo/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-mongo/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-mongo/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Node.js Angular Web Application", + "description": "Stack for developing Node.js Angular Web Application", + "tags": [ + "Community", + "Node.js", + "Angular", + "Alpine" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/angular.svg", + "links": { + "v2": "https://github.com/che-samples/nodejs-angular/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-angular/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-angular/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-angular/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Python Django", + "description": "Python Stack with Python 3.8 and Django application", + "tags": [ + "Community", + "Centos", + "Python", + "pip" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/python.svg", + "links": { + "v2": "https://github.com/che-samples/django-realworld-example-app/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/python-django/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/python-django/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/python-django/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Java with Spring Boot and MongoDB", + "description": "Java stack with MongoDB and Spring Boot Guestbook demo application", + "tags": [ + "Community", + "Java", + "OpenJDK", + "Maven", + "Spring Boot", + "MongoDB" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/java.svg", + "links": { + "v2": "https://github.com/che-samples/java-guestbook/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-mongo/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-mongo/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-mongo/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Java Spring Boot", + "description": "Java stack with Spring Boot Petclinic demo application", + "tags": [ + "Community", + "Java", + "OpenJDK", + "Maven", + "Spring Boot" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/springboot.svg", + "links": { + "v2": "https://github.com/che-samples/java-spring-petclinic/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-web-spring/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-web-spring/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-web-spring/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Java Lombok", + "description": "Java Stack with Project Lombok", + "tags": [ + "Community", + "Java", + "OpenJDK", + "Maven", + "Debian", + "Lombok" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/lombok.svg", + "links": { + "v2": "https://github.com/che-samples/lombok-project-sample/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-lombok/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-lombok/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/java-lombok/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Scala", + "description": "Scala Stack with OpenJDK 11 and sbt 1.x", + "tags": [ + "Community", + "Scala", + "OpenJDK", + "sbt", + "Debian" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/scala.svg", + "links": { + "v2": "https://github.com/che-samples/scala-sbt/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/scala-sbt/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/scala-sbt/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/scala-sbt/devworkspace-che-code-insiders.yaml" + } + } + }, + { + "displayName": "Node.js Web Application based on Yarn", + "description": "Stack for developing Node.js Web Application based on Yarn", + "tags": [ + "Community", + "Node.js", + "Alpine", + "Yarn", + "React" + ], + "icon": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/images/nodejs.svg", + "links": { + "v2": "https://github.com/che-samples/react-web-app/tree/main", + "devWorkspaces": { + "che-incubator/che-idea/next": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-yarn/devworkspace-che-idea-next.yaml", + "che-incubator/che-code/latest": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-yarn/devworkspace-che-code-latest.yaml", + "che-incubator/che-code/insiders": "https://eclipse-che.github.io/che-devfile-registry/7.80.0/devfiles/nodejs-yarn/devworkspace-che-code-insiders.yaml" + } + } + } +] diff --git a/7.80.0/devfiles/java-lombok/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/java-lombok/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..8601e85c4 --- /dev/null +++ b/7.80.0/devfiles/java-lombok/devworkspace-che-code-insiders.yaml @@ -0,0 +1,158 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-java-lombok +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: java-lombok + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: java-lombok + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + commands: + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + projects: + - name: lombok-project-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/lombok-project-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + commands: + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + projects: + - name: lombok-project-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/lombok-project-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-code-java-lombok diff --git a/7.80.0/devfiles/java-lombok/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/java-lombok/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..6279f8687 --- /dev/null +++ b/7.80.0/devfiles/java-lombok/devworkspace-che-code-latest.yaml @@ -0,0 +1,159 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-java-lombok +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: java-lombok + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: java-lombok + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + commands: + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + projects: + - name: lombok-project-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/lombok-project-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + commands: + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + projects: + - name: lombok-project-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/lombok-project-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-code-java-lombok diff --git a/7.80.0/devfiles/java-lombok/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/java-lombok/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..6db992895 --- /dev/null +++ b/7.80.0/devfiles/java-lombok/devworkspace-che-idea-next.yaml @@ -0,0 +1,177 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-java-lombok +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: java-lombok + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: java-lombok + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + commands: + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + projects: + - name: lombok-project-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/lombok-project-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + commands: + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + projects: + - name: lombok-project-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/lombok-project-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-java-lombok diff --git a/7.80.0/devfiles/java-lombok/meta.yaml b/7.80.0/devfiles/java-lombok/meta.yaml new file mode 100644 index 000000000..c0fc10c62 --- /dev/null +++ b/7.80.0/devfiles/java-lombok/meta.yaml @@ -0,0 +1,16 @@ +displayName: Java Lombok +description: Java Stack with Project Lombok +tags: + - Community + - Java + - OpenJDK + - Maven + - Debian + - Lombok +icon: /images/lombok.svg +links: + v2: https://github.com/che-samples/lombok-project-sample/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/java-lombok/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/java-lombok/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/java-lombok/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/java-mongo/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/java-mongo/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..a88741318 --- /dev/null +++ b/7.80.0/devfiles/java-mongo/devworkspace-che-code-insiders.yaml @@ -0,0 +1,288 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-java-guestbook +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: java-guestbook + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: java-guestbook + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - name: java-guestbook-backend + exposure: public + protocol: https + targetPort: 8080 + - name: java-guestbook + exposure: public + protocol: https + targetPort: 8443 + - name: debug + exposure: none + protocol: tcp + targetPort: 5005 + 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: 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 + volumeMounts: + - name: mongodbdata + path: /var/lib/mongodb/data + - name: m2 + volume: + size: 1G + - name: mongodbdata + volume: + size: 256Mi + commands: + - id: maven-build-backend + exec: + label: build backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: maven-build-frontend + exec: + label: build frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-backend + exec: + label: run backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006,quiet=y' + group: + kind: run + isDefault: true + - id: run-frontend + exec: + label: run frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-guestbook + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-guestbook.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - name: java-guestbook-backend + exposure: public + protocol: https + targetPort: 8080 + - name: java-guestbook + exposure: public + protocol: https + targetPort: 8443 + - name: debug + exposure: none + protocol: tcp + targetPort: 5005 + 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: 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 + volumeMounts: + - name: mongodbdata + path: /var/lib/mongodb/data + - name: m2 + volume: + size: 1G + - name: mongodbdata + volume: + size: 256Mi + commands: + - id: maven-build-backend + exec: + label: build backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: maven-build-frontend + exec: + label: build frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-backend + exec: + label: run backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006,quiet=y' + group: + kind: run + isDefault: true + - id: run-frontend + exec: + label: run frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-guestbook + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-guestbook.zip' + contributions: + - name: editor + kubernetes: + name: che-code-java-guestbook diff --git a/7.80.0/devfiles/java-mongo/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/java-mongo/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..6fbf8efce --- /dev/null +++ b/7.80.0/devfiles/java-mongo/devworkspace-che-code-latest.yaml @@ -0,0 +1,289 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-java-guestbook +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: java-guestbook + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: java-guestbook + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - name: java-guestbook-backend + exposure: public + protocol: https + targetPort: 8080 + - name: java-guestbook + exposure: public + protocol: https + targetPort: 8443 + - name: debug + exposure: none + protocol: tcp + targetPort: 5005 + 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: 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 + volumeMounts: + - name: mongodbdata + path: /var/lib/mongodb/data + - name: m2 + volume: + size: 1G + - name: mongodbdata + volume: + size: 256Mi + commands: + - id: maven-build-backend + exec: + label: build backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: maven-build-frontend + exec: + label: build frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-backend + exec: + label: run backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006,quiet=y' + group: + kind: run + isDefault: true + - id: run-frontend + exec: + label: run frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-guestbook + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-guestbook.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - name: java-guestbook-backend + exposure: public + protocol: https + targetPort: 8080 + - name: java-guestbook + exposure: public + protocol: https + targetPort: 8443 + - name: debug + exposure: none + protocol: tcp + targetPort: 5005 + 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: 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 + volumeMounts: + - name: mongodbdata + path: /var/lib/mongodb/data + - name: m2 + volume: + size: 1G + - name: mongodbdata + volume: + size: 256Mi + commands: + - id: maven-build-backend + exec: + label: build backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: maven-build-frontend + exec: + label: build frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-backend + exec: + label: run backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006,quiet=y' + group: + kind: run + isDefault: true + - id: run-frontend + exec: + label: run frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-guestbook + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-guestbook.zip' + contributions: + - name: editor + kubernetes: + name: che-code-java-guestbook diff --git a/7.80.0/devfiles/java-mongo/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/java-mongo/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..2792042a9 --- /dev/null +++ b/7.80.0/devfiles/java-mongo/devworkspace-che-idea-next.yaml @@ -0,0 +1,307 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-java-guestbook +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: java-guestbook + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: java-guestbook + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - name: java-guestbook-backend + exposure: public + protocol: https + targetPort: 8080 + - name: java-guestbook + exposure: public + protocol: https + targetPort: 8443 + - name: debug + exposure: none + protocol: tcp + targetPort: 5005 + 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: 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 + volumeMounts: + - name: mongodbdata + path: /var/lib/mongodb/data + - name: m2 + volume: + size: 1G + - name: mongodbdata + volume: + size: 256Mi + commands: + - id: maven-build-backend + exec: + label: build backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: maven-build-frontend + exec: + label: build frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-backend + exec: + label: run backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006,quiet=y' + group: + kind: run + isDefault: true + - id: run-frontend + exec: + label: run frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-guestbook + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-guestbook.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - name: java-guestbook-backend + exposure: public + protocol: https + targetPort: 8080 + - name: java-guestbook + exposure: public + protocol: https + targetPort: 8443 + - name: debug + exposure: none + protocol: tcp + targetPort: 5005 + 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: 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 + volumeMounts: + - name: mongodbdata + path: /var/lib/mongodb/data + - name: m2 + volume: + size: 1G + - name: mongodbdata + volume: + size: 256Mi + commands: + - id: maven-build-backend + exec: + label: build backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: maven-build-frontend + exec: + label: build frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-backend + exec: + label: run backend + component: tools + workingDir: ${PROJECT_SOURCE}/backend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006,quiet=y' + group: + kind: run + isDefault: true + - id: run-frontend + exec: + label: run frontend + component: tools + workingDir: ${PROJECT_SOURCE}/frontend + commandLine: > + mvn spring-boot:run -DskipTests -Drun.jvmArguments='-Xdebug + -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-guestbook + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-guestbook.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-java-guestbook diff --git a/7.80.0/devfiles/java-mongo/meta.yaml b/7.80.0/devfiles/java-mongo/meta.yaml new file mode 100644 index 000000000..21752daf1 --- /dev/null +++ b/7.80.0/devfiles/java-mongo/meta.yaml @@ -0,0 +1,16 @@ +displayName: Java with Spring Boot and MongoDB +description: Java stack with MongoDB and Spring Boot Guestbook demo application +tags: + - Community + - Java + - OpenJDK + - Maven + - Spring Boot + - MongoDB +icon: /images/java.svg +links: + v2: https://github.com/che-samples/java-guestbook/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/java-mongo/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/java-mongo/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/java-mongo/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/java-web-spring/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/java-web-spring/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..d2aa7cbd0 --- /dev/null +++ b/7.80.0/devfiles/java-web-spring/devworkspace-che-code-insiders.yaml @@ -0,0 +1,300 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-spring-petclinic +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: spring-petclinic + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: spring-petclinic + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + - name: mariadb + container: + image: >- + quay.io/eclipse/che--mariadb:10.7.1-5a8009369ee57c85b6f4a08406147bd9c505cde6b8250d16a27d2a5febfdead7 + memoryLimit: 300Mi + endpoints: + - exposure: none + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MARIADB_USER + value: petclinic + - name: MARIADB_PASSWORD + value: petclinic + - name: MARIADB_DATABASE + value: petclinic + - name: MARIADB_ALLOW_EMPTY_ROOT_PASSWORD + value: allow + - name: PS1 + value: $(echo ${0}) $ + volumeMounts: + - name: mysqldata + path: /var/lib/mysql + - name: mysqldata + volume: + size: 256Mi + commands: + - id: prepare-database + exec: + component: mariadb + workingDir: ${PROJECT_SOURCE} + commandLine: > + mysql -u root < ${PROJECT_SOURCE}/src/main/resources/db/mysql/user.sql + && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/schema.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/data.sql && \ + + echo "\e[32mDone.\e[0m Database petclinic was configured" + group: + kind: run + isDefault: true + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-with-hsqldb + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + - id: run-with-mysql + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles=mysql \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-spring-petclinic + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-spring-petclinic.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + - name: mariadb + container: + image: >- + quay.io/eclipse/che--mariadb:10.7.1-5a8009369ee57c85b6f4a08406147bd9c505cde6b8250d16a27d2a5febfdead7 + memoryLimit: 300Mi + endpoints: + - exposure: none + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MARIADB_USER + value: petclinic + - name: MARIADB_PASSWORD + value: petclinic + - name: MARIADB_DATABASE + value: petclinic + - name: MARIADB_ALLOW_EMPTY_ROOT_PASSWORD + value: allow + - name: PS1 + value: $(echo ${0}) $ + volumeMounts: + - name: mysqldata + path: /var/lib/mysql + - name: mysqldata + volume: + size: 256Mi + commands: + - id: prepare-database + exec: + component: mariadb + workingDir: ${PROJECT_SOURCE} + commandLine: > + mysql -u root < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/user.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/schema.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/data.sql && \ + + echo "\e[32mDone.\e[0m Database petclinic was configured" + group: + kind: run + isDefault: true + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-with-hsqldb + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + - id: run-with-mysql + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles=mysql \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-spring-petclinic + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-spring-petclinic.zip' + contributions: + - name: editor + kubernetes: + name: che-code-spring-petclinic diff --git a/7.80.0/devfiles/java-web-spring/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/java-web-spring/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..4edff8d66 --- /dev/null +++ b/7.80.0/devfiles/java-web-spring/devworkspace-che-code-latest.yaml @@ -0,0 +1,301 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-spring-petclinic +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: spring-petclinic + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: spring-petclinic + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + - name: mariadb + container: + image: >- + quay.io/eclipse/che--mariadb:10.7.1-5a8009369ee57c85b6f4a08406147bd9c505cde6b8250d16a27d2a5febfdead7 + memoryLimit: 300Mi + endpoints: + - exposure: none + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MARIADB_USER + value: petclinic + - name: MARIADB_PASSWORD + value: petclinic + - name: MARIADB_DATABASE + value: petclinic + - name: MARIADB_ALLOW_EMPTY_ROOT_PASSWORD + value: allow + - name: PS1 + value: $(echo ${0}) $ + volumeMounts: + - name: mysqldata + path: /var/lib/mysql + - name: mysqldata + volume: + size: 256Mi + commands: + - id: prepare-database + exec: + component: mariadb + workingDir: ${PROJECT_SOURCE} + commandLine: > + mysql -u root < ${PROJECT_SOURCE}/src/main/resources/db/mysql/user.sql + && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/schema.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/data.sql && \ + + echo "\e[32mDone.\e[0m Database petclinic was configured" + group: + kind: run + isDefault: true + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-with-hsqldb + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + - id: run-with-mysql + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles=mysql \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-spring-petclinic + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-spring-petclinic.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + - name: mariadb + container: + image: >- + quay.io/eclipse/che--mariadb:10.7.1-5a8009369ee57c85b6f4a08406147bd9c505cde6b8250d16a27d2a5febfdead7 + memoryLimit: 300Mi + endpoints: + - exposure: none + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MARIADB_USER + value: petclinic + - name: MARIADB_PASSWORD + value: petclinic + - name: MARIADB_DATABASE + value: petclinic + - name: MARIADB_ALLOW_EMPTY_ROOT_PASSWORD + value: allow + - name: PS1 + value: $(echo ${0}) $ + volumeMounts: + - name: mysqldata + path: /var/lib/mysql + - name: mysqldata + volume: + size: 256Mi + commands: + - id: prepare-database + exec: + component: mariadb + workingDir: ${PROJECT_SOURCE} + commandLine: > + mysql -u root < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/user.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/schema.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/data.sql && \ + + echo "\e[32mDone.\e[0m Database petclinic was configured" + group: + kind: run + isDefault: true + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-with-hsqldb + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + - id: run-with-mysql + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles=mysql \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-spring-petclinic + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-spring-petclinic.zip' + contributions: + - name: editor + kubernetes: + name: che-code-spring-petclinic diff --git a/7.80.0/devfiles/java-web-spring/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/java-web-spring/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..018158f51 --- /dev/null +++ b/7.80.0/devfiles/java-web-spring/devworkspace-che-idea-next.yaml @@ -0,0 +1,319 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-spring-petclinic +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: spring-petclinic + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: spring-petclinic + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + - name: mariadb + container: + image: >- + quay.io/eclipse/che--mariadb:10.7.1-5a8009369ee57c85b6f4a08406147bd9c505cde6b8250d16a27d2a5febfdead7 + memoryLimit: 300Mi + endpoints: + - exposure: none + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MARIADB_USER + value: petclinic + - name: MARIADB_PASSWORD + value: petclinic + - name: MARIADB_DATABASE + value: petclinic + - name: MARIADB_ALLOW_EMPTY_ROOT_PASSWORD + value: allow + - name: PS1 + value: $(echo ${0}) $ + volumeMounts: + - name: mysqldata + path: /var/lib/mysql + - name: mysqldata + volume: + size: 256Mi + commands: + - id: prepare-database + exec: + component: mariadb + workingDir: ${PROJECT_SOURCE} + commandLine: > + mysql -u root < ${PROJECT_SOURCE}/src/main/resources/db/mysql/user.sql + && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/schema.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/data.sql && \ + + echo "\e[32mDone.\e[0m Database petclinic was configured" + group: + kind: run + isDefault: true + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-with-hsqldb + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + - id: run-with-mysql + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles=mysql \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-spring-petclinic + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-spring-petclinic.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 3Gi + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: m2 + path: /home/user/.m2 + - name: m2 + volume: + size: 1G + - name: mariadb + container: + image: >- + quay.io/eclipse/che--mariadb:10.7.1-5a8009369ee57c85b6f4a08406147bd9c505cde6b8250d16a27d2a5febfdead7 + memoryLimit: 300Mi + endpoints: + - exposure: none + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MARIADB_USER + value: petclinic + - name: MARIADB_PASSWORD + value: petclinic + - name: MARIADB_DATABASE + value: petclinic + - name: MARIADB_ALLOW_EMPTY_ROOT_PASSWORD + value: allow + - name: PS1 + value: $(echo ${0}) $ + volumeMounts: + - name: mysqldata + path: /var/lib/mysql + - name: mysqldata + volume: + size: 256Mi + commands: + - id: prepare-database + exec: + component: mariadb + workingDir: ${PROJECT_SOURCE} + commandLine: > + mysql -u root < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/user.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/schema.sql && \ + + mysql -u root petclinic < + ${PROJECT_SOURCE}/src/main/resources/db/mysql/data.sql && \ + + echo "\e[32mDone.\e[0m Database petclinic was configured" + group: + kind: run + isDefault: true + - id: maven-build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: mvn clean install + group: + kind: build + isDefault: true + - id: run-with-hsqldb + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + - id: run-with-mysql + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: > + mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles=mysql \ + + -Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y' + group: + kind: run + isDefault: true + projects: + - name: java-spring-petclinic + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/java-spring-petclinic.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-spring-petclinic diff --git a/7.80.0/devfiles/java-web-spring/meta.yaml b/7.80.0/devfiles/java-web-spring/meta.yaml new file mode 100644 index 000000000..f2cc80786 --- /dev/null +++ b/7.80.0/devfiles/java-web-spring/meta.yaml @@ -0,0 +1,15 @@ +displayName: Java Spring Boot +description: Java stack with Spring Boot Petclinic demo application +tags: + - Community + - Java + - OpenJDK + - Maven + - Spring Boot +icon: /images/springboot.svg +links: + v2: https://github.com/che-samples/java-spring-petclinic/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/java-web-spring/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/java-web-spring/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/java-web-spring/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/nodejs-angular/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/nodejs-angular/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..1f20c5771 --- /dev/null +++ b/7.80.0/devfiles/nodejs-angular/devworkspace-che-code-insiders.yaml @@ -0,0 +1,184 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-nodejs-angular +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-angular + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-angular + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: angular + protocol: https + targetPort: 4200 + memoryLimit: 2G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + - id: start + exec: + label: Start application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + NODE_OPTIONS=--openssl-legacy-provider yarn run start --host 0.0.0.0 + --disableHostCheck true + group: + kind: run + projects: + - name: nodejs-angular + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-angular.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: angular + protocol: https + targetPort: 4200 + memoryLimit: 2G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + - id: start + exec: + label: Start application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + NODE_OPTIONS=--openssl-legacy-provider yarn run start --host 0.0.0.0 + --disableHostCheck true + group: + kind: run + projects: + - name: nodejs-angular + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-angular.zip' + contributions: + - name: editor + kubernetes: + name: che-code-nodejs-angular diff --git a/7.80.0/devfiles/nodejs-angular/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/nodejs-angular/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..ac077dc55 --- /dev/null +++ b/7.80.0/devfiles/nodejs-angular/devworkspace-che-code-latest.yaml @@ -0,0 +1,185 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-nodejs-angular +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-angular + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-angular + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: angular + protocol: https + targetPort: 4200 + memoryLimit: 2G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + - id: start + exec: + label: Start application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + NODE_OPTIONS=--openssl-legacy-provider yarn run start --host 0.0.0.0 + --disableHostCheck true + group: + kind: run + projects: + - name: nodejs-angular + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-angular.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: angular + protocol: https + targetPort: 4200 + memoryLimit: 2G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + - id: start + exec: + label: Start application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + NODE_OPTIONS=--openssl-legacy-provider yarn run start --host 0.0.0.0 + --disableHostCheck true + group: + kind: run + projects: + - name: nodejs-angular + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-angular.zip' + contributions: + - name: editor + kubernetes: + name: che-code-nodejs-angular diff --git a/7.80.0/devfiles/nodejs-angular/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/nodejs-angular/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..5b5fc1b56 --- /dev/null +++ b/7.80.0/devfiles/nodejs-angular/devworkspace-che-idea-next.yaml @@ -0,0 +1,203 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-nodejs-angular +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-angular + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-angular + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: angular + protocol: https + targetPort: 4200 + memoryLimit: 2G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + - id: start + exec: + label: Start application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + NODE_OPTIONS=--openssl-legacy-provider yarn run start --host 0.0.0.0 + --disableHostCheck true + group: + kind: run + projects: + - name: nodejs-angular + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-angular.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: angular + protocol: https + targetPort: 4200 + memoryLimit: 2G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + - id: build + exec: + label: Build application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + - id: start + exec: + label: Start application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + NODE_OPTIONS=--openssl-legacy-provider yarn run start --host 0.0.0.0 + --disableHostCheck true + group: + kind: run + projects: + - name: nodejs-angular + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-angular.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-nodejs-angular diff --git a/7.80.0/devfiles/nodejs-angular/meta.yaml b/7.80.0/devfiles/nodejs-angular/meta.yaml new file mode 100644 index 000000000..4fdab580f --- /dev/null +++ b/7.80.0/devfiles/nodejs-angular/meta.yaml @@ -0,0 +1,14 @@ +displayName: Node.js Angular Web Application +description: Stack for developing Node.js Angular Web Application +tags: + - Community + - Node.js + - Angular + - Alpine +icon: /images/angular.svg +links: + v2: https://github.com/che-samples/nodejs-angular/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/nodejs-angular/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/nodejs-angular/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/nodejs-angular/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/nodejs-mongo/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/nodejs-mongo/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..e51edc0d6 --- /dev/null +++ b/7.80.0/devfiles/nodejs-mongo/devworkspace-che-code-insiders.yaml @@ -0,0 +1,212 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-nodejs-mongodb +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-mongodb + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-mongodb + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: SECRET + value: 220fd770-c028-480d-8f95-f84353c7d55a + - name: NODE_ENV + value: production + endpoints: + - exposure: public + name: nodejs + targetPort: 8080 + protocol: https + memoryLimit: 1G + mountSources: true + - name: mongo + container: + image: >- + quay.io/eclipse/che--centos--mongodb-36-centos7:latest-a915db7beca87198fcd7860086989fe8a327a1a4f6508025b64ab28fcc7423b2 + env: + - name: MONGODB_USER + value: user + - name: MONGODB_PASSWORD + value: password + - name: MONGODB_DATABASE + value: guestbook + - name: MONGODB_ADMIN_PASSWORD + value: password + endpoints: + - name: mongodb + exposure: internal + targetPort: 27017 + attributes: + discoverable: 'true' + memoryLimit: 512Mi + mountSources: true + volumeMounts: + - name: mongo-storage + path: /var/lib/mongodb/data + - name: mongo-storage + volume: + size: 256Mi + commands: + - id: run-application + exec: + label: Run the application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install && node --inspect=9229 app.js + group: + kind: run + projects: + - name: nodejs-mongodb-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-mongodb-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: SECRET + value: 220fd770-c028-480d-8f95-f84353c7d55a + - name: NODE_ENV + value: production + endpoints: + - exposure: public + name: nodejs + targetPort: 8080 + protocol: https + memoryLimit: 1G + mountSources: true + - name: mongo + container: + image: >- + quay.io/eclipse/che--centos--mongodb-36-centos7:latest-a915db7beca87198fcd7860086989fe8a327a1a4f6508025b64ab28fcc7423b2 + env: + - name: MONGODB_USER + value: user + - name: MONGODB_PASSWORD + value: password + - name: MONGODB_DATABASE + value: guestbook + - name: MONGODB_ADMIN_PASSWORD + value: password + endpoints: + - name: mongodb + exposure: internal + targetPort: 27017 + attributes: + discoverable: 'true' + memoryLimit: 512Mi + mountSources: true + volumeMounts: + - name: mongo-storage + path: /var/lib/mongodb/data + - name: mongo-storage + volume: + size: 256Mi + commands: + - id: run-application + exec: + label: Run the application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install && node --inspect=9229 app.js + group: + kind: run + projects: + - name: nodejs-mongodb-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-mongodb-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-code-nodejs-mongodb diff --git a/7.80.0/devfiles/nodejs-mongo/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/nodejs-mongo/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..f93d94d32 --- /dev/null +++ b/7.80.0/devfiles/nodejs-mongo/devworkspace-che-code-latest.yaml @@ -0,0 +1,213 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-nodejs-mongodb +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-mongodb + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-mongodb + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: SECRET + value: 220fd770-c028-480d-8f95-f84353c7d55a + - name: NODE_ENV + value: production + endpoints: + - exposure: public + name: nodejs + targetPort: 8080 + protocol: https + memoryLimit: 1G + mountSources: true + - name: mongo + container: + image: >- + quay.io/eclipse/che--centos--mongodb-36-centos7:latest-a915db7beca87198fcd7860086989fe8a327a1a4f6508025b64ab28fcc7423b2 + env: + - name: MONGODB_USER + value: user + - name: MONGODB_PASSWORD + value: password + - name: MONGODB_DATABASE + value: guestbook + - name: MONGODB_ADMIN_PASSWORD + value: password + endpoints: + - name: mongodb + exposure: internal + targetPort: 27017 + attributes: + discoverable: 'true' + memoryLimit: 512Mi + mountSources: true + volumeMounts: + - name: mongo-storage + path: /var/lib/mongodb/data + - name: mongo-storage + volume: + size: 256Mi + commands: + - id: run-application + exec: + label: Run the application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install && node --inspect=9229 app.js + group: + kind: run + projects: + - name: nodejs-mongodb-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-mongodb-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: SECRET + value: 220fd770-c028-480d-8f95-f84353c7d55a + - name: NODE_ENV + value: production + endpoints: + - exposure: public + name: nodejs + targetPort: 8080 + protocol: https + memoryLimit: 1G + mountSources: true + - name: mongo + container: + image: >- + quay.io/eclipse/che--centos--mongodb-36-centos7:latest-a915db7beca87198fcd7860086989fe8a327a1a4f6508025b64ab28fcc7423b2 + env: + - name: MONGODB_USER + value: user + - name: MONGODB_PASSWORD + value: password + - name: MONGODB_DATABASE + value: guestbook + - name: MONGODB_ADMIN_PASSWORD + value: password + endpoints: + - name: mongodb + exposure: internal + targetPort: 27017 + attributes: + discoverable: 'true' + memoryLimit: 512Mi + mountSources: true + volumeMounts: + - name: mongo-storage + path: /var/lib/mongodb/data + - name: mongo-storage + volume: + size: 256Mi + commands: + - id: run-application + exec: + label: Run the application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install && node --inspect=9229 app.js + group: + kind: run + projects: + - name: nodejs-mongodb-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-mongodb-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-code-nodejs-mongodb diff --git a/7.80.0/devfiles/nodejs-mongo/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/nodejs-mongo/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..48369646b --- /dev/null +++ b/7.80.0/devfiles/nodejs-mongo/devworkspace-che-idea-next.yaml @@ -0,0 +1,231 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-nodejs-mongodb +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-mongodb + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-mongodb + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: SECRET + value: 220fd770-c028-480d-8f95-f84353c7d55a + - name: NODE_ENV + value: production + endpoints: + - exposure: public + name: nodejs + targetPort: 8080 + protocol: https + memoryLimit: 1G + mountSources: true + - name: mongo + container: + image: >- + quay.io/eclipse/che--centos--mongodb-36-centos7:latest-a915db7beca87198fcd7860086989fe8a327a1a4f6508025b64ab28fcc7423b2 + env: + - name: MONGODB_USER + value: user + - name: MONGODB_PASSWORD + value: password + - name: MONGODB_DATABASE + value: guestbook + - name: MONGODB_ADMIN_PASSWORD + value: password + endpoints: + - name: mongodb + exposure: internal + targetPort: 27017 + attributes: + discoverable: 'true' + memoryLimit: 512Mi + mountSources: true + volumeMounts: + - name: mongo-storage + path: /var/lib/mongodb/data + - name: mongo-storage + volume: + size: 256Mi + commands: + - id: run-application + exec: + label: Run the application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install && node --inspect=9229 app.js + group: + kind: run + projects: + - name: nodejs-mongodb-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-mongodb-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: SECRET + value: 220fd770-c028-480d-8f95-f84353c7d55a + - name: NODE_ENV + value: production + endpoints: + - exposure: public + name: nodejs + targetPort: 8080 + protocol: https + memoryLimit: 1G + mountSources: true + - name: mongo + container: + image: >- + quay.io/eclipse/che--centos--mongodb-36-centos7:latest-a915db7beca87198fcd7860086989fe8a327a1a4f6508025b64ab28fcc7423b2 + env: + - name: MONGODB_USER + value: user + - name: MONGODB_PASSWORD + value: password + - name: MONGODB_DATABASE + value: guestbook + - name: MONGODB_ADMIN_PASSWORD + value: password + endpoints: + - name: mongodb + exposure: internal + targetPort: 27017 + attributes: + discoverable: 'true' + memoryLimit: 512Mi + mountSources: true + volumeMounts: + - name: mongo-storage + path: /var/lib/mongodb/data + - name: mongo-storage + volume: + size: 256Mi + commands: + - id: run-application + exec: + label: Run the application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install && node --inspect=9229 app.js + group: + kind: run + projects: + - name: nodejs-mongodb-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-mongodb-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-nodejs-mongodb diff --git a/7.80.0/devfiles/nodejs-mongo/meta.yaml b/7.80.0/devfiles/nodejs-mongo/meta.yaml new file mode 100644 index 000000000..fbb3f37c4 --- /dev/null +++ b/7.80.0/devfiles/nodejs-mongo/meta.yaml @@ -0,0 +1,17 @@ +displayName: Node.js MongoDB Web Application +description: Stack with NodeJS 10 and MongoDB 3.4 +tags: + - Community + - Node.js + - Express + - MongoDB + - RealWorld + - ubi8 + - Centos +icon: /images/nodejs.svg +links: + v2: https://github.com/che-samples/nodejs-mongodb-sample/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/nodejs-mongo/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/nodejs-mongo/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/nodejs-mongo/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/nodejs-react/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/nodejs-react/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..af116774b --- /dev/null +++ b/7.80.0/devfiles/nodejs-react/devworkspace-che-code-insiders.yaml @@ -0,0 +1,162 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-react +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: react + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: react + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 4100 + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install + group: + kind: build + - id: start-application + exec: + label: Start the local server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm start + group: + kind: run + projects: + - name: nodejs-react-redux + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-react-redux.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 4100 + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install + group: + kind: build + - id: start-application + exec: + label: Start the local server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm start + group: + kind: run + projects: + - name: nodejs-react-redux + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-react-redux.zip' + contributions: + - name: editor + kubernetes: + name: che-code-react diff --git a/7.80.0/devfiles/nodejs-react/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/nodejs-react/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..c64060ff8 --- /dev/null +++ b/7.80.0/devfiles/nodejs-react/devworkspace-che-code-latest.yaml @@ -0,0 +1,163 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-react +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: react + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: react + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 4100 + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install + group: + kind: build + - id: start-application + exec: + label: Start the local server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm start + group: + kind: run + projects: + - name: nodejs-react-redux + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-react-redux.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 4100 + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install + group: + kind: build + - id: start-application + exec: + label: Start the local server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm start + group: + kind: run + projects: + - name: nodejs-react-redux + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-react-redux.zip' + contributions: + - name: editor + kubernetes: + name: che-code-react diff --git a/7.80.0/devfiles/nodejs-react/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/nodejs-react/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..d2ae22569 --- /dev/null +++ b/7.80.0/devfiles/nodejs-react/devworkspace-che-idea-next.yaml @@ -0,0 +1,181 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-react +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: react + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: react + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 4100 + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install + group: + kind: build + - id: start-application + exec: + label: Start the local server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm start + group: + kind: run + projects: + - name: nodejs-react-redux + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-react-redux.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1G + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 4100 + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm install + group: + kind: build + - id: start-application + exec: + label: Start the local server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: npm start + group: + kind: run + projects: + - name: nodejs-react-redux + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/nodejs-react-redux.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-react diff --git a/7.80.0/devfiles/nodejs-react/meta.yaml b/7.80.0/devfiles/nodejs-react/meta.yaml new file mode 100644 index 000000000..a750216df --- /dev/null +++ b/7.80.0/devfiles/nodejs-react/meta.yaml @@ -0,0 +1,15 @@ +displayName: Node.js React Web Application +description: Stack for developing Node.js React Web Application +tags: + - Community + - Node.js + - React + - Redux + - RealWorld +icon: /images/nodejs.svg +links: + v2: https://github.com/che-samples/nodejs-react-redux/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/nodejs-react/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/nodejs-react/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/nodejs-react/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/nodejs-yarn/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/nodejs-yarn/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..7bf2a13b0 --- /dev/null +++ b/7.80.0/devfiles/nodejs-yarn/devworkspace-che-code-insiders.yaml @@ -0,0 +1,200 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-react-web-app +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: react-web-app + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: react-web-app + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + isDefault: true + - id: build + exec: + label: Build the app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + isDefault: true + - id: run + exec: + label: Run the web app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn start + group: + kind: run + - id: test + exec: + label: Launch tests + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn test + group: + kind: test + projects: + - name: react-web-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/react-web-app.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + isDefault: true + - id: build + exec: + label: Build the app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + isDefault: true + - id: run + exec: + label: Run the web app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn start + group: + kind: run + - id: test + exec: + label: Launch tests + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn test + group: + kind: test + projects: + - name: react-web-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/react-web-app.zip' + contributions: + - name: editor + kubernetes: + name: che-code-react-web-app diff --git a/7.80.0/devfiles/nodejs-yarn/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/nodejs-yarn/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..d6d432a7d --- /dev/null +++ b/7.80.0/devfiles/nodejs-yarn/devworkspace-che-code-latest.yaml @@ -0,0 +1,201 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-react-web-app +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: react-web-app + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: react-web-app + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + isDefault: true + - id: build + exec: + label: Build the app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + isDefault: true + - id: run + exec: + label: Run the web app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn start + group: + kind: run + - id: test + exec: + label: Launch tests + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn test + group: + kind: test + projects: + - name: react-web-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/react-web-app.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + isDefault: true + - id: build + exec: + label: Build the app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + isDefault: true + - id: run + exec: + label: Run the web app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn start + group: + kind: run + - id: test + exec: + label: Launch tests + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn test + group: + kind: test + projects: + - name: react-web-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/react-web-app.zip' + contributions: + - name: editor + kubernetes: + name: che-code-react-web-app diff --git a/7.80.0/devfiles/nodejs-yarn/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/nodejs-yarn/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..70b9b7349 --- /dev/null +++ b/7.80.0/devfiles/nodejs-yarn/devworkspace-che-idea-next.yaml @@ -0,0 +1,219 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-react-web-app +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: react-web-app + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: react-web-app + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + isDefault: true + - id: build + exec: + label: Build the app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + isDefault: true + - id: run + exec: + label: Run the web app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn start + group: + kind: run + - id: test + exec: + label: Launch tests + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn test + group: + kind: test + projects: + - name: react-web-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/react-web-app.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install all required dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: yarn install + group: + kind: build + isDefault: true + - id: build + exec: + label: Build the app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn build + group: + kind: build + isDefault: true + - id: run + exec: + label: Run the web app + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn start + group: + kind: run + - id: test + exec: + label: Launch tests + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: NODE_OPTIONS=--openssl-legacy-provider yarn test + group: + kind: test + projects: + - name: react-web-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/react-web-app.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-react-web-app diff --git a/7.80.0/devfiles/nodejs-yarn/meta.yaml b/7.80.0/devfiles/nodejs-yarn/meta.yaml new file mode 100644 index 000000000..e2745900c --- /dev/null +++ b/7.80.0/devfiles/nodejs-yarn/meta.yaml @@ -0,0 +1,15 @@ +displayName: Node.js Web Application based on Yarn +description: Stack for developing Node.js Web Application based on Yarn +tags: + - Community + - Node.js + - Alpine + - Yarn + - React +icon: /images/nodejs.svg +links: + v2: https://github.com/che-samples/react-web-app/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/nodejs-yarn/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/nodejs-yarn/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/nodejs-yarn/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/nodejs/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/nodejs/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..cdc53a764 --- /dev/null +++ b/7.80.0/devfiles/nodejs/devworkspace-che-code-insiders.yaml @@ -0,0 +1,204 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-nodejs-web-app +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-web-app + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-web-app + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: npm install + group: + kind: build + isDefault: true + - id: run-application + exec: + label: Run web application + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node app.js + group: + kind: run + - id: debug + exec: + label: Run web application (debugging enabled) + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node --inspect app.js + group: + kind: debug + isDefault: true + - id: stop-application + exec: + label: Stop web application + component: tools + commandLine: >- + node_server_pids=$(pgrep -fx '.*node (--inspect )?app.js' | tr "\\n" " + ") && echo "Stopping node server with PIDs: ${node_server_pids}" && + kill -15 ${node_server_pids} &>/dev/null && echo 'Done.' + group: + kind: run + projects: + - name: web-nodejs-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/web-nodejs-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: npm install + group: + kind: build + isDefault: true + - id: run-application + exec: + label: Run web application + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node app.js + group: + kind: run + - id: debug + exec: + label: Run web application (debugging enabled) + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node --inspect app.js + group: + kind: debug + isDefault: true + - id: stop-application + exec: + label: Stop web application + component: tools + commandLine: >- + node_server_pids=$(pgrep -fx '.*node (--inspect )?app.js' | tr "\\n" + " ") && echo "Stopping node server with PIDs: ${node_server_pids}" + && kill -15 ${node_server_pids} &>/dev/null && echo 'Done.' + group: + kind: run + projects: + - name: web-nodejs-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/web-nodejs-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-code-nodejs-web-app diff --git a/7.80.0/devfiles/nodejs/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/nodejs/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..3dac81629 --- /dev/null +++ b/7.80.0/devfiles/nodejs/devworkspace-che-code-latest.yaml @@ -0,0 +1,205 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-nodejs-web-app +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-web-app + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-web-app + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: npm install + group: + kind: build + isDefault: true + - id: run-application + exec: + label: Run web application + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node app.js + group: + kind: run + - id: debug + exec: + label: Run web application (debugging enabled) + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node --inspect app.js + group: + kind: debug + isDefault: true + - id: stop-application + exec: + label: Stop web application + component: tools + commandLine: >- + node_server_pids=$(pgrep -fx '.*node (--inspect )?app.js' | tr "\\n" " + ") && echo "Stopping node server with PIDs: ${node_server_pids}" && + kill -15 ${node_server_pids} &>/dev/null && echo 'Done.' + group: + kind: run + projects: + - name: web-nodejs-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/web-nodejs-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: npm install + group: + kind: build + isDefault: true + - id: run-application + exec: + label: Run web application + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node app.js + group: + kind: run + - id: debug + exec: + label: Run web application (debugging enabled) + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node --inspect app.js + group: + kind: debug + isDefault: true + - id: stop-application + exec: + label: Stop web application + component: tools + commandLine: >- + node_server_pids=$(pgrep -fx '.*node (--inspect )?app.js' | tr "\\n" + " ") && echo "Stopping node server with PIDs: ${node_server_pids}" + && kill -15 ${node_server_pids} &>/dev/null && echo 'Done.' + group: + kind: run + projects: + - name: web-nodejs-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/web-nodejs-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-code-nodejs-web-app diff --git a/7.80.0/devfiles/nodejs/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/nodejs/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..1d6d1ad24 --- /dev/null +++ b/7.80.0/devfiles/nodejs/devworkspace-che-idea-next.yaml @@ -0,0 +1,223 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-nodejs-web-app +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: nodejs-web-app + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: nodejs-web-app + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: npm install + group: + kind: build + isDefault: true + - id: run-application + exec: + label: Run web application + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node app.js + group: + kind: run + - id: debug + exec: + label: Run web application (debugging enabled) + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node --inspect app.js + group: + kind: debug + isDefault: true + - id: stop-application + exec: + label: Stop web application + component: tools + commandLine: >- + node_server_pids=$(pgrep -fx '.*node (--inspect )?app.js' | tr "\\n" " + ") && echo "Stopping node server with PIDs: ${node_server_pids}" && + kill -15 ${node_server_pids} &>/dev/null && echo 'Done.' + group: + kind: run + projects: + - name: web-nodejs-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/web-nodejs-sample.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: nodejs + protocol: https + targetPort: 3000 + memoryLimit: 1G + mountSources: true + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: npm install + group: + kind: build + isDefault: true + - id: run-application + exec: + label: Run web application + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node app.js + group: + kind: run + - id: debug + exec: + label: Run web application (debugging enabled) + component: tools + workingDir: ${PROJECT_SOURCE}/app + commandLine: node --inspect app.js + group: + kind: debug + isDefault: true + - id: stop-application + exec: + label: Stop web application + component: tools + commandLine: >- + node_server_pids=$(pgrep -fx '.*node (--inspect )?app.js' | tr "\\n" + " ") && echo "Stopping node server with PIDs: ${node_server_pids}" + && kill -15 ${node_server_pids} &>/dev/null && echo 'Done.' + group: + kind: run + projects: + - name: web-nodejs-sample + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/web-nodejs-sample.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-nodejs-web-app diff --git a/7.80.0/devfiles/nodejs/meta.yaml b/7.80.0/devfiles/nodejs/meta.yaml new file mode 100644 index 000000000..40e506c0d --- /dev/null +++ b/7.80.0/devfiles/nodejs/meta.yaml @@ -0,0 +1,14 @@ +displayName: Node.js Express Web Application +description: Stack with Node.js 10 +tags: + - Community + - Node.js + - Express + - ubi8 +icon: /images/nodejs.svg +links: + v2: https://github.com/che-samples/web-nodejs-sample/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/nodejs/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/nodejs/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/nodejs/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/php-symfony/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/php-symfony/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..e28dfe7fe --- /dev/null +++ b/7.80.0/devfiles/php-symfony/devworkspace-che-code-insiders.yaml @@ -0,0 +1,246 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-php-symfony +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: php-symfony + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: php-symfony + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: symfony + protocol: https + targetPort: 8000 + memoryLimit: 2G + mountSources: true + volumeMounts: + - name: composer + path: /home/user/.composer + - name: symfony + path: /home/user/.symfony5 + - name: composer + volume: + size: 512Mi + - name: symfony + volume: + size: 512Mi + - name: mysql + container: + image: >- + quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764 + memoryLimit: 300Mi + endpoints: + - exposure: internal + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MYSQL_USER + value: db_user + - name: MYSQL_PASSWORD + value: db_password + - name: MYSQL_DATABASE + value: db_name + - name: MYSQL_ROOT_PASSWORD + value: db_password + mountSources: false + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + composer install && wget https://get.symfony.com/cli/installer -O - | + bash + group: + kind: build + - id: start-web-server + exec: + label: Start Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:start + group: + kind: run + - id: stop-web-server + exec: + label: Stop Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:stop + group: + kind: run + projects: + - name: php-symfony + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/php-symfony.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: symfony + protocol: https + targetPort: 8000 + memoryLimit: 2G + mountSources: true + volumeMounts: + - name: composer + path: /home/user/.composer + - name: symfony + path: /home/user/.symfony5 + - name: composer + volume: + size: 512Mi + - name: symfony + volume: + size: 512Mi + - name: mysql + container: + image: >- + quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764 + memoryLimit: 300Mi + endpoints: + - exposure: internal + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MYSQL_USER + value: db_user + - name: MYSQL_PASSWORD + value: db_password + - name: MYSQL_DATABASE + value: db_name + - name: MYSQL_ROOT_PASSWORD + value: db_password + mountSources: false + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + composer install && wget https://get.symfony.com/cli/installer -O - + | bash + group: + kind: build + - id: start-web-server + exec: + label: Start Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:start + group: + kind: run + - id: stop-web-server + exec: + label: Stop Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:stop + group: + kind: run + projects: + - name: php-symfony + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/php-symfony.zip' + contributions: + - name: editor + kubernetes: + name: che-code-php-symfony diff --git a/7.80.0/devfiles/php-symfony/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/php-symfony/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..6af7e7c92 --- /dev/null +++ b/7.80.0/devfiles/php-symfony/devworkspace-che-code-latest.yaml @@ -0,0 +1,247 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-php-symfony +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: php-symfony + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: php-symfony + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: symfony + protocol: https + targetPort: 8000 + memoryLimit: 2G + mountSources: true + volumeMounts: + - name: composer + path: /home/user/.composer + - name: symfony + path: /home/user/.symfony5 + - name: composer + volume: + size: 512Mi + - name: symfony + volume: + size: 512Mi + - name: mysql + container: + image: >- + quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764 + memoryLimit: 300Mi + endpoints: + - exposure: internal + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MYSQL_USER + value: db_user + - name: MYSQL_PASSWORD + value: db_password + - name: MYSQL_DATABASE + value: db_name + - name: MYSQL_ROOT_PASSWORD + value: db_password + mountSources: false + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + composer install && wget https://get.symfony.com/cli/installer -O - | + bash + group: + kind: build + - id: start-web-server + exec: + label: Start Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:start + group: + kind: run + - id: stop-web-server + exec: + label: Stop Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:stop + group: + kind: run + projects: + - name: php-symfony + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/php-symfony.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: symfony + protocol: https + targetPort: 8000 + memoryLimit: 2G + mountSources: true + volumeMounts: + - name: composer + path: /home/user/.composer + - name: symfony + path: /home/user/.symfony5 + - name: composer + volume: + size: 512Mi + - name: symfony + volume: + size: 512Mi + - name: mysql + container: + image: >- + quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764 + memoryLimit: 300Mi + endpoints: + - exposure: internal + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MYSQL_USER + value: db_user + - name: MYSQL_PASSWORD + value: db_password + - name: MYSQL_DATABASE + value: db_name + - name: MYSQL_ROOT_PASSWORD + value: db_password + mountSources: false + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + composer install && wget https://get.symfony.com/cli/installer -O - + | bash + group: + kind: build + - id: start-web-server + exec: + label: Start Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:start + group: + kind: run + - id: stop-web-server + exec: + label: Stop Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:stop + group: + kind: run + projects: + - name: php-symfony + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/php-symfony.zip' + contributions: + - name: editor + kubernetes: + name: che-code-php-symfony diff --git a/7.80.0/devfiles/php-symfony/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/php-symfony/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..941f70b4e --- /dev/null +++ b/7.80.0/devfiles/php-symfony/devworkspace-che-idea-next.yaml @@ -0,0 +1,265 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-php-symfony +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: php-symfony + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: php-symfony + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: symfony + protocol: https + targetPort: 8000 + memoryLimit: 2G + mountSources: true + volumeMounts: + - name: composer + path: /home/user/.composer + - name: symfony + path: /home/user/.symfony5 + - name: composer + volume: + size: 512Mi + - name: symfony + volume: + size: 512Mi + - name: mysql + container: + image: >- + quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764 + memoryLimit: 300Mi + endpoints: + - exposure: internal + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MYSQL_USER + value: db_user + - name: MYSQL_PASSWORD + value: db_password + - name: MYSQL_DATABASE + value: db_name + - name: MYSQL_ROOT_PASSWORD + value: db_password + mountSources: false + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + composer install && wget https://get.symfony.com/cli/installer -O - | + bash + group: + kind: build + - id: start-web-server + exec: + label: Start Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:start + group: + kind: run + - id: stop-web-server + exec: + label: Stop Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:stop + group: + kind: run + projects: + - name: php-symfony + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/php-symfony.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: symfony + protocol: https + targetPort: 8000 + memoryLimit: 2G + mountSources: true + volumeMounts: + - name: composer + path: /home/user/.composer + - name: symfony + path: /home/user/.symfony5 + - name: composer + volume: + size: 512Mi + - name: symfony + volume: + size: 512Mi + - name: mysql + container: + image: >- + quay.io/eclipse/che--centos--mysql-57-centos7:latest-e08ee4d43b7356607685b69bde6335e27cf20c020f345b6c6c59400183882764 + memoryLimit: 300Mi + endpoints: + - exposure: internal + name: db + protocol: tcp + targetPort: 3306 + env: + - name: MYSQL_USER + value: db_user + - name: MYSQL_PASSWORD + value: db_password + - name: MYSQL_DATABASE + value: db_name + - name: MYSQL_ROOT_PASSWORD + value: db_password + mountSources: false + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + composer install && wget https://get.symfony.com/cli/installer -O - + | bash + group: + kind: build + - id: start-web-server + exec: + label: Start Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:start + group: + kind: run + - id: stop-web-server + exec: + label: Stop Symfony Web Server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: $HOME/.symfony5/bin/symfony server:stop + group: + kind: run + projects: + - name: php-symfony + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/php-symfony.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-php-symfony diff --git a/7.80.0/devfiles/php-symfony/meta.yaml b/7.80.0/devfiles/php-symfony/meta.yaml new file mode 100644 index 000000000..13f1f93b8 --- /dev/null +++ b/7.80.0/devfiles/php-symfony/meta.yaml @@ -0,0 +1,17 @@ +displayName: PHP Symfony +description: PHP Stack with Symfony Demo Application https://symfony.com/ +tags: + - Community + - PHP + - Apache + - MySQL + - Symfony + - Debian + - Centos +icon: /images/php.svg +links: + v2: https://github.com/che-samples/php-symfony/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/php-symfony/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/php-symfony/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/php-symfony/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/python-django/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/python-django/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..1228bf121 --- /dev/null +++ b/7.80.0/devfiles/python-django/devworkspace-che-code-insiders.yaml @@ -0,0 +1,222 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-python-django +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: python-django + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: python-django + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: django + targetPort: 7000 + protocol: https + path: /api + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + python3 -m venv .venv && . .venv/bin/activate && pip3 install -r + requirements.txt && pip3 install ptvsd + group: + kind: build + - id: migrate + exec: + label: Migrate + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: . .venv/bin/activate && python3 manage.py migrate + group: + kind: build + - id: run + exec: + label: Run the server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=False && python3 manage.py + runserver 0.0.0.0:7000 + group: + kind: run + - id: debug + exec: + label: Run the server in debug mode + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=True && python3 manage.py + runserver 0.0.0.0:7000 --noreload --nothreading + group: + kind: debug + projects: + - name: django-realworld-example-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/django-realworld-example-app.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: django + targetPort: 7000 + protocol: https + path: /api + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + python3 -m venv .venv && . .venv/bin/activate && pip3 install -r + requirements.txt && pip3 install ptvsd + group: + kind: build + - id: migrate + exec: + label: Migrate + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: . .venv/bin/activate && python3 manage.py migrate + group: + kind: build + - id: run + exec: + label: Run the server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=False && python3 manage.py + runserver 0.0.0.0:7000 + group: + kind: run + - id: debug + exec: + label: Run the server in debug mode + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=True && python3 manage.py + runserver 0.0.0.0:7000 --noreload --nothreading + group: + kind: debug + projects: + - name: django-realworld-example-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/django-realworld-example-app.zip' + contributions: + - name: editor + kubernetes: + name: che-code-python-django diff --git a/7.80.0/devfiles/python-django/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/python-django/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..6556716d3 --- /dev/null +++ b/7.80.0/devfiles/python-django/devworkspace-che-code-latest.yaml @@ -0,0 +1,223 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-python-django +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: python-django + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: python-django + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: django + targetPort: 7000 + protocol: https + path: /api + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + python3 -m venv .venv && . .venv/bin/activate && pip3 install -r + requirements.txt && pip3 install ptvsd + group: + kind: build + - id: migrate + exec: + label: Migrate + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: . .venv/bin/activate && python3 manage.py migrate + group: + kind: build + - id: run + exec: + label: Run the server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=False && python3 manage.py + runserver 0.0.0.0:7000 + group: + kind: run + - id: debug + exec: + label: Run the server in debug mode + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=True && python3 manage.py + runserver 0.0.0.0:7000 --noreload --nothreading + group: + kind: debug + projects: + - name: django-realworld-example-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/django-realworld-example-app.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: django + targetPort: 7000 + protocol: https + path: /api + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + python3 -m venv .venv && . .venv/bin/activate && pip3 install -r + requirements.txt && pip3 install ptvsd + group: + kind: build + - id: migrate + exec: + label: Migrate + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: . .venv/bin/activate && python3 manage.py migrate + group: + kind: build + - id: run + exec: + label: Run the server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=False && python3 manage.py + runserver 0.0.0.0:7000 + group: + kind: run + - id: debug + exec: + label: Run the server in debug mode + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=True && python3 manage.py + runserver 0.0.0.0:7000 --noreload --nothreading + group: + kind: debug + projects: + - name: django-realworld-example-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/django-realworld-example-app.zip' + contributions: + - name: editor + kubernetes: + name: che-code-python-django diff --git a/7.80.0/devfiles/python-django/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/python-django/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..9d03dcf2e --- /dev/null +++ b/7.80.0/devfiles/python-django/devworkspace-che-idea-next.yaml @@ -0,0 +1,241 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-python-django +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: python-django + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: python-django + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: django + targetPort: 7000 + protocol: https + path: /api + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + python3 -m venv .venv && . .venv/bin/activate && pip3 install -r + requirements.txt && pip3 install ptvsd + group: + kind: build + - id: migrate + exec: + label: Migrate + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: . .venv/bin/activate && python3 manage.py migrate + group: + kind: build + - id: run + exec: + label: Run the server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=False && python3 manage.py + runserver 0.0.0.0:7000 + group: + kind: run + - id: debug + exec: + label: Run the server in debug mode + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=True && python3 manage.py + runserver 0.0.0.0:7000 --noreload --nothreading + group: + kind: debug + projects: + - name: django-realworld-example-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/django-realworld-example-app.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + endpoints: + - exposure: public + name: django + targetPort: 7000 + protocol: https + path: /api + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: install-dependencies + exec: + label: Install dependencies + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + python3 -m venv .venv && . .venv/bin/activate && pip3 install -r + requirements.txt && pip3 install ptvsd + group: + kind: build + - id: migrate + exec: + label: Migrate + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: . .venv/bin/activate && python3 manage.py migrate + group: + kind: build + - id: run + exec: + label: Run the server + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=False && python3 manage.py + runserver 0.0.0.0:7000 + group: + kind: run + - id: debug + exec: + label: Run the server in debug mode + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: >- + . .venv/bin/activate && export DEBUG_MODE=True && python3 manage.py + runserver 0.0.0.0:7000 --noreload --nothreading + group: + kind: debug + projects: + - name: django-realworld-example-app + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/django-realworld-example-app.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-python-django diff --git a/7.80.0/devfiles/python-django/meta.yaml b/7.80.0/devfiles/python-django/meta.yaml new file mode 100644 index 000000000..b2b0a0cf3 --- /dev/null +++ b/7.80.0/devfiles/python-django/meta.yaml @@ -0,0 +1,14 @@ +displayName: Python Django +description: Python Stack with Python 3.8 and Django application +tags: + - Community + - Centos + - Python + - pip +icon: /images/python.svg +links: + v2: https://github.com/che-samples/django-realworld-example-app/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/python-django/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/python-django/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/python-django/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/python/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/python/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..c6d2d2be6 --- /dev/null +++ b/7.80.0/devfiles/python/devworkspace-che-code-insiders.yaml @@ -0,0 +1,150 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-python-hello-world +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: python-hello-world + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: python-hello-world + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: run-application + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: python3 hello-world.py + group: + kind: run + projects: + - name: python-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/python-hello-world.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: run-application + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: python3 hello-world.py + group: + kind: run + projects: + - name: python-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/python-hello-world.zip' + contributions: + - name: editor + kubernetes: + name: che-code-python-hello-world diff --git a/7.80.0/devfiles/python/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/python/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..7ce1ae2cb --- /dev/null +++ b/7.80.0/devfiles/python/devworkspace-che-code-latest.yaml @@ -0,0 +1,151 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-python-hello-world +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: python-hello-world + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: python-hello-world + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: run-application + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: python3 hello-world.py + group: + kind: run + projects: + - name: python-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/python-hello-world.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: run-application + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: python3 hello-world.py + group: + kind: run + projects: + - name: python-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/python-hello-world.zip' + contributions: + - name: editor + kubernetes: + name: che-code-python-hello-world diff --git a/7.80.0/devfiles/python/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/python/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..176bd047f --- /dev/null +++ b/7.80.0/devfiles/python/devworkspace-che-idea-next.yaml @@ -0,0 +1,169 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-python-hello-world +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: python-hello-world + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: python-hello-world + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: run-application + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: python3 hello-world.py + group: + kind: run + projects: + - name: python-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/python-hello-world.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + volumeMounts: + - name: venv + path: /home/user/.venv + memoryLimit: 512Mi + mountSources: true + - name: venv + volume: + size: 1G + commands: + - id: run-application + exec: + label: Run application + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: python3 hello-world.py + group: + kind: run + projects: + - name: python-hello-world + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/python-hello-world.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-python-hello-world diff --git a/7.80.0/devfiles/python/meta.yaml b/7.80.0/devfiles/python/meta.yaml new file mode 100644 index 000000000..1f885509e --- /dev/null +++ b/7.80.0/devfiles/python/meta.yaml @@ -0,0 +1,14 @@ +displayName: Python +description: Python Stack with Python 3.8 +tags: + - Community + - Centos + - Python + - pip +icon: /images/python.svg +links: + v2: https://github.com/che-samples/python-hello-world/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/python/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/python/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/python/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/quarkus/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/quarkus/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..384362037 --- /dev/null +++ b/7.80.0/devfiles/quarkus/devworkspace-che-code-insiders.yaml @@ -0,0 +1,250 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-quarkus-quickstart +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: quarkus-quickstart + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: quarkus-quickstart + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: QUARKUS_HTTP_HOST + value: 0.0.0.0 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: hello-greeting-endpoint + protocol: https + targetPort: 8080 + path: /hello/greeting/che-user + volumeMounts: + - name: m2 + path: /home/user/.m2 + memoryLimit: 4.7G + mountSources: true + - name: ubi-minimal + container: + image: registry.access.redhat.com/ubi8/ubi-minimal + command: + - tail + args: + - '-f' + - /dev/null + memoryLimit: 64M + mountSources: true + - name: m2 + volume: + size: 1G + commands: + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn package + group: + kind: build + isDefault: true + - id: package-native + exec: + label: Package Native + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: >- + mvn package -Dnative -Dmaven.test.skip + -Dquarkus.native.native-image-xmx=2G + group: + kind: build + - id: start-dev + exec: + label: Start Development mode (Hot reload + debug) + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn compile quarkus:dev + group: + kind: run + isDefault: true + - id: start-native + exec: + label: Start Native + component: ubi-minimal + workingDir: ${PROJECT_SOURCE}/getting-started/target + commandLine: ./getting-started-1.0.0-SNAPSHOT-runner + group: + kind: run + projects: + - name: quarkus-quickstarts + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/quarkus-quickstarts.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: QUARKUS_HTTP_HOST + value: 0.0.0.0 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: hello-greeting-endpoint + protocol: https + targetPort: 8080 + path: /hello/greeting/che-user + volumeMounts: + - name: m2 + path: /home/user/.m2 + memoryLimit: 4.7G + mountSources: true + - name: ubi-minimal + container: + image: registry.access.redhat.com/ubi8/ubi-minimal + command: + - tail + args: + - '-f' + - /dev/null + memoryLimit: 64M + mountSources: true + - name: m2 + volume: + size: 1G + commands: + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn package + group: + kind: build + isDefault: true + - id: package-native + exec: + label: Package Native + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: >- + mvn package -Dnative -Dmaven.test.skip + -Dquarkus.native.native-image-xmx=2G + group: + kind: build + - id: start-dev + exec: + label: Start Development mode (Hot reload + debug) + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn compile quarkus:dev + group: + kind: run + isDefault: true + - id: start-native + exec: + label: Start Native + component: ubi-minimal + workingDir: ${PROJECT_SOURCE}/getting-started/target + commandLine: ./getting-started-1.0.0-SNAPSHOT-runner + group: + kind: run + projects: + - name: quarkus-quickstarts + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/quarkus-quickstarts.zip' + contributions: + - name: editor + kubernetes: + name: che-code-quarkus-quickstart diff --git a/7.80.0/devfiles/quarkus/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/quarkus/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..393c8b90f --- /dev/null +++ b/7.80.0/devfiles/quarkus/devworkspace-che-code-latest.yaml @@ -0,0 +1,251 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-quarkus-quickstart +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: quarkus-quickstart + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: quarkus-quickstart + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: QUARKUS_HTTP_HOST + value: 0.0.0.0 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: hello-greeting-endpoint + protocol: https + targetPort: 8080 + path: /hello/greeting/che-user + volumeMounts: + - name: m2 + path: /home/user/.m2 + memoryLimit: 4.7G + mountSources: true + - name: ubi-minimal + container: + image: registry.access.redhat.com/ubi8/ubi-minimal + command: + - tail + args: + - '-f' + - /dev/null + memoryLimit: 64M + mountSources: true + - name: m2 + volume: + size: 1G + commands: + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn package + group: + kind: build + isDefault: true + - id: package-native + exec: + label: Package Native + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: >- + mvn package -Dnative -Dmaven.test.skip + -Dquarkus.native.native-image-xmx=2G + group: + kind: build + - id: start-dev + exec: + label: Start Development mode (Hot reload + debug) + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn compile quarkus:dev + group: + kind: run + isDefault: true + - id: start-native + exec: + label: Start Native + component: ubi-minimal + workingDir: ${PROJECT_SOURCE}/getting-started/target + commandLine: ./getting-started-1.0.0-SNAPSHOT-runner + group: + kind: run + projects: + - name: quarkus-quickstarts + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/quarkus-quickstarts.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: QUARKUS_HTTP_HOST + value: 0.0.0.0 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: hello-greeting-endpoint + protocol: https + targetPort: 8080 + path: /hello/greeting/che-user + volumeMounts: + - name: m2 + path: /home/user/.m2 + memoryLimit: 4.7G + mountSources: true + - name: ubi-minimal + container: + image: registry.access.redhat.com/ubi8/ubi-minimal + command: + - tail + args: + - '-f' + - /dev/null + memoryLimit: 64M + mountSources: true + - name: m2 + volume: + size: 1G + commands: + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn package + group: + kind: build + isDefault: true + - id: package-native + exec: + label: Package Native + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: >- + mvn package -Dnative -Dmaven.test.skip + -Dquarkus.native.native-image-xmx=2G + group: + kind: build + - id: start-dev + exec: + label: Start Development mode (Hot reload + debug) + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn compile quarkus:dev + group: + kind: run + isDefault: true + - id: start-native + exec: + label: Start Native + component: ubi-minimal + workingDir: ${PROJECT_SOURCE}/getting-started/target + commandLine: ./getting-started-1.0.0-SNAPSHOT-runner + group: + kind: run + projects: + - name: quarkus-quickstarts + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/quarkus-quickstarts.zip' + contributions: + - name: editor + kubernetes: + name: che-code-quarkus-quickstart diff --git a/7.80.0/devfiles/quarkus/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/quarkus/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..9c502829a --- /dev/null +++ b/7.80.0/devfiles/quarkus/devworkspace-che-idea-next.yaml @@ -0,0 +1,269 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-quarkus-quickstart +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: quarkus-quickstart + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: quarkus-quickstart + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: QUARKUS_HTTP_HOST + value: 0.0.0.0 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: hello-greeting-endpoint + protocol: https + targetPort: 8080 + path: /hello/greeting/che-user + volumeMounts: + - name: m2 + path: /home/user/.m2 + memoryLimit: 4.7G + mountSources: true + - name: ubi-minimal + container: + image: registry.access.redhat.com/ubi8/ubi-minimal + command: + - tail + args: + - '-f' + - /dev/null + memoryLimit: 64M + mountSources: true + - name: m2 + volume: + size: 1G + commands: + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn package + group: + kind: build + isDefault: true + - id: package-native + exec: + label: Package Native + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: >- + mvn package -Dnative -Dmaven.test.skip + -Dquarkus.native.native-image-xmx=2G + group: + kind: build + - id: start-dev + exec: + label: Start Development mode (Hot reload + debug) + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn compile quarkus:dev + group: + kind: run + isDefault: true + - id: start-native + exec: + label: Start Native + component: ubi-minimal + workingDir: ${PROJECT_SOURCE}/getting-started/target + commandLine: ./getting-started-1.0.0-SNAPSHOT-runner + group: + kind: run + projects: + - name: quarkus-quickstarts + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/quarkus-quickstarts.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: QUARKUS_HTTP_HOST + value: 0.0.0.0 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: hello-greeting-endpoint + protocol: https + targetPort: 8080 + path: /hello/greeting/che-user + volumeMounts: + - name: m2 + path: /home/user/.m2 + memoryLimit: 4.7G + mountSources: true + - name: ubi-minimal + container: + image: registry.access.redhat.com/ubi8/ubi-minimal + command: + - tail + args: + - '-f' + - /dev/null + memoryLimit: 64M + mountSources: true + - name: m2 + volume: + size: 1G + commands: + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn package + group: + kind: build + isDefault: true + - id: package-native + exec: + label: Package Native + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: >- + mvn package -Dnative -Dmaven.test.skip + -Dquarkus.native.native-image-xmx=2G + group: + kind: build + - id: start-dev + exec: + label: Start Development mode (Hot reload + debug) + component: tools + workingDir: ${PROJECT_SOURCE}/getting-started + commandLine: mvn compile quarkus:dev + group: + kind: run + isDefault: true + - id: start-native + exec: + label: Start Native + component: ubi-minimal + workingDir: ${PROJECT_SOURCE}/getting-started/target + commandLine: ./getting-started-1.0.0-SNAPSHOT-runner + group: + kind: run + projects: + - name: quarkus-quickstarts + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/quarkus-quickstarts.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-quarkus-quickstart diff --git a/7.80.0/devfiles/quarkus/didact.md b/7.80.0/devfiles/quarkus/didact.md new file mode 100644 index 000000000..71739b223 --- /dev/null +++ b/7.80.0/devfiles/quarkus/didact.md @@ -0,0 +1,103 @@ +
+Eclipse Che - Eclipse Next-Generation IDE + +
+ +Quarkus - Supersonic Subatomic Java + + +
+ +# Welcome your `Quarkus` Eclipse Che workspace +Congratulations! You have started a Che workspace with the Quarkus Getting started sample. You are all set to code, debug, compile and test in a production-like environment. Let’s start! + +The guide is interactive. You can click on the below links to open files or start the predefined commands. + +Powered by [Eclipse Che](https://www.eclipse.org/che/) and [VSCode Didact](https://github.com/redhat-developer/vscode-didact). + +## Quarkus-quickstarts / getting-started +This Che workspace clones a copy of the `getting-started` project from the [quarkus-quickstarts](https://github.com/quarkusio/quarkus-quickstarts.git) git repository. +The `getting-started` project is a simple Hello World JAX-RS application. Refer to the [getting-started Quarkus guide](https://quarkus.io/guides/getting-started) to know more about this application. + +## Start Quarkus in devmode +The Quarkus development mode enables hot deployment with background compilation. It also listen for a debugger on port `5005`. You can find more informations about Quarkus development mode in this guide: https://quarkus.io/guides/getting-started#development-mode. + +This workspace comes with a predefined command to start the Quarkus app in devmode. + +Run the `Start Development mode (Hot reload + debug)` command: + +- using this direct link [Start Development mode (Hot reload + debug)](didact://?commandId=workbench.action.tasks.runTask&text=Start%20Development%20mode%20%28Hot%20reload%20%2B%20debug%29) +- or from the `My Workspace` view on the right [toggle](didact://?commandId=plugin.view-container.my-workspace.toggle) +- or from the command palette `F1` > [Run task...](didact://?commandId=workbench.action.tasks.runTask) + + +Once the Quarkus server is started, the Che workspace will suggest you to open the application URL. Choose `Open in Preview` . You should see `hello che-user` displayed in the Preview panel. + + +## Open GreetingService.java to make some live changes +1. Open the file [GreetingService.java](didact://?commandId=vscode.open&projectFilePath=getting-started%2Fsrc%2Fmain%2Fjava%2Forg%2Facme%2Fgetting%2Fstarted%2FGreetingService.java&number=2). +2. You may need to wait for the Quarkus extension to be activated (see status bar). +3. In [GreetingService.java](didact://?commandId=vscode.open&projectFilePath=getting-started%2Fsrc%2Fmain%2Fjava%2Forg%2Facme%2Fgetting%2Fstarted%2FGreetingService.java&number=2) set the name in uppercase using the auto complete (`Ctrl-Space`). + ``` + public String greeting(String name) { + return "hello " + name.toUpperCase(); + } + ``` +4. From the Preview panel, refresh the page. `hello CHE-USER` should be display instead of `hello che-user`. + +## Add a breakpoint/start debugging, live change variable +Let's try to debug the application: + +1. Start the debugger by hitting `F5` or clicking [here](didact://?commandId=workbench.action.debug.start) +2. Open the file [GreetingResource.java](didact://?commandId=vscode.open&projectFilePath=getting-started%2Fsrc%2Fmain%2Fjava%2Forg%2Facme%2Fgetting%2Fstarted%2FGreetingResource.java&number=2). +3. Add a break point at line 21 + ``` + return service.greeting(name); + ``` +4. From the Preview panel, refresh the page. The debugger should stop at the breakpoint. +5. From the Debug panel [toggle](didact://?commandId=debug%3Atoggle), Select `Variables` > `Local` and the `name` variable with the value `che-user`. Right click and select `set value`. Replace `che-user` with `world`. +6. Hit `F5` to continue or click [here](didact://?commandId=workbench.action.debug.continue) +7. The preview pane should display `hello world` +8. Hit `Shift + F5` or click [here](didact://?commandId=workbench.action.debug.stop) to stop the debugger. +9. Open the bottom tab `Start Development mode (Hot reload + debug)`(the one with the quarkus logs). Hit `Ctrl + c` to stop the quarkus server. + +## Building a native executable +Quarkus applications can be compiled as a native executable to be packaged in a container. You can find more informations in this guide: https://quarkus.io/guides/building-native-image. + +Let's produce the native executable and run it with these predefined commands: +1. Produce the native application with the predefined command [Package Native](didact://?commandId=workbench.action.tasks.runTask&text=Package%20Native). The compilation speed depends on the underlining machine resources. + +2. Run native app with the predefined command [Start Native](didact://?commandId=workbench.action.tasks.runTask&text=Start%20Native). Notice how fast it was to start the native application! + +## Behind the scene: Che workspace is composed of containers +Quarkus requires Java and GraalVM (or Mandrel) to produce the native executable. + +But, wait a minute ... you have not installed anything to produce the native executable. This is because this workspace has been designed with a dedicated container to build a Quarkus application. Let's dive in. + +Open the `My Workspace` view on the right [toggle](didact://?commandId=plugin.view-container.my-workspace.toggle) and observe the containers running inside this workspace. + +- `centos-quarkus-maven` is a container providing Maven, Java and GraalVM. The `Package Native` predefined command is executed in this container. +- `ubi-minimal` is a container with the minimal dependencies to run a Quarkus native executable. It would using the same container image that will be used in a production environment. The predefined command `Start Native` is executed in this container. + +You can also have a terminal access to each of the container. + +## Eclipse Che workspaces: devfile.yaml +This workspace has been generated from a `devfile`: a Yaml file describing +- the projects to clone, +- the tools to assist you when coding your application (plugins) +- the containers to build and run your application +- some predefine commands to perform the common tasks of your project. + +You can export the devfile being used for a workspace with the command [Workspace: Save Workspace As ...](didact://?commandId=che.saveWorkspaceAs). Save the file in the `/projects` folder and open it. + +The same devfile could be reused to regenerate a clone of this workspace. It would be generated in a new, disposable and isolated workspace. Make your own customisation, copy the content and create a new workspace from it using the `Create Workspace` button in the Eclipse Che dashboard or navigation bar (yellow button at the top left). + +## Get involved +Thanks for trying Eclipse Che. + +We love to hear from users and developers. Here are the various ways to get in touch with us: +* **Support:** You can ask questions, report bugs, and request features using [GitHub issues](https://github.com/eclipse/che/issues). +* **Public Chat:** Join the public [eclipse-che](https://mattermost.eclipse.org/eclipse/channels/eclipse-che) Mattermost channel to discuss with community and contributors. +* **Twitter:** [@eclipse_che](https://twitter.com/eclipse_che) +* **Mailing List:** [che-dev@eclipse.org](https://accounts.eclipse.org/mailing-list/che-dev) +* **Weekly Meetings:** Join us in our [Che community meeting](https://github.com/eclipse/che/wiki/Che-Dev-Meetings) every monday. diff --git a/7.80.0/devfiles/quarkus/meta.yaml b/7.80.0/devfiles/quarkus/meta.yaml new file mode 100644 index 000000000..7c7a0120a --- /dev/null +++ b/7.80.0/devfiles/quarkus/meta.yaml @@ -0,0 +1,16 @@ +displayName: Quarkus REST API +description: Quarkus stack with a default REST endpoint application sample +tags: + - Community + - Java + - Quarkus + - OpenJDK + - Maven + - Debian +icon: /images/quarkus.svg +links: + v2: https://github.com/che-samples/quarkus-quickstarts/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/quarkus/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/quarkus/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/quarkus/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/rust/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/rust/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..169af8b3a --- /dev/null +++ b/7.80.0/devfiles/rust/devworkspace-che-code-insiders.yaml @@ -0,0 +1,154 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-rust +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: rust + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: rust + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1Gi + cpuLimit: 1000m + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo build + group: + kind: build + isDefault: true + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo run + group: + kind: run + isDefault: true + projects: + - name: helloworld-rust + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/helloworld-rust.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1Gi + cpuLimit: 1000m + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo build + group: + kind: build + isDefault: true + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo run + group: + kind: run + isDefault: true + projects: + - name: helloworld-rust + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/helloworld-rust.zip' + contributions: + - name: editor + kubernetes: + name: che-code-rust diff --git a/7.80.0/devfiles/rust/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/rust/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..707309a1e --- /dev/null +++ b/7.80.0/devfiles/rust/devworkspace-che-code-latest.yaml @@ -0,0 +1,155 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-rust +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: rust + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: rust + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1Gi + cpuLimit: 1000m + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo build + group: + kind: build + isDefault: true + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo run + group: + kind: run + isDefault: true + projects: + - name: helloworld-rust + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/helloworld-rust.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1Gi + cpuLimit: 1000m + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo build + group: + kind: build + isDefault: true + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo run + group: + kind: run + isDefault: true + projects: + - name: helloworld-rust + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/helloworld-rust.zip' + contributions: + - name: editor + kubernetes: + name: che-code-rust diff --git a/7.80.0/devfiles/rust/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/rust/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..556daa77f --- /dev/null +++ b/7.80.0/devfiles/rust/devworkspace-che-idea-next.yaml @@ -0,0 +1,173 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-rust +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: rust + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: rust + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1Gi + cpuLimit: 1000m + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo build + group: + kind: build + isDefault: true + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo run + group: + kind: run + isDefault: true + projects: + - name: helloworld-rust + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/helloworld-rust.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + memoryLimit: 1Gi + cpuLimit: 1000m + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo build + group: + kind: build + isDefault: true + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: cargo run + group: + kind: run + isDefault: true + projects: + - name: helloworld-rust + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/helloworld-rust.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-rust diff --git a/7.80.0/devfiles/rust/meta.yaml b/7.80.0/devfiles/rust/meta.yaml new file mode 100644 index 000000000..96f7b32e7 --- /dev/null +++ b/7.80.0/devfiles/rust/meta.yaml @@ -0,0 +1,12 @@ +displayName: Rust +description: Rust Stack with Rust 1.57 +tags: + - Community + - Rust +icon: /images/rust.svg +links: + v2: https://github.com/che-samples/helloworld-rust/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/rust/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/rust/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/rust/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/devfiles/scala-sbt/devworkspace-che-code-insiders.yaml b/7.80.0/devfiles/scala-sbt/devworkspace-che-code-insiders.yaml new file mode 100644 index 000000000..b68fbbf6e --- /dev/null +++ b/7.80.0/devfiles/scala-sbt/devworkspace-che-code-insiders.yaml @@ -0,0 +1,291 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-scala-sbt +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: quay.io/che-incubator/che-code:insiders + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: scala-sbt + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: scala-sbt + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: JDK_JAVA_OPTIONS + value: >- + -XX:MaxRAMPercentage=80 -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 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: sbt + path: /home/user/.sbt + - name: ivy2 + path: /home/user/.ivy2 + - name: cache + path: /home/user/.cache + - name: coursier + path: /home/user/.cache/coursier + - name: metals + path: /home/user/.cache/metals + - name: bloop + path: /home/user/.cache/bloop + memoryLimit: 5Gi + mountSources: true + - name: sbt + volume: + size: 1G + - name: ivy2 + volume: + size: 1G + - name: cache + volume: + size: 1G + - name: coursier + volume: + size: 1G + - name: metals + volume: + size: 1G + - name: bloop + volume: + size: 1G + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +Test/compile + group: + kind: build + isDefault: true + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +publishLocal + group: + kind: build + - id: sbt-repl + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt + group: + kind: run + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt run + group: + kind: run + isDefault: true + - id: test + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +test + group: + kind: run + projects: + - name: scala-sbt + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/scala-sbt.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: JDK_JAVA_OPTIONS + value: >- + -XX:MaxRAMPercentage=80 -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 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: sbt + path: /home/user/.sbt + - name: ivy2 + path: /home/user/.ivy2 + - name: cache + path: /home/user/.cache + - name: coursier + path: /home/user/.cache/coursier + - name: metals + path: /home/user/.cache/metals + - name: bloop + path: /home/user/.cache/bloop + memoryLimit: 5Gi + mountSources: true + - name: sbt + volume: + size: 1G + - name: ivy2 + volume: + size: 1G + - name: cache + volume: + size: 1G + - name: coursier + volume: + size: 1G + - name: metals + volume: + size: 1G + - name: bloop + volume: + size: 1G + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +Test/compile + group: + kind: build + isDefault: true + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +publishLocal + group: + kind: build + - id: sbt-repl + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt + group: + kind: run + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt run + group: + kind: run + isDefault: true + - id: test + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +test + group: + kind: run + projects: + - name: scala-sbt + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/scala-sbt.zip' + contributions: + - name: editor + kubernetes: + name: che-code-scala-sbt diff --git a/7.80.0/devfiles/scala-sbt/devworkspace-che-code-latest.yaml b/7.80.0/devfiles/scala-sbt/devworkspace-che-code-latest.yaml new file mode 100644 index 000000000..5fd05c0c5 --- /dev/null +++ b/7.80.0/devfiles/scala-sbt/devworkspace-che-code-latest.yaml @@ -0,0 +1,292 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-code-scala-sbt +spec: + commands: + - id: init-container-command + apply: + component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: >- + nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-code-command + components: + - name: che-code-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + volumeMounts: + - name: checode + path: /checode + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 3100 + exposure: public + secure: false + protocol: https + - name: code-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: code-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: code-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + controller.devfile.io/container-contribution: true + - name: checode + volume: {} + - name: che-code-injector + container: + image: >- + quay.io/che-incubator/che-code@sha256:2bb5682a3d0d3166bc7c8e07a071f03c2bed09293dcca404f5737b426cd672c7 + command: + - /entrypoint-init-container.sh + volumeMounts: + - name: checode + path: /checode + memoryLimit: 256Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: scala-sbt + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: scala-sbt + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: JDK_JAVA_OPTIONS + value: >- + -XX:MaxRAMPercentage=80 -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 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: sbt + path: /home/user/.sbt + - name: ivy2 + path: /home/user/.ivy2 + - name: cache + path: /home/user/.cache + - name: coursier + path: /home/user/.cache/coursier + - name: metals + path: /home/user/.cache/metals + - name: bloop + path: /home/user/.cache/bloop + memoryLimit: 5Gi + mountSources: true + - name: sbt + volume: + size: 1G + - name: ivy2 + volume: + size: 1G + - name: cache + volume: + size: 1G + - name: coursier + volume: + size: 1G + - name: metals + volume: + size: 1G + - name: bloop + volume: + size: 1G + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +Test/compile + group: + kind: build + isDefault: true + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +publishLocal + group: + kind: build + - id: sbt-repl + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt + group: + kind: run + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt run + group: + kind: run + isDefault: true + - id: test + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +test + group: + kind: run + projects: + - name: scala-sbt + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/scala-sbt.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: JDK_JAVA_OPTIONS + value: >- + -XX:MaxRAMPercentage=80 -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 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: sbt + path: /home/user/.sbt + - name: ivy2 + path: /home/user/.ivy2 + - name: cache + path: /home/user/.cache + - name: coursier + path: /home/user/.cache/coursier + - name: metals + path: /home/user/.cache/metals + - name: bloop + path: /home/user/.cache/bloop + memoryLimit: 5Gi + mountSources: true + - name: sbt + volume: + size: 1G + - name: ivy2 + volume: + size: 1G + - name: cache + volume: + size: 1G + - name: coursier + volume: + size: 1G + - name: metals + volume: + size: 1G + - name: bloop + volume: + size: 1G + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +Test/compile + group: + kind: build + isDefault: true + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +publishLocal + group: + kind: build + - id: sbt-repl + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt + group: + kind: run + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt run + group: + kind: run + isDefault: true + - id: test + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +test + group: + kind: run + projects: + - name: scala-sbt + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/scala-sbt.zip' + contributions: + - name: editor + kubernetes: + name: che-code-scala-sbt diff --git a/7.80.0/devfiles/scala-sbt/devworkspace-che-idea-next.yaml b/7.80.0/devfiles/scala-sbt/devworkspace-che-idea-next.yaml new file mode 100644 index 000000000..f97422455 --- /dev/null +++ b/7.80.0/devfiles/scala-sbt/devworkspace-che-idea-next.yaml @@ -0,0 +1,310 @@ +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspaceTemplate +metadata: + name: che-idea-scala-sbt +spec: + commands: + - id: init-container-command + apply: + component: che-idea-injector + - id: init-che-idea-command + exec: + component: che-idea-runtime-description + commandLine: >- + nohup /projector/entrypoint-volume.sh > /projector/entrypoint-logs.txt + 2>&1 & + events: + preStart: + - init-container-command + postStart: + - init-che-idea-command + components: + - name: che-idea-runtime-description + container: + image: >- + quay.io/devfile/universal-developer-image@sha256:eee871074ad3553f6915533e9b208029bdc11180a48255262cd26b0dfcaf8328 + env: + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + - name: PROJECTOR_CONFIG_DIR + value: /home/user/.jetbrains + volumeMounts: + - name: projector-volume + path: /projector + - name: projector-configuration + path: /home/user/.jetbrains + - name: projector-java-configuration + path: /home/user/.java + memoryLimit: 6144Mi + memoryRequest: 2048Mi + cpuLimit: 2000m + cpuRequest: 1500m + endpoints: + - name: intellij + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + targetPort: 8887 + exposure: public + path: /?backgroundColor=434343&wss + secure: false + protocol: https + - name: intellij-redirect-1 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13131 + exposure: public + protocol: https + - name: intellij-redirect-2 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13132 + exposure: public + protocol: https + - name: intellij-redirect-3 + attributes: + discoverable: false + urlRewriteSupported: false + targetPort: 13133 + exposure: public + protocol: https + attributes: + app.kubernetes.io/component: che-idea-runtime + app.kubernetes.io/part-of: che-idea.eclipse.org + controller.devfile.io/container-contribution: true + - name: projector-volume + volume: {} + - name: projector-configuration + volume: {} + - name: projector-java-configuration + volume: {} + - name: che-idea-injector + container: + image: quay.io/che-incubator/che-idea:next + command: + - /projector/entrypoint-init-container.sh + env: + - name: PROJECTOR_VOLUME_MOUNT + value: /projector-volume + - name: PROJECTOR_ASSEMBLY_DIR + value: /projector + volumeMounts: + - name: projector-volume + path: /projector-volume + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m +--- +apiVersion: workspace.devfile.io/v1alpha2 +kind: DevWorkspace +metadata: + name: scala-sbt + annotations: + che.eclipse.org/devfile: | + schemaVersion: 2.1.0 + metadata: + name: scala-sbt + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: JDK_JAVA_OPTIONS + value: >- + -XX:MaxRAMPercentage=80 -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 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: sbt + path: /home/user/.sbt + - name: ivy2 + path: /home/user/.ivy2 + - name: cache + path: /home/user/.cache + - name: coursier + path: /home/user/.cache/coursier + - name: metals + path: /home/user/.cache/metals + - name: bloop + path: /home/user/.cache/bloop + memoryLimit: 5Gi + mountSources: true + - name: sbt + volume: + size: 1G + - name: ivy2 + volume: + size: 1G + - name: cache + volume: + size: 1G + - name: coursier + volume: + size: 1G + - name: metals + volume: + size: 1G + - name: bloop + volume: + size: 1G + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +Test/compile + group: + kind: build + isDefault: true + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +publishLocal + group: + kind: build + - id: sbt-repl + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt + group: + kind: run + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt run + group: + kind: run + isDefault: true + - id: test + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +test + group: + kind: run + projects: + - name: scala-sbt + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/scala-sbt.zip' +spec: + started: true + routingClass: che + template: + components: + - name: tools + container: + image: quay.io/devfile/universal-developer-image:ubi8-latest + env: + - name: JDK_JAVA_OPTIONS + value: >- + -XX:MaxRAMPercentage=80 -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 + endpoints: + - exposure: none + name: debug + protocol: tcp + targetPort: 5005 + - exposure: public + name: 8080-https + protocol: https + targetPort: 8080 + volumeMounts: + - name: sbt + path: /home/user/.sbt + - name: ivy2 + path: /home/user/.ivy2 + - name: cache + path: /home/user/.cache + - name: coursier + path: /home/user/.cache/coursier + - name: metals + path: /home/user/.cache/metals + - name: bloop + path: /home/user/.cache/bloop + memoryLimit: 5Gi + mountSources: true + - name: sbt + volume: + size: 1G + - name: ivy2 + volume: + size: 1G + - name: cache + volume: + size: 1G + - name: coursier + volume: + size: 1G + - name: metals + volume: + size: 1G + - name: bloop + volume: + size: 1G + commands: + - id: build + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +Test/compile + group: + kind: build + isDefault: true + - id: package + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +publishLocal + group: + kind: build + - id: sbt-repl + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt + group: + kind: run + - id: run + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt run + group: + kind: run + isDefault: true + - id: test + exec: + component: tools + workingDir: ${PROJECT_SOURCE} + commandLine: ./sbt +test + group: + kind: run + projects: + - name: scala-sbt + zip: + location: 'https://eclipse-che.github.io/che-devfile-registry/7.80.0/resources/v2/scala-sbt.zip' + contributions: + - name: editor + kubernetes: + name: che-idea-scala-sbt diff --git a/7.80.0/devfiles/scala-sbt/meta.yaml b/7.80.0/devfiles/scala-sbt/meta.yaml new file mode 100644 index 000000000..1713cb78e --- /dev/null +++ b/7.80.0/devfiles/scala-sbt/meta.yaml @@ -0,0 +1,15 @@ +displayName: Scala +description: Scala Stack with OpenJDK 11 and sbt 1.x +tags: + - Community + - Scala + - OpenJDK + - sbt + - Debian +icon: /images/scala.svg +links: + v2: https://github.com/che-samples/scala-sbt/tree/main + devWorkspaces: + che-incubator/che-idea/next: /devfiles/scala-sbt/devworkspace-che-idea-next.yaml + che-incubator/che-code/latest: /devfiles/scala-sbt/devworkspace-che-code-latest.yaml + che-incubator/che-code/insiders: /devfiles/scala-sbt/devworkspace-che-code-insiders.yaml diff --git a/7.80.0/images/angular.svg b/7.80.0/images/angular.svg new file mode 100644 index 000000000..e0d225a06 --- /dev/null +++ b/7.80.0/images/angular.svg @@ -0,0 +1 @@ +angular \ No newline at end of file diff --git a/7.80.0/images/camelk.svg b/7.80.0/images/camelk.svg new file mode 100644 index 000000000..aa791cc63 --- /dev/null +++ b/7.80.0/images/camelk.svg @@ -0,0 +1 @@ +camelk \ No newline at end of file diff --git a/7.80.0/images/che.svg b/7.80.0/images/che.svg new file mode 100644 index 000000000..0af4407c4 --- /dev/null +++ b/7.80.0/images/che.svg @@ -0,0 +1 @@ +che \ No newline at end of file diff --git a/7.80.0/images/che4z.svg b/7.80.0/images/che4z.svg new file mode 100644 index 000000000..76471095d --- /dev/null +++ b/7.80.0/images/che4z.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/7.80.0/images/cpp.svg b/7.80.0/images/cpp.svg new file mode 100644 index 000000000..260831d2c --- /dev/null +++ b/7.80.0/images/cpp.svg @@ -0,0 +1 @@ +cpp \ No newline at end of file diff --git a/7.80.0/images/dotnetcore.svg b/7.80.0/images/dotnetcore.svg new file mode 100644 index 000000000..c951f48f4 --- /dev/null +++ b/7.80.0/images/dotnetcore.svg @@ -0,0 +1 @@ +dotnetcore \ No newline at end of file diff --git a/7.80.0/images/go.svg b/7.80.0/images/go.svg new file mode 100644 index 000000000..1bdc06d2c --- /dev/null +++ b/7.80.0/images/go.svg @@ -0,0 +1 @@ +go \ No newline at end of file diff --git a/7.80.0/images/java.svg b/7.80.0/images/java.svg new file mode 100644 index 000000000..1c797bb48 --- /dev/null +++ b/7.80.0/images/java.svg @@ -0,0 +1 @@ +java \ No newline at end of file diff --git a/7.80.0/images/lombok.svg b/7.80.0/images/lombok.svg new file mode 100644 index 000000000..3dcbedc3c --- /dev/null +++ b/7.80.0/images/lombok.svg @@ -0,0 +1,177 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/7.80.0/images/nodejs.svg b/7.80.0/images/nodejs.svg new file mode 100644 index 000000000..3cefa6959 --- /dev/null +++ b/7.80.0/images/nodejs.svg @@ -0,0 +1 @@ +nodejs \ No newline at end of file diff --git a/7.80.0/images/php.svg b/7.80.0/images/php.svg new file mode 100644 index 000000000..b3cd05242 --- /dev/null +++ b/7.80.0/images/php.svg @@ -0,0 +1 @@ +php \ No newline at end of file diff --git a/7.80.0/images/python.svg b/7.80.0/images/python.svg new file mode 100644 index 000000000..7e933ce5a --- /dev/null +++ b/7.80.0/images/python.svg @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/7.80.0/images/quarkus.svg b/7.80.0/images/quarkus.svg new file mode 100644 index 000000000..7998fe5d7 --- /dev/null +++ b/7.80.0/images/quarkus.svg @@ -0,0 +1 @@ +quarkus \ No newline at end of file diff --git a/7.80.0/images/rust.svg b/7.80.0/images/rust.svg new file mode 100644 index 000000000..9ff7b65f3 --- /dev/null +++ b/7.80.0/images/rust.svg @@ -0,0 +1 @@ +svg_logos_sized \ No newline at end of file diff --git a/7.80.0/images/scala.svg b/7.80.0/images/scala.svg new file mode 100644 index 000000000..2257b053f --- /dev/null +++ b/7.80.0/images/scala.svg @@ -0,0 +1 @@ + diff --git a/7.80.0/images/springboot.svg b/7.80.0/images/springboot.svg new file mode 100644 index 000000000..3fd8714a1 --- /dev/null +++ b/7.80.0/images/springboot.svg @@ -0,0 +1 @@ +springboot \ No newline at end of file diff --git a/7.80.0/images/vertx.svg b/7.80.0/images/vertx.svg new file mode 100644 index 000000000..be318804d --- /dev/null +++ b/7.80.0/images/vertx.svg @@ -0,0 +1 @@ +vertx \ No newline at end of file diff --git a/7.80.0/resources/v2/bash.zip b/7.80.0/resources/v2/bash.zip new file mode 100644 index 000000000..45820790f Binary files /dev/null and b/7.80.0/resources/v2/bash.zip differ diff --git a/7.80.0/resources/v2/cpp-hello-world.zip b/7.80.0/resources/v2/cpp-hello-world.zip new file mode 100644 index 000000000..028ffaa02 Binary files /dev/null and b/7.80.0/resources/v2/cpp-hello-world.zip differ diff --git a/7.80.0/resources/v2/django-realworld-example-app.zip b/7.80.0/resources/v2/django-realworld-example-app.zip new file mode 100644 index 000000000..3331574fb Binary files /dev/null and b/7.80.0/resources/v2/django-realworld-example-app.zip differ diff --git a/7.80.0/resources/v2/dotnet-web-simple.zip b/7.80.0/resources/v2/dotnet-web-simple.zip new file mode 100644 index 000000000..df6d1774e Binary files /dev/null and b/7.80.0/resources/v2/dotnet-web-simple.zip differ diff --git a/7.80.0/resources/v2/golang-example.zip b/7.80.0/resources/v2/golang-example.zip new file mode 100644 index 000000000..40c4c27db Binary files /dev/null and b/7.80.0/resources/v2/golang-example.zip differ diff --git a/7.80.0/resources/v2/helloworld-rust.zip b/7.80.0/resources/v2/helloworld-rust.zip new file mode 100644 index 000000000..d9d0b5f08 Binary files /dev/null and b/7.80.0/resources/v2/helloworld-rust.zip differ diff --git a/7.80.0/resources/v2/java-guestbook.zip b/7.80.0/resources/v2/java-guestbook.zip new file mode 100644 index 000000000..ef482f9e5 Binary files /dev/null and b/7.80.0/resources/v2/java-guestbook.zip differ diff --git a/7.80.0/resources/v2/java-spring-petclinic.zip b/7.80.0/resources/v2/java-spring-petclinic.zip new file mode 100644 index 000000000..a50f38565 Binary files /dev/null and b/7.80.0/resources/v2/java-spring-petclinic.zip differ diff --git a/7.80.0/resources/v2/lombok-project-sample.zip b/7.80.0/resources/v2/lombok-project-sample.zip new file mode 100644 index 000000000..aee98125a Binary files /dev/null and b/7.80.0/resources/v2/lombok-project-sample.zip differ diff --git a/7.80.0/resources/v2/nodejs-angular.zip b/7.80.0/resources/v2/nodejs-angular.zip new file mode 100644 index 000000000..4f8b43605 Binary files /dev/null and b/7.80.0/resources/v2/nodejs-angular.zip differ diff --git a/7.80.0/resources/v2/nodejs-mongodb-sample.zip b/7.80.0/resources/v2/nodejs-mongodb-sample.zip new file mode 100644 index 000000000..f47a47086 Binary files /dev/null and b/7.80.0/resources/v2/nodejs-mongodb-sample.zip differ diff --git a/7.80.0/resources/v2/nodejs-react-redux.zip b/7.80.0/resources/v2/nodejs-react-redux.zip new file mode 100644 index 000000000..f215ddc78 Binary files /dev/null and b/7.80.0/resources/v2/nodejs-react-redux.zip differ diff --git a/7.80.0/resources/v2/php-symfony.zip b/7.80.0/resources/v2/php-symfony.zip new file mode 100644 index 000000000..f4dfe2070 Binary files /dev/null and b/7.80.0/resources/v2/php-symfony.zip differ diff --git a/7.80.0/resources/v2/python-hello-world.zip b/7.80.0/resources/v2/python-hello-world.zip new file mode 100644 index 000000000..dc8d71a75 Binary files /dev/null and b/7.80.0/resources/v2/python-hello-world.zip differ diff --git a/7.80.0/resources/v2/quarkus-quickstarts.zip b/7.80.0/resources/v2/quarkus-quickstarts.zip new file mode 100644 index 000000000..88471abea Binary files /dev/null and b/7.80.0/resources/v2/quarkus-quickstarts.zip differ diff --git a/7.80.0/resources/v2/react-web-app.zip b/7.80.0/resources/v2/react-web-app.zip new file mode 100644 index 000000000..e37486754 Binary files /dev/null and b/7.80.0/resources/v2/react-web-app.zip differ diff --git a/7.80.0/resources/v2/scala-sbt.zip b/7.80.0/resources/v2/scala-sbt.zip new file mode 100644 index 000000000..4956cc9b2 Binary files /dev/null and b/7.80.0/resources/v2/scala-sbt.zip differ diff --git a/7.80.0/resources/v2/web-nodejs-sample.zip b/7.80.0/resources/v2/web-nodejs-sample.zip new file mode 100644 index 000000000..222f05191 Binary files /dev/null and b/7.80.0/resources/v2/web-nodejs-sample.zip differ