Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import projects in theia IDE from a factory: read factory metadata from the client side #9221

Closed
5 tasks done
sunix opened this issue Mar 23, 2018 · 0 comments
Closed
5 tasks done
Assignees
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.

Comments

@sunix
Copy link
Contributor

sunix commented Mar 23, 2018

Description

Part of import projects which is a subtask of #9074

previous: implement git import in theia node (server) as a rest service #9218

-> read factory metadata from the client side

This issue could be splitted in several ones:

< Factory json used for testing (openshift, based on theia stack) >

{
  "v": "4.0",
  "name": "theia",
  "workspace": {
    "environments": {
      "default": {
        "machines": {
          "ws/theia": {
            "attributes": {
              "memoryLimitBytes": "547483648"
            },
            "servers": {
              "theia": {
                "attributes": {
                  "type": "ide"
                },
                "port": "3000",
                "protocol": "http"
              }
            },
            "volumes": {
              "projects": {
                "path": "/projects"
              },
              "theia": {
                "path": "/home/theia"
              }
            },
            "installers": [],
            "env": {}
          },
          "ws/dev": {
            "attributes": {
              "memoryLimitBytes": "547483648"
            },
            "servers": {
              "theia-dev": {
                "attributes": {},
                "port": "3030",
                "protocol": "http"
              }
            },
            "volumes": {
              "projects": {
                "path": "/projects"
              }
            },
            "installers": [],
            "env": {}
          }
        },
        "recipe": {
          "type": "openshift",
          "content": "kind: List\nitems:\n - \n  apiVersion: v1\n  kind: Pod\n  metadata:\n   name: ws\n  spec:\n   containers:\n    - \n     image: 'eclipse/che-theia:nightly'\n     name: theia\n     resources:\n      limits:\n       memory: 2048Mi\n    - \n     image: 'eclipse/che-dev:nightly'\n     name: dev\n     resources:\n      limits:\n       memory: 2048Mi\n",
          "contentType": "application/x-yaml"
        }
      }
    },
    "defaultEnv": "default",
    "projects": [
      {
        "links": [],
        "name": "theia",
        "attributes": {
          "contribute_to_branch": [
            "master"
          ]
        },
        "type": "blank",
        "source": {
          "location": "https://github.com/theia-ide/theia.git",
          "type": "git",
          "parameters": {
            "branch": "master"
          }
        },
        "path": "/theia",
        "problems": [],
        "mixins": [
          "pullrequest"
        ]
      }
    ],
    "name": "theia",
    "commands": [],
    "links": []
  },
  "id": "factorywzmemy9du9yrt9uq",
  "creator": {
    "name": "che",
    "created": 1523020205700,
    "email": "che@eclipse.org",
    "userId": "che"
  }
}

@sunix sunix added the severity/P1 Has a major impact to usage or development of the system. label Mar 23, 2018
@sunix sunix added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Mar 23, 2018
@sunix sunix self-assigned this Apr 9, 2018
@ashumilova ashumilova removed the severity/P1 Has a major impact to usage or development of the system. label Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

No branches or pull requests

2 participants