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

Set up OpenShift workspace with LS in a parallel container #8171

Closed
sleshchenko opened this issue Jan 4, 2018 · 1 comment
Closed

Set up OpenShift workspace with LS in a parallel container #8171

sleshchenko opened this issue Jan 4, 2018 · 1 comment
Assignees
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed. status/open-for-dev An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it.

Comments

@sleshchenko
Copy link
Member

Description

A workspace with LS in a parallel container works fine on Docker infrastructure.
It is needed to prepare workspace configuration of OpenShift workspace where LS will be in a parallel container.

@sleshchenko sleshchenko added kind/task Internal things, technical debt, and to-do tasks to be performed. status/open-for-dev An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it. team/platform labels Jan 4, 2018
@sleshchenko
Copy link
Member Author

sleshchenko commented Jan 4, 2018

Here is an OpenShift workspace config with LS in parallel container:

Workspace Config
{
  "defaultEnv": "default",
  "environments": {
    "default": {
      "machines": {
        "ws/typescript-ls": {
          "attributes": {},
          "servers": {
            "ls": {
              "attributes": {
                "internal": "true",
                "type": "ls",
                "config": "{\"id\":\"https://github.com/sourcegraph/javascript-typescript-langserver\", \"languageIds\":[typescript]}"
              },
              "port": "4417",
              "protocol": "tcp"
            }
          },
          "volumes": {
            "projects": {
              "path": "/projects"
            }
          },
          "installers": [
            "org.eclipse.che.terminal"
          ],
          "env": {}
        },
        "ws/dev": {
          "attributes": {},
          "servers": {
            "codeserver": {
              "attributes": {},
              "port": "9876",
              "protocol": "http"
            }
          },
          "volumes": {
            "projects": {
              "path": "/projects"
            }
          },
          "installers": [
            "org.eclipse.che.exec",
            "org.eclipse.che.terminal",
            "org.eclipse.che.ws-agent"
          ],
          "env": {}
        }
      },
      "recipe": {
        "type": "openshift",
        "content": "---\nkind: List\nitems:\n-\n  apiVersion: v1\n  kind: Pod\n  metadata:\n    name: ws\n  spec:\n    containers:\n      -\n        image: eivantsov/tsls\n        name: typescript-ls\n      -\n        image: eclipse/ubuntu_jdk8\n        name: dev",
        "contentType": "application/x-yaml"
      }
    }
  },
  "projects": [
    {
      "links": [],
      "name": "greeter",
      "attributes": {},
      "type": "typescript",
      "source": {
        "location": "https://github.com/Microsoft/TypeScriptSamples.git",
        "type": "git",
        "parameters": {
          "convertToTopLevelProject": "true",
          "keepVcs": "false",
          "keepDir": "greeter"
        }
      },
      "path": "/greeter",
      "problems": [],
      "mixins": []
    }
  ],
  "name": "TypeScript_LS_Demo",
  "commands": [],
  "links": []
}

Faced with the following issues while starting of described workspace:

So, it will be possible to run workspace with LS in a parallel container if:

  • the first issue will be fixed fixed;
  • common PVC strategy is configured while the corresponding issue is not resolved fixed;
  • LS machine doesn't have the same installers as dev machine has fixed;
  • Che Server is deployed not on local OCP like https://console.codenvy.openshift.com/;

See demo:

openshift_ls_demo

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. status/open-for-dev An issue has had its specification reviewed and confirmed. Waiting for an engineer to take it.
Projects
None yet
Development

No branches or pull requests

2 participants