338 Commits

Author SHA1 Message Date
Victor Nogueira
d2e355510d Display the Gitpod Task ID instead of the Working Directory of the running task
To avoid confusion when more than two tasks are running in the same directory and haven't been named on .gitpod.yml.
2022-04-28 20:33:14 +05:30
Manuel Alejandro de Brito Fontes
42783dc21f [supervisor] Do not report error when the process is terminated 2022-04-27 09:15:13 +05:30
Anton Kosyakov
5d57819830 [supervisor] prevent slow clients to stale tasks in headless workspaces 2022-04-15 12:10:28 +05:30
Anton Kosyakov
5bdf47767e Revert "ws-daemon: Use a pair of veths instead of slirp4netns"
This reverts commit 4fef102695684ad3e98ed90c7f368d79aa1e304d.
2022-04-08 18:19:21 +05:30
utam0k
4fef102695 ws-daemon: Use a pair of veths instead of slirp4netns
Pod Network Namespace(ring1)
+------------------------------------------------+
|                                                |
|       Workspace Network Namesapce(ring2)       |
| +--------------------------------------------+ |
| |                                            | |
| |              default via veth0             | |
| |                                            | |
| |                                            | |
| |     +------+  +--------------+             | |
| |     |  lo  |  |    ceth0     | 10.0.2.2/24 | |
| |     +------+  +--^--------+--+             | |
| |                  |        |                | |
| +------------------+--------+----------------+ |
|                    |        |                  |
|                 +--+--------v--+               |
|   +-----------> |    veth0     | 10.0.2.1/24   |
|   |             +-----------+--+               |
|   |                         |                  |
|   |          +--------------v-----+            |
|   |          |                    |            |
|   |          |      nftables      |            |
|   |          |   (ip masquerade)  |            |
|   |          +--------------+-----+            |
|   |                         |                  |
|   |   +------+  +-----------v--+               |
|   |   |  lo  |  |     eth0     |               |
|   |   +------+  +--^--------+--+               |
|   |                |        |                  |
|   |          +-----+--------v-----+            |
|   |          |                    |            |
|   +----------+      nftables      |            |
| if with port | (port redirecter)  |            |
|              +-----^--------+-----+            |
|                    |        |                  |
+--------------------+--------+------------------+
                     |        |
                     |        |
                     |        v
                    o u t s i d e
