deploy-code-server icon indicating copy to clipboard operation
deploy-code-server copied to clipboard

add a CLI

Open bpmct opened this issue 4 years ago • 2 comments

Create a command-line tool for configuring & deploying code-server instances to the cloud. This aims to solve two problem:

  1. creating a new dev cloud environment is repetitive
  2. creating test environments for code-server (for testing issues) can be difficult - @jsjoeio's idea 💡

This will be good for creating consistent dev workspaces or test environments for code-server. For example

# launch an ubuntu server with nginx
$ lcs --ubuntu nginx
Creating...
Access your server at https://x.x.x.x:80
Password: asd832sd

# launch a blank ubuntu server and get SSH access
$ lcs --ubuntu blank
...

# launch an ubuntu server configured with code-server --link and 2 GB memory
$ lcs ubuntu --link --mem 2
...

# launch with custom Dockerfile
$ lsc ubuntu --link --dockerfile python/Dockerfile

I am planning on supporting this with the Vultr because of their developer-friendly API.

bpmct avatar Apr 07 '21 17:04 bpmct

Love the sound of this! The environments that I see often:

  • nginx
  • Docker
  • Railway

Those seem to be the most common. I think that's a great starting point.

jsjoeio avatar Apr 12 '21 18:04 jsjoeio

potentially do this in rust? https://egghead.io/courses/creating-a-digital-garden-cli-with-rust-34b8

bpmct avatar Apr 12 '21 19:04 bpmct