-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
False
-
-
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.