-
Notifications
You must be signed in to change notification settings - Fork 5.9k
code-server for azure app service #2711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a great idea! cc @bpmct are you familiar with Azure's app services? Any ideas on how to do this and also any interest in taking this one? |
Haven't experimented with it yet, but I'd love to take a look! I'll share updates here, and any help is appreciated :) |
@bpmct Hello, how are things going? Maybe I can help you with this. Azure application service code server official docker image works normally, but we can't see the password and we can't access ssh via Azure. However, this link contains information on how to access ssh. If you can fix the ssh issue, you can probably easily create the custom code server image for the application service. |
I'm getting to this today. I think a custom image is the right direction to go, so we can add SSH and support for using |
Azure app service is a bit tough to set up debug/logs, but I got code-server running with my custom image and I'm about to get SSH access+custom password configured. I'll publish the image/repo as soon as I do that. Some other things I'm looking to do:
|
Image is live: https://github.com/bpmct/code-server-azure. Will document in this repo soon. LMK if you have questions |
After entering the password, it stays on the white screen, so do you? |
I just deployed again and it works fine. Try refreshing once after entering the password? |
What app type are you using? I'm using this. Not saying this config is necessary, but it may be a hardware limitations thing:
|
I use the free app Free F1 |
It worked when I used a different size app service but it didn't work in free size.interesting. ¯_(ツ)_/¯ |
I believe this is due to the SSH server using some resources. I am trying an image without (ssh |
The free plan (f1) has a shortage of white screens, but other sizes do not. maybe there is a solution for the free plan. |
I noticed that "WebSockets" is off and "HTTP" version is low on the free plan. I changed this, as I noticed it was a websocket error. Still no luck. Just sharing findings so far. |
This is horribly documented, but I finally found this. I think this is our limitation: https://docs.microsoft.com/en-us/azure/app-service/faq-app-service-linux#web-sockets |
I think this could be resolved with the |
I can mess with this in the morning with a workaround that makes a simple http server to redirect to the |
Thank you for helping (● '◡' ●) |
@bpmct i used ngrok for the free plan and it worked. maybe the code-server --link could work. |
I updated the image to work with The image will now run --link by default if $PASSWORD is not set |
@aflextr have you attached a volume to your Azure app? if so, would you want to document on the repo?https://github.com/bpmct/code-server-azure |
No unfortunately I couldn't add |
Closing via #2729 @aflextr if you need more help after this, feel free to start a QA on our Discussions! |
Can you prepare the code-server docker image for Azure's app services?
The text was updated successfully, but these errors were encountered: