devpod icon indicating copy to clipboard operation
devpod copied to clipboard

Difficulties using devpod on closed-network

Open itamadev opened this issue 2 years ago • 8 comments

Is your feature request related to a problem?
As of now when trying to use devpod on-prem or more specifically on some closed-network situations it's not compatible (for IDEs like vscodebrowser or jetbrains) the main reason is that the providers use a const from where to download the ide base.

Are there any plans to give the options to configure it like the default DEVPOD_AGENT_URL

Which solution do you suggest?
The solution I see as of now is creating a forked repo enabling this capability, if this change can be added to the stable release of devpod I'd be more than happy to try and tackle it.

itamadev avatar Sep 22 '23 19:09 itamadev

Hi @itamadev , sounds like a useful addition to me. Let us know if you need help getting your PR ready

pascalbreuninger avatar Sep 25 '23 05:09 pascalbreuninger

Hey @pascalbreuninger I saw something weird while implementing this, The code seems to have some functionality to override the download URLs of the IDEs but not using environment variables, I think it would be good to add an env var implementation still - mainly to keep it simple and have a similar solution to DEVPOD_AGENT_URL. However, we can add it in the UI too as the devpod agents have an implementation for that too.

Wanted to get your thoughts on this before I move forward with my PR 😄

itamadev avatar Sep 29 '23 15:09 itamadev

@itamadev, the current dynamic url fetching is to pick the correct jetbrains IDE binary for the target architecture. An environment variable makes sense though, I agree. If you're curious about the UI, feel free to add it. If not, I can also do that once your PR is merged

pascalbreuninger avatar Oct 02 '23 05:10 pascalbreuninger

Hey, @itamadev Thanks for opening this issue!

Are you still planning to open a PR for this contribution? 😄

alexandradragodan avatar Dec 04 '23 13:12 alexandradragodan

Hey @alexandradragodan Sorry for my late reply, yes I'd very much like to submit a PR fixing this issue as I stated before, got busy with some work but I should be able to get to this in the following days if that sounds good to you guys 😀

itamadev avatar Dec 08 '23 17:12 itamadev

I am currently facing the same issue. The workaround I have is to up the container without specifying the IDE and then use jetbrain gateway to ssh into the container which will install the necessary binary

benjie91 avatar Dec 19 '23 08:12 benjie91

This would be extremely beneficial for us as well

vrabbi avatar Jun 09 '24 16:06 vrabbi

@vrabbi you can manually specify the Download URL per IDE: devpod ide set-options intellij -o DOWNLOAD_URLAMD64=$YOUR_URL, just make sure you're pinning your version devpod ide set-options -o VERSION=$VERSION as well :)

pascalbreuninger avatar Jun 10 '24 05:06 pascalbreuninger