Running code-server on Azure, fork of bpmct/code-server-azure
4.4K
Docker Hub: sffxzzp/code-server-azure
Github Container Registry: ghcr.io/sffxzzp/code-server-azure
Deploying code-server on Azure App Service. Can use --link or an Azure domain. This uses the codercom/code-server base image, so it will always use the latest version of code-server.
bencdr/code-server-azureAfter deploying, you can configure with the following settings (Settings > Configuration > Application Settings)
LINK_NAME: A custom name used for code-server --link (ex. [linkname]-githubusername.cdr.co)PASSWORD: Password to log into code-server. Adding this will disable the use of --linkGIT_REPO: A public git repo to clone (see #3)START_DIR: The directory code-server opens (default: /home/coder/project)DISABLE_SSH: Disable SSH access via the Azure portal, saves resources⚠️ If you are using the Free (F1) app service plan: do not set a password. code-server --link will handle your access. See #2 for details
The web server may not redirect to the --link URL correctly off the bat. Restarting the app or waiting for the deployment to complete may fix the issue. After authenticating with GitHub, a single refresh may be necessary to connect to code-server.
You can connect to your code server instance via SSH under Development Tools -> SSH. Logs for code-server and the mini web server are stored in /home/coder/.
By default, Azure does not have logging enabled. To enable logs, go to "Monitoring -> App Service Logs" and turn on. Retention period can be set to 1 day. Then, you can preview logs under "Monitoring > Log Stream" or via the Azure CLI:
$ az webapp log tail --name [app] --resource-group [resource group]
Content type
Image
Digest
sha256:90ab6080e…
Size
375.9 MB
Last updated
about 19 hours ago
docker pull sffxzzp/code-server-azure