Closed vikyathharekal closed 3 months ago
We are asking nomad to give us 2 additional random free ports for gitspace agent and ssh. These are used in the VM port mapping to expose it outside (8083 -> gitspaces agent, 8088 -> ssh). These 2 ports are returned in the response as well. We would eventually consume it in CDE manager to connect to the agent and ssh port will be used to remotely access dev container
@vikyathharekal The number of ports required will be 3. 8083 is for the agent. 8088 for ssh and 8089 for VS Code Web server. Can we change the number of ports required on runtime?
Overall idea is to leverage the existing code as much as possible and also make sure we don't disturb the existing CI code much so as to not cause any regressions
Commit Checklist
Thank you for creating a pull request! To help us review / merge this can you make sure that your PR adheres as much as possible to the following.
The Basics
If you are adding new functionality, please provide evidence of the new functionality.