Giter Site home page Giter Site logo

code-server-azure's Introduction

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]

code-server-azure's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

code-server-azure's Issues

Default Password

I’ve deployed this on VM, there’s no application setting in configuration. What is the default password?

persistent storage

Just wondering if there's already a configuration for having persistent storage. Like using a storage account or something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.