2022-04-08 13:41:21 +05:30
mustard
fc8c0c76a7 [supervisor] remove supervisor_readiness for headless workspaces 2022-04-06 21:48:20 +05:30
Cornelius A. Ludmann
fc769d8268 [dev] Add yq v4.23.1 as yq4 binary in dev image 2022-04-05 15:03:18 +05:30
mustard
464df6adf3 [supervisor] add sudo permission to custom images 2022-03-23 21:40:08 +05:30
mustard
c6cc1ab0fb [supervisor] add readiness track 2022-03-01 23:16:09 +05:30
Thomas Schubart
d98d7abfe5 Remove logging 2022-02-28 06:00:07 +05:30
Thomas Schubart
07da916852 Log env args 2022-02-28 06:00:07 +05:30
Anton Kosyakov
0b6c4273bb [supervisor]: add ide-dekstop-ready phase to status_rendered analyitcs event
To track whether a user seen loading screen after configuring desktop IDE.
2022-02-25 16:51:05 +05:30
Pudong Zheng
234d579156 Fix PREVENT_METADATA_ACCESS is not effect 2022-02-25 13:17:04 +05:30
Pudong Zheng
26e277768f Fix dotfiles permission 2022-02-18 09:56:58 +01:00
Christian Weichel
70e1da29cf [supervisor] Fix dotfile installation 2022-02-17 16:05:57 +01:00
Pudong Zheng
ce70183fe2 [supervisor] remove unneed "no child process" check 2022-02-17 09:14:57 +01:00
Pudong Zheng
212e8b198a remove unneed reaper in supervisor run 2022-02-17 09:14:57 +01:00
Pavel Tumik
854c81cb83 fix panic if ssh server failed to start 2022-02-12 15:57:33 +01:00
Alex Tugarev
e7bbdf2afa Revert "Revert "[supervisor] Support envvars from OTS""
This reverts commit 9792d211e05527c83089ef8a3faa56b5140492dd.
2022-02-11 09:28:32 +01:00
Pudong Zheng
072f2c8c08 Add private dotfiles repo support 2022-02-09 12:46:30 +01:00
Alex Tugarev
9792d211e0 Revert "[supervisor] Support envvars from OTS"
This reverts commit 438d87876fa3429dd59be47db24a868076e545bd.
2022-02-08 10:34:29 +01:00
Christian Weichel
438d87876f [supervisor] Support envvars from OTS 2022-02-04 15:43:26 +01:00
Anton Kosyakov
f3ed7e4a91 [ide] desktop client installation steps 2022-01-24 13:32:16 +01:00
Jean Pierre
8b3e311cea Use new server arg --server-data-dir 2022-01-20 15:21:12 +01:00
Jean Pierre
ddd3ced7bf Only ignore served ports bound to the workspace IP address if we have corresponding reverse proxy 2022-01-17 04:39:09 +01:00
Jean Pierre
301f6c4f3e Don't try to connect to opened ports
Otherwise it causes an exception to be thrown constantly in the vscode-js-debug extension while debugging causing the extension host to crash after some time
2022-01-16 17:43:09 +01:00
mustard
afe8c7ce85 [supervisor] nicely handle OOM killed IDE processes 2022-01-15 17:18:08 +01:00
Anton Kosyakov
de440410fb Revert "[supervisor] Add log for exposed port instance update"
This reverts commit 73e93f3f5497978f98d2628e7651b70e9915992a.
2022-01-15 17:17:08 +01:00
Jean Pierre
af7ec2620a Explicitly launch code server on 0.0.0.0 2022-01-14 21:05:07 +01:00
mustard
8e79e27d1d [supervisor] fix addgroup adduser command not pair 2022-01-07 11:33:00 +01:00
Pudong Zheng
d9955ccc74 Add SSH Gateway to ws-proxy 2022-01-06 17:29:00 +01:00
Christian Weichel
fa0178de8a Add dotfile repo support 2022-01-06 08:44:59 +01:00
Victor Nogueira
f85494006d [supervisor] Provide port Name and Description along with the port status 2021-12-20 18:42:44 +01:00
Pudong
fb99a9f5eb [ide] add user-agent header to ws connection to server 2021-12-20 07:21:44 +01:00
Pudong Zheng
a5c61a717b using supervisor pass IDE port to desktop IDE 2021-12-17 09:21:41 +01:00
Pudong Zheng
78cca2a5c6 [supervisor] Add desktop IDE port to supervisor internal ports 2021-12-17 09:21:41 +01:00
Cornelius A. Ludmann
73e93f3f54 [supervisor] Add log for exposed port instance update 2021-12-07 09:20:32 +01:00
Pudong Zheng
0df882479c [dev] upgrade image 2021-12-06 22:34:32 +01:00
Manuel Alejandro de Brito Fontes
58496c3bf3 Cleanup no child processes running errors 2021-12-01 08:26:26 +01:00
Pudong Zheng
ed7a17f94f [supervisor] fixes not recycle zombie processes
Co-authored-by: Christian Weichel <chris@gitpod.io>
2021-11-30 18:21:26 +01:00
Pudong Zheng
a1ddb43a2d [supervisor] fixes prebuild report status 2021-11-30 16:14:26 +01:00
Jean Pierre
19b6154411 Unshallow repo after workspace is ready 2021-11-26 07:39:22 +01:00
iQQBot
4daa09f510 [dev] bump image 2021-11-24 11:15:20 +01:00
Gero Posmyk-Leinemann
fdce261af5 [dev] bump image 2021-11-22 09:40:19 +01:00
Cornelius A. Ludmann
70bb65bc05 [supervisor] Remove old gp bin before symlink 2021-11-13 02:29:10 +01:00
Manuel Alejandro de Brito Fontes
ef6744c441 Skip tests that require a valid username 2021-11-08 13:53:06 +01:00
Manuel Alejandro de Brito Fontes
fe5bc40d12 Fix readNetTCPFile 2021-11-05 10:33:03 +01:00
Manuel Alejandro de Brito Fontes
bb1349fd94 Refactor supervisor port exposure 2021-11-05 10:33:03 +01:00
Christian Weichel
636ef165f4 [supervisor] Defer git fetch until content is ready 2021-11-04 22:43:12 +01:00
Manuel Alejandro de Brito Fontes
bd9259072e Switch to git shallow clone and add unshallow feature 2021-11-04 22:43:12 +01:00