coder / jetbrains-coder

A JetBrains Plugin for Coder Workspaces
MIT License
26 stars 12 forks source link

Support configuring an already downloaded backend #504

Open matifali opened 5 days ago

matifali commented 5 days ago

To make connections fast, a user can download the IDE backend into their workspace image. Can we support specifying the path of the backend to be used by the gateway to establish the connection?

We currently support specifying versions and downlod_url that downloads the given version from the internet if it does not exist on a default location.

Related upstream issue(s):

  1. https://youtrack.jetbrains.com/issue/IJPL-170135/Ability-to-add-an-already-installed-IDE-via-Gateway-UI
  2. https://youtrack.jetbrains.com/issue/IJPL-166728/API-for-gateway-to-predownload-client
  3. https://youtrack.jetbrains.com/issue/IJPL-170129/Background-Automated-Backend-Installation
code-asher commented 3 days ago

You should be able to pass ide_path_on_host to point to an existing backend.

matifali commented 3 days ago

How does it work alongside ide_download_url? Which one takes precedence? Do we have docs? If not I would like to document this behavior

code-asher commented 3 days ago

I think it is not documented. 🤔 I believe we prefer the path if both are set.

matifali commented 3 days ago

Thank you. I will document this behavior.