Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-9572

Dev Spaces local-remote (SSH) does not inherit from devfile configuration

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Using  https://github.com/malarhab/one-click-devspaces-demo/tree/master as the repository reference (it contains a devfile) and the "Visual Studio Code (desktop) (SSH)" editor definition results in :  

      Error creating database: Error: getaddrinfo ENOTFOUND postgres at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'postgres' 

      after running npm run init-db . This is because the devfile sets up certain options through environment variables which are not set in our "sshd" container. While other editors (standard vscode/intellij) are set up (injected) in the user container (defined by the devfile), the "sshd" container (where the VS Code remote server exists) is in a separate container. This limitation currently exists only because we need to be able to install openssh-server/libsecret onto the container, but lack a way to do so.

              rgrunber@redhat.com Roland Grunberg
              rgrunber@redhat.com Roland Grunberg
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: