#
# Copyright (c) 2012-2021 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
#   Red Hat, Inc. - initial API and implementation
#

schemaVersion: "2.0.0"
metadata:
  name: "devfile example"
  version: "1.0.0"
projects:
  - name: "my-project"
    git:
      remotes:
        origin: "https://github.com/devfile/api"
      checkoutFrom:
        revision: "master"
        remote: origin
components:
  - name: editor
    attributes:
      kjkh: "128M"
      kjhkjh:
        "": ""
    plugin:
      id: eclipse/che-theia/latest
  - name: "ownplugin"
    plugin:
      id: acme/newPlugin/latest
      registryUrl: "https://acme.com/registry/"
  - name: "myplugin"
    plugin:
      uri: "https://github.com/johndoe/che-plugins/blob/master/cool-plugin/0.0.1/meta.yaml"
  - name: "mycontainer"
    container:
      image: "busybox"
      memoryLimit: "128M"
      mountSources: true
      endpoints:
        - name: term-websockets
          exposure: public
          protocol: ws
          attributes:
            type: terminal
          targetPort: 4000
  - name: "production"
    kubernetes:
      uri: "https://somewhere/production-environment.yaml"
