GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bpmct/code-server-azure: Running code-server on Azure

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
azure-entrypoint.sh
azure-entrypoint.sh
 
 
miniRedirectServer.py
miniRedirectServer.py
 
 
settings.json
settings.json
 
 
sshd_config
sshd_config
 
 

Repository files navigation

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.

This setup includes

  • OpenSSH (connect via Azure's portal)
  • Domain+TLS (Provided by --link or Azure)
  • Authentication (Provided by --link or password)
  • A mini redirect web server (if running --link)

How to run

  1. Create a new web app from Azure's portal
  2. Deploy this container from the Docker Hub: bencdr/code-server-azure
  3. Track the status of your deployment via the "Deployment Center"
  4. Hit "Browse" on the app overview page to visit your code-server workspace

Configuration

After 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 --link
  • GIT_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

Troubleshooting

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]

About

Running code-server on Azure

Resources

Readme
MIT license
Activity

Stars

51 stars

Watchers

2 watching

Forks

23 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